From owner-freebsd-current Mon Aug 31 13:20:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22901 for freebsd-current-outgoing; Mon, 31 Aug 1998 13:20:30 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA22780 for ; Mon, 31 Aug 1998 13:20:17 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id NAA06391; Mon, 31 Aug 1998 13:18:00 -0700 (PDT) (envelope-from jdp) Message-Id: <199808312018.NAA06391@austin.polstra.com> To: galatalt@stuy.edu Subject: Re: XFree86 and ELF In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Cc: current@FreeBSD.ORG Date: Mon, 31 Aug 1998 13:18:00 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Tugrul Galatali wrote: > Most ports are compiling just fine with ELF. The only problem I > have encountered is compiling XFree86. The libs compile just fine from > watching it scroll by now and then, but linking against the programs under > the program subdirectory results in errors such as the following > > cc -o appres -O2 -ansi -pedantic -Dasm=__asm -L../../exports/lib > appres.o -lXt -lSM -lICE -lXext -lX11 -L/usr/X11R6/lib -lxpg4 > -Wl,-R,/usr/X11R6/lib > ../../exports/lib/libICE.a(transport.o): In function > `_IceTransSockINETConnect': > transport.o(.text+0x1070): undefined reference to `inet_addr' > ../../exports/lib/libICE.a(transport.o): In function > `_IceTransGetPeerNetworkId': > transport.o(.text+0x2912): undefined reference to `inet_ntoa' > ../../exports/lib/libX11.a(ximtrans.o): In function > `_X11TransSocketINETConnect': > x11trans.o(.text+0x544): undefined reference to `inet_addr' > ../../exports/lib/libX11.a(ximtrans.o): In function > `_XimXTransSocketINETConnect': > ximtrans.o(.text+0x510): undefined reference to `inet_addr' > *** Error code 1 That's a bug in XFree86. Modules that call "inet_addr" are supposed to include several headers. From the man page: #include #include #include #include The modules that are getting these undefined symbols are failing to include . If you have time, please make a list of them (from the linker error messages) and/or make a patch. Thanks, John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message