home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.amiga
- Path: sparky!uunet!haven.umd.edu!purdue!yuma!lobo.rmhs.colorado.edu!seanr
- From: seanr@lobo.rmhs.colorado.edu (Sean Reifschneider)
- Subject: Re: Help with Xlib port for the amiga
- Message-ID: <1992Dec19.094031.22744@lobo.rmhs.colorado.edu>
- Date: Sat, 19 Dec 1992 09:40:31 GMT
- References: <1992Dec18.125856.591@fwi.uva.nl>
- Organization: Rocky Mountain High School, Fort Collins, CO
- Keywords: Xlib
- Lines: 23
-
- In article <1992Dec18.125856.591@fwi.uva.nl> solorzan@fwi.uva.nl (Valik Solorzano (I88)) writes:
- >After making a program in a Sun Workstation using gcc(2.2.2) as compiler, and
- >Xlib, I tried to compile the same program on my Amiga. While compiling nothing
- >went wrong, but when I get to the link part I get the following errors:
- >
- >gcc:lib/libX11.a(obj.0060.793272): Undefined symbol _socket referenced from text
- > segment
- >gcc:lib/libX11.a(obj.0060.793272): Undefined symbol _connect referenced from tex
- >t segment
-
- I too have had this problem. You need to include the -lnls and -lsocket
- libraries I believe. BUT! When I included them, I was still gettin the
- undefined symbol for a few things includeing 'setnetconfig()' and that
- family, 'inet_ntoa()' and 'gethostname()'. I think that somehow my libraries
- got a bit corrupted. But I have no idea how... I ended up having to write
- versions of these functions to get this program to link.
-
- Anyone have any suggestions as to why these functions don't seem to be on my
- machine? I used 'nm' to check ALL the libraries on the system and there
- wasn't a 'setnetconfig' anywhere to be seen. I also tried to LINK IN EVERY
- LIBRARY on the system. Still gave the unresolved message.
-
- Sean
-