🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2439

SVR4 problems: (was: Re: Trying to compile NN on an A3000 with Amiga Unix SysV v2.02)

#2439
From: 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)
Technical Details
Message-ID: <1992Feb10.165807.29292@zeus.dialix.oz.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!cs.utexas.edu!usc!rpi!batcomputer!munnari.oz.au!uniwa!DIALix!zeus!peter

Show Full Headers
Complete Article Headers
Message-ID: <1992Feb10.165807.29292@zeus.dialix.oz.au>
Subject: SVR4 problems: (was: Re: Trying to compile NN on an A3000 with Amiga Unix SysV v2.02)
Date: Mon, 10 Feb 1992 16:58:07 GMT
From: peter@zeus.dialix.oz.au (Peter Wemm)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!cs.utexas.edu!usc!rpi!batcomputer!munnari.oz.au!uniwa!DIALix!zeus!peter
Newsgroups: news.software.nn
Organization: Karam Pty. Ltd., Perth, Australia.
Lines: 45