Date: Mon, 31 Aug 1998 13:18:00 -0700 From: John Polstra <jdp@polstra.com> To: galatalt@stuy.edu Cc: current@FreeBSD.ORG Subject: Re: XFree86 and ELF Message-ID: <199808312018.NAA06391@austin.polstra.com> In-Reply-To: <Pine.LNX.3.96.980831150333.26883A-100000@ernie.stuy.edu> References: <Pine.LNX.3.96.980831150333.26883A-100000@ernie.stuy.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.LNX.3.96.980831150333.26883A-100000@ernie.stuy.edu>, Tugrul Galatali <galatalt@stuy.edu> 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 <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> The modules that are getting these undefined symbols are failing to include <arpa/inet.h>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808312018.NAA06391>