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

  1. Newsgroups: comp.unix.amiga
  2. Path: sparky!uunet!sybus.sybus.com!myrddin!tct!ckctpa!crash
  3. From: crash@ckctpa.UUCP (Frank "Crash" Edwards)
  4. Subject: Re: Help with Xlib port for the amiga
  5. Message-ID: <1992Dec20.044804.3610@ckctpa.UUCP>
  6. Date: Sun, 20 Dec 1992 04:48:04 GMT
  7. Reply-To: crash%ckctpa@myrddin.sybus.com (Frank "Crash" Edwards)
  8. References: <1992Dec18.125856.591@fwi.uva.nl> <1992Dec19.094031.22744@lobo.rmhs.colorado.edu>
  9. Organization: Edwards & Edwards Consulting
  10. Lines: 24
  11.  
  12. seanr@lobo.rmhs.colorado.edu (Sean Reifschneider) writes:
  13. >I too have had this problem.  You need to include the -lnls and -lsocket
  14. >libraries I believe.  BUT!  When I included them, I was still gettin the
  15. >undefined symbol for a few things includeing 'setnetconfig()' and that
  16. >family, 'inet_ntoa()' and 'gethostname()'.  I think that somehow my libraries
  17. >got a bit corrupted.  But I have no idea how...  I ended up having to write
  18. >versions of these functions to get this program to link.
  19. >
  20. >Anyone have any suggestions as to why these functions don't seem to be on my
  21. >machine?  I used 'nm' to check ALL the libraries on the system and there
  22. >wasn't a 'setnetconfig' anywhere to be seen.  I also tried to LINK IN EVERY
  23. >LIBRARY on the system.  Still gave the unresolved message.
  24.  
  25. But did you run "nm"?  If I run "nm /usr/lib/libnsl.so | fgrep netconfig",
  26. one of the lines of output is "setnetconfig".  Looks to me like you
  27. included the libraries on the link command line in the wrong order.
  28. Try "-lsocket -lnsl".
  29.  
  30. >Sean
  31. -- 
  32. Frank "Crash" Edwards          Edwards & Edwards Consulting
  33. Fax:  813/786-6526             crash%ckctpa@myrddin.sybus.com, but please
  34. Home: 813/786-3675             don't ask UUNET to route it -- it's sloooow.
  35. The earth is like a tiny grain of sand, only much, much heavier.
  36.