Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2003 17:54:39 +0800
From:      "Paul Hamilton" <paul@computerwest.com.au>
To:        "Freebsd-Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Configuring FreeBSD 4.7 for IPFW2
Message-ID:  <AGEHIFHGNEMPFNCPLONMIENOEBAA.paul@compwest.com.au>

next in thread | raw e-mail | index | archive | help
Hi All,

I have upgraded FreeBSD from 4.3 to 4.7 - no problems.

I now want to run with IPFW, so as the man file says, I compiled my new
kernel for 'options IPFW2' I then ran 'make -DIPFW2 ipfw2' in the
/usr/srs/sbin/ipfw dir.  This compiled ok, and I manually copied it to  the
/sbin dir.  I tried that same with /usr/lib/libalias and got the following:


root@fred[5:46pm]/usr/src/lib/libalias-107# make -DIPFW2 alias
cc -O -pipe  -Wall -Wmissing-prototypes -DIPFW2
/usr/src/lib/libalias/alias.c  -o alias
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x79): undefined reference to `main'
/var/tmp/cctpxMD2.o: In function `TcpMonitorIn':
/var/tmp/cctpxMD2.o(.text+0x1c): undefined reference to `GetStateIn'
/var/tmp/cctpxMD2.o(.text+0x4d): undefined reference to `SetStateIn'
/var/tmp/cctpxMD2.o(.text+0x61): undefined reference to `SetStateIn'

<snip>

/var/tmp/cctpxMD2.o: In function `PacketUnaliasOut':
/var/tmp/cctpxMD2.o(.text+0x1788): undefined reference to `FindUdpTcpIn'
/var/tmp/cctpxMD2.o(.text+0x17a8): undefined reference to `FindIcmpIn'
/var/tmp/cctpxMD2.o(.text+0x17d3): undefined reference to
`GetOriginalAddress'
/var/tmp/cctpxMD2.o(.text+0x17df): undefined reference to `GetOriginalPort'
/var/tmp/cctpxMD2.o(.text+0x18bf): undefined reference to
`DifferentialChecksum'
/var/tmp/cctpxMD2.o(.text+0x1917): undefined reference to
`GetOriginalAddress'
/var/tmp/cctpxMD2.o(.text+0x1923): undefined reference to `GetOriginalPort'
/var/tmp/cctpxMD2.o(.text+0x197f): undefined reference to
`DifferentialChecksum'
*** Error code 1

Stop in /usr/src/lib/libalias.

Any idea on what is going wrong?  Is there a way to compile all the files in
the libalias/ dir?

PS. I got it compiled in the end by doing a 'make buildworld', slow, but
IPFW2 runs.  I would like to know to get alias's compiled, so I don't have
to go around running buildworld.

Cheers,

Paul Hamilton



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AGEHIFHGNEMPFNCPLONMIENOEBAA.paul>