home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / amiga / 2578 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.6 KB  |  35 lines

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