From owner-freebsd-questions Thu Jan 16 1:53:56 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95FCD37B401 for ; Thu, 16 Jan 2003 01:53:54 -0800 (PST) Received: from cwe.compwest.com.au (compwest.com.au [202.72.147.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3EC343F75 for ; Thu, 16 Jan 2003 01:53:52 -0800 (PST) (envelope-from paul@compwest.com.au) Received: from wks (ant.parkview.compwest.com.au [202.72.147.43]) by cwe.compwest.com.au (8.11.6/8.11.6) with SMTP id h0G9rgr24131 for ; Thu, 16 Jan 2003 17:53:46 +0800 (WST) (envelope-from paul@compwest.com.au) From: "Paul Hamilton" To: "Freebsd-Questions" Subject: Configuring FreeBSD 4.7 for IPFW2 Date: Thu, 16 Jan 2003 17:54:39 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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' /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