🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Peter Wemm Mon, 10 Feb 1992 16:58
SVR4 problems: (was: Re: Trying to compile NN on an A3000 with Amiga Unix SysV v2.02)
#2439
Author: Peter Wemm
Date: Mon, 10 Feb 1992 16:58
45 lines
2723 bytes
cbwood@vttcf.cc.vt.edu (Clifton Wood) writes:

>Hello. I'm having problems compiling NN on the A3000 Unix system that I usually
>use and I was wondering if I could get any help from this newsgroup. My problem
>is as follows:

>I can compile the software fine, but when I go to link the software, I get 
>symbol undefined errors from the following functions:

>gethostbyname
>getservbyname
>socket
>connect

>All of these symbols are referenced in the file _nntp.c_. I have made sure that
>I have all of the header files in the correct directory and the only thing that
>I can think of that would cause this is that I'm missing a library somewhere
>that contains all of these symbols. I have tried linking it wit the library
>libsocket.a, but I still get the same errors (plus more which I can't exactly
>remember at this point).

>All help on this will be appreciated. Thanks.

>Note special EMAIL conditions below. Sorry for the inconvinience. (The A3000
>machine doesn't get this newsgroup...)

>							Cliff
>-------------------------------------------------------------------------------
>cbwood@vttcf.cc.vt.edu  - I CANNOT accept mail at this account, so please send 
>                          all mail to:
>ARIES@ELFIE.ASYNC.VT.EDU || "Reality is but a fleeting construct of the mind."
>-------------------------------------------------------------------------------

SVR4 in general needs 2 libraries:  you link with -lsocket _AND_ -lnsl.
I dont remebmer which goes first in the command line, but it does not seem
to make much difference.
If for some reason you want to link with the UCB compatability libraries, make
sure you link -lc in before -lucb.   So, for an example, you might want to set
something like "LIBS = -lsocket -lnsl -lc -lucb".  Your mileage may vary.  Make
sure you set the right make variable....
-- 
Peter Wemm : peter@zeus.dialix.oz.au
Work phone: (12pm-8pm WDT) +61-9-479-1855   Fax: +61-9-479-1134
                If it's broke, fix it (The MS-DOS way)
            If it aint broke, don't touch it (The Unix way)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads