home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / amiga / 2590 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.9 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!uum1!digiboard!rogue.digibd.com!rhealey
  2. From: rhealey@rogue.digibd.com (Rob Healey)
  3. Newsgroups: comp.unix.amiga
  4. Subject: Re: Help with Xlib port for the amiga
  5. Keywords: Xlib
  6. Message-ID: <BzMuqt.2w2@digiboard.digibd.com>
  7. Date: 21 Dec 92 23:32:53 GMT
  8. References: <1992Dec18.125856.591@fwi.uva.nl> <1992Dec19.094031.22744@lobo.rmhs.colorado.edu>
  9. Sender: news@digiboard.digibd.com (USENET News)
  10. Organization: DigiBoard Incorporated, Eden Prairie, MN
  11. Lines: 26
  12. Nntp-Posting-Host: rogue.digibd.com
  13.  
  14. In article <1992Dec19.094031.22744@lobo.rmhs.colorado.edu>, seanr@lobo.rmhs.colorado.edu (Sean Reifschneider) writes:
  15. |> I too have had this problem.  You need to include the -lnls and -lsocket
  16. |> libraries I believe.  BUT!  When I included them, I was still gettin the
  17. |> undefined symbol for a few things includeing 'setnetconfig()' and that
  18. |> family, 'inet_ntoa()' and 'gethostname()'.  I think that somehow my libraries
  19. |> got a bit corrupted.  But I have no idea how...  I ended up having to write
  20. |> versions of these functions to get this program to link.
  21. |> 
  22.     Ummm, try using xmkmf and Imakefile from now on and the imake program will
  23.     handle this all for you... The librarys you want are -lsocket -lnsl IN THAT
  24.     ORDER.
  25.  
  26. |> Anyone have any suggestions as to why these functions don't seem to be on my
  27. |> machine?  I used 'nm' to check ALL the libraries on the system and there
  28. |> wasn't a 'setnetconfig' anywhere to be seen.  I also tried to LINK IN EVERY
  29. |> LIBRARY on the system.  Still gave the unresolved message.
  30. |> 
  31.     
  32.     The setnetconfig is in the nsl library.
  33.  
  34.     Again, X11 programs usually come with Imakefile. Run xmkmf and type make, this
  35.     should pull in all the librarys you'll need. You may need to edit the resulting
  36.     makefile if you call your gcc something other than "gcc". Also, you may need
  37.     to remove obsolete gcc options needed in gcc 1.40.x but illegal in gcc 2.2.2.
  38.  
  39.         -Rob
  40.