🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.misc
Article #889

Re: Stuck trying to compile inn-1.7

#889
From: kelsey
Date: Sun, 09 Nov 1997 00:00
42 lines
2195 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: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.apps.mbox.zip!not-for-mail
References: <cflynn-2910971755180001@cas30.resnet.haverford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3465C0E0.38E20864@cop.dec.com>
Subject: Re: Stuck trying to compile inn-1.7
Date: Sun, 09 Nov 1997 00:00:00 +0000
From: kelsey <dan.kelsey@cop.dec.com>
References: <cflynn-2910971755180001@cas30.resnet.haverford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.apps.mbox.zip!not-for-mail
X-Deja-AN: 288156943
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