🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3437

Re: Stuck trying to compile inn-1.7

#3437
From: kelsey
Date: Sun, 09 Nov 1997 00:00
37 lines
2288 bytes
benjamin,

when this happens do a man on the undefined symbol (i.e. socket). the first
few lines of the manpage will show you what you need to include and what
libs you will need to compile with (-lsocket).

dtk

Benjamin Flynn wrote:

> Any help you could give would be very much appreciated.
>
> I'm trying to compile INN on a sparc running solaris 2.5.1.  I have set up
> the configuration for inn, and compiled the code in the config and lib
> directories.  The makefile in the lib directory uses 'ar' to create
> 'libinn.a' out of (presumably) all of the files in that directory.  When I
> try to compile inews, in the frontends directory, I get this error:
>
> gcc  -o inews inews.o  ../libinn.a
> Undefined                       first referenced
>  symbol                             in file
> socket                              ../libinn.a(remopen.o)
> gethostbyname                       ../libinn.a(getfqdn.o)
> inet_addr                           ../libinn.a(remopen.o)
> connect                             ../libinn.a(remopen.o)
> ld: fatal: Symbol referencing errors. No output written to inews
> *** Error code 1
> make: Fatal error: Command failed for target `inews'
>
> That is the correct path for the library.  Additionally, remopen.c and
> getfqdn.c seem to have all of the proper headers included in them.
>
> What could I be doing wrong?
>
> - Benjamin Flynn
> cflynn@haverford.edu
Technical Details
Message-ID: <3465C0E0.38E20864@cop.dec.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <cflynn-2910971755180001@cas30.resnet.haverford.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb32b,1d8238ae33a87e4f
X-Google-Attributes: gidfb32b,public
X-Google-Thread: 10ba33,1d8238ae33a87e4f
X-Google-Attributes: gid10ba33,public
X-Google-Thread: fc89c,1d8238ae33a87e4f
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 109fba,1d8238ae33a87e4f
X-Google-Attributes: gid109fba,public
X-Google-Thread: 102b08,1d8238ae33a87e4f
X-Google-Attributes: gid102b08,public
From: kelsey <dan.kelsey@cop.dec.com>
Subject: Re: Stuck trying to compile inn-1.7
Date: 1997/11/09
Message-ID: <3465C0E0.38E20864@cop.dec.com>
X-Deja-AN: 288156943
References: <cflynn-2910971755180001@cas30.resnet.haverford.edu>
Reply-To: dan.kelsey@cop.dec.com
Organization: digital consulting
Newsgroups: comp.unix.programmer,comp.lang.c++,comp.sys.sun.apps,gnu.g++.help,news.software.misc