home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!uum1!digiboard!rogue.digibd.com!rhealey
- From: rhealey@rogue.digibd.com (Rob Healey)
- Newsgroups: comp.unix.amiga
- Subject: Re: Help with Xlib port for the amiga
- Keywords: Xlib
- Message-ID: <BzMuqt.2w2@digiboard.digibd.com>
- Date: 21 Dec 92 23:32:53 GMT
- References: <1992Dec18.125856.591@fwi.uva.nl> <1992Dec19.094031.22744@lobo.rmhs.colorado.edu>
- Sender: news@digiboard.digibd.com (USENET News)
- Organization: DigiBoard Incorporated, Eden Prairie, MN
- Lines: 26
- Nntp-Posting-Host: rogue.digibd.com
-
- In article <1992Dec19.094031.22744@lobo.rmhs.colorado.edu>, seanr@lobo.rmhs.colorado.edu (Sean Reifschneider) writes:
- |> 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.
- |>
- Ummm, try using xmkmf and Imakefile from now on and the imake program will
- handle this all for you... The librarys you want are -lsocket -lnsl IN THAT
- ORDER.
-
- |> 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.
- |>
-
- The setnetconfig is in the nsl library.
-
- Again, X11 programs usually come with Imakefile. Run xmkmf and type make, this
- should pull in all the librarys you'll need. You may need to edit the resulting
- makefile if you call your gcc something other than "gcc". Also, you may need
- to remove obsolete gcc options needed in gcc 1.40.x but illegal in gcc 2.2.2.
-
- -Rob
-