Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!unisoft!hoptoad!kumr!pozar From: pozar@kumr.lns.com (Tim Pozar) Newsgroups: comp.unix.sysv386 Subject: Re: Compiling X Clients for X386 1.1 on ESIX 3.2.D with gcc-1.39 Message-ID: <1991Mar1.173835.623@kumr.lns.com> Date: 1 Mar 91 17:38:35 GMT References: <18136@cs.utexas.edu> Organization: Late Night Software (San Francisco) Lines: 18 In article <18136@cs.utexas.edu> glenn@cs.utexas.edu (Glenn G. Lai) writes: >I have a question about compiling X clients for X386 1.1 on ESIX 3.2.D using >gcc-1.39. When I was generating the executable, the linker complained that >certain routines "first used in /usr/lib/X11/libX11.a" weren't defined, some >of which were "socket,""connect," and "gethostbyname." I understand that such >routines are in "libnet.a," but when I added the "-lnet" switch, a new set of >undefined symbols were generated. What's the correct way to go about this? I talked to Jeff at Esix and he told me to line these libs: -lX11 -lnet -lnsl_s -lc -lbsd Tim -- pozar@lns.com Fido: 1:125/555 PaBell: 415-788-3904 USNail: KKSF-FM / 77 Maiden Lane / San Francisco CA 94108