🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81369

unresolved symbols when compiling INN 2.5.0

#81369
From: Nick Ruth
Date: Thu, 11 Jun 2009 14:20
851 lines
19836 bytes
In attempting to compile INN 2.5.0 on Solaris 10 SPARC. I have encountered 
symbol referencing issues and I have been unable to figure out what library 
is missing from the configuration. Any assistance in resolving this would be 
appreciated.

The actual error is here:

gcc -g -O2 -I../include -c tinyleaf.c

gcc -o tinyleaf tinyleaf.o /tmp/inn25a/inn-2.5.0/lib/libinn.a

Undefined first referenced

symbol in file

bind /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

gethostbyname /tmp/inn25a/inn-2.5.0/lib/libinn.a(getfqdn.o)

socket /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

setsockopt /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

getsockopt /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

connect /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

getaddrinfo /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

freeaddrinfo /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

inet_aton /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

inet_ntop /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

ld: fatal: Symbol referencing errors. No output written to tinyleaf

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `tinyleaf'

Current working directory /tmp/inn25a/inn-2.5.0/innd

*** Error code 1

make: Fatal error: Command failed for target `all-innd'



[/tmp]# echo $PATH

/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin



The entire ./configure; make output is here:

[/tmp]# cat inn250.configure.out

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /usr/local/bin/grep

checking for egrep... /usr/local/bin/grep -E

checking for AIX... no

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking for library containing strerror... none required

checking if gcc supports -c -o file.o... yes

checking build system type... sparc-sun-solaris2.10

checking host system type... sparc-sun-solaris2.10

checking for a sed that does not truncate output... /usr/local/bin/sed

checking for perl... /usr/local/bin/perl

checking for Perl version... 5.010000

checking for Encode... yes

checking for GD... yes

checking for MIME::Parser... yes

checking whether gcc needs -traditional... no

checking for flex... no

checking for lex... lex

checking lex output file root... lex.yy

checking lex library... -ll

checking whether yytext is a pointer... no

checking whether ln -s works... yes

checking whether make sets $(MAKE)... yes

checking for a thread-safe mkdir -p... /usr/local/bin/mkdir -p

checking for ranlib... ranlib

checking for bison... no

checking for byacc... no

checking for gawk... gawk

checking for egrep... (cached) /usr/local/bin/grep -E

checking for a sed that does not truncate output... (cached) 
/usr/local/bin/sed

checking for sort... /usr/local/bin/sort

checking for openssl... no

checking for uustat... /usr/bin/uustat

checking for uux... /usr/bin/uux

checking for bzip2... /usr/bin/bzip2

checking for compress... /usr/bin/compress

checking for gzip... /usr/bin/gzip

checking for sendmail... /usr/sbin/sendmail

checking for gpgv... no

checking for pgpv... no

checking for pgp... no

checking for pgpgpg... no

checking for wget... no

checking for ncftpget... no

checking for ncftp... no

checking for library containing setproctitle... no

checking for pstat... no

checking for library containing gethostbyname... -lnsl

checking for library containing socket... -lsocket

checking for library containing inet_aton... none required

checking for library containing crypt... none required

checking for library containing getspnam... none required

checking pam/pam_appl.h usability... no

checking pam/pam_appl.h presence... no

checking for pam/pam_appl.h... no

checking security/pam_appl.h usability... yes

checking security/pam_appl.h presence... yes

checking for security/pam_appl.h... yes

checking for library containing pam_start... -lpam

checking if Berkeley DB is desired... no

checking if zlib is desired... no

checking if OpenSSL is desired... no

checking if SASL is desired... no

checking if Kerberos is desired... no

checking for library containing dbm_open... none required

checking for ANSI C header files... (cached) yes

checking for dirent.h that defines DIR... yes

checking for library containing opendir... none required

checking for stdbool.h that conforms to C99... yes

checking for _Bool... yes

checking whether time.h and sys/time.h may both be included... yes

checking for sys/wait.h that is POSIX.1 compatible... yes

checking crypt.h usability... yes

checking crypt.h presence... yes

checking for crypt.h... yes

checking for inttypes.h... (cached) yes

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking for pam/pam_appl.h... (cached) no

checking stddef.h usability... yes

checking stddef.h presence... yes

checking for stddef.h... yes

checking for stdint.h... (cached) yes

checking for string.h... (cached) yes

checking sys/bitypes.h usability... no

checking sys/bitypes.h presence... no

checking for sys/bitypes.h... no

checking sys/filio.h usability... yes

checking sys/filio.h presence... yes

checking for sys/filio.h... yes

checking sys/loadavg.h usability... yes

checking sys/loadavg.h presence... yes

checking for sys/loadavg.h... yes

checking sys/select.h usability... yes

checking sys/select.h presence... yes

checking for sys/select.h... yes

checking sys/time.h usability... yes

checking sys/time.h presence... yes

checking for sys/time.h... yes

checking for unistd.h... (cached) yes

checking ndbm.h usability... yes

checking ndbm.h presence... yes

checking for ndbm.h... yes

checking whether pread is declared... yes

checking whether pwrite is declared... yes

checking whether snprintf is declared... yes

checking whether setproctitle is declared... no

checking whether strlcat is declared... yes

checking whether strlcpy is declared... yes

checking whether vsnprintf is declared... yes

checking whether h_errno is declared... yes

checking whether inet_aton is declared... yes

checking whether inet_ntoa is declared... yes

checking whether altzone is declared... yes

checking whether byte ordering is bigendian... yes

checking for an ANSI C-conforming const... yes

checking for C99 variadic macros... yes

checking for GNU-style variadic macros... yes

checking whether struct tm is in sys/time.h or time.h... time.h

checking for struct tm.tm_zone... no

checking whether tzname is declared... yes

checking for tzname... yes

checking for struct stat.st_blksize... yes

checking for struct tm.tm_gmtoff... no

checking for struct sockaddr.sa_len... no

checking size of int... 4

checking for int32_t... yes

checking for uint32_t... yes

checking for off_t... yes

checking for pid_t... yes

checking for size_t... yes

checking for uid_t in sys/types.h... yes

checking for long long... yes

checking for ptrdiff_t... yes

checking for ssize_t... yes

checking for sig_atomic_t... yes

checking for socklen_t... yes

checking for union semun... no

checking for struct sockaddr_storage... yes

checking for struct sockaddr_storage.ss_family... yes

checking whether IN6_ARE_ADDR_EQUAL macro is broken... no

checking value of IOV_MAX... set in limits.h

checking for SA_LEN macro... no

checking for SUN_LEN macro... no

checking for working alloca.h... yes

checking for alloca... yes

checking for working memcmp... yes

checking for working AI_ADDRCONFIG... yes

checking for working inet_ntoa... yes

checking for working snprintf... yes

checking for atexit... yes

checking for getloadavg... yes

checking for getrusage... yes

checking for getspnam... yes

checking for setbuffer... yes

checking for sigaction... yes

checking for setgroups... yes

checking for setrlimit... yes

checking for setsid... yes

checking for socketpair... yes

checking for strncasecmp... yes

checking for strtoul... yes

checking for sysconf... yes

checking for getrlimit... yes

checking for statvfs... yes

checking for asprintf... no

checking for getaddrinfo... yes

checking for getnameinfo... yes

checking for getpagesize... yes

checking for hstrerror... no

checking for inet_aton... yes

checking for inet_ntop... yes

checking for mkstemp... yes

checking for pread... yes

checking for pwrite... yes

checking for seteuid... yes

checking for strcasecmp... yes

checking for strlcat... yes

checking for strlcpy... yes

checking for strspn... yes

checking for setenv... yes

checking for symlink... yes

checking whether fseeko is declared... yes

checking for working mmap... yes

checking for madvise... yes

checking whether mmap sees writes... yes

checking whether msync is needed... no

checking how many arguments msync takes... 3

checking whether STREAMS fd passing is supported... yes

checking for Unix domain sockets... yes

checking log facility for news... LOG_NEWS

configure: creating ./config.status

config.status: creating Makefile.global

config.status: creating include/inn/paths.h

config.status: creating scripts/innshellvars

config.status: creating scripts/innshellvars.tcl

config.status: creating perl/INN/Config.pm

config.status: creating scripts/innshellvars.pl

config.status: creating support/fixconfig

config.status: creating support/fixscript

config.status: creating include/config.h

Please check the following files before running make, to ensure that

everything was set correctly.

Makefile.global

include/config.h

include/inn/options.h

include/inn/paths.h

innfeed/innfeed.h

[/tmp]# cat inn250.make.out

cd include && make all

../support/mksystem gawk config.h > inn/system.h

../support/mkversion '2.5.0' '' > inn/version.h

cd lib && make all

gcc -g -O2 -I../include -c setproctitle.c

gcc -g -O2 -I../include -c asprintf.c

gcc -g -O2 -I../include -c hstrerror.c

gcc -g -O2 -I../include -c buffer.c

gcc -g -O2 -I../include -c cleanfrom.c

gcc -g -O2 -I../include -c clientactive.c

gcc -g -O2 -I../include -c clientlib.c

gcc -g -O2 -I../include -c commands.c

gcc -g -O2 -I../include -c concat.c

gcc -g -O2 -I../include -c conffile.c

gcc -g -O2 -I../include -c confparse.c

gcc -g -O2 -I../include -c daemonize.c

gcc -g -O2 -I../include -c date.c

gcc -g -O2 -I../include -c dbz.c

gcc -g -O2 -I../include -c defdist.c

gcc -g -O2 -I../include -c dispatch.c

gcc -g -O2 -I../include -c fdflags.c

gcc -g -O2 -I../include -c fdlimit.c

gcc -g -O2 -I../include -c getfqdn.c

gcc -g -O2 -I../include -c getmodaddr.c

gcc -g -O2 -I../include -c hash.c

gcc -g -O2 -I../include -c hashtab.c

gcc -g -O2 -I../include -c headers.c

gcc -g -O2 -I../include -c hex.c

gcc -g -O2 -I../include -c innconf.c

gcc -g -O2 -I../include -c inndcomm.c

gcc -g -O2 -I../include -c list.c

gcc -g -O2 -I../include -c localopen.c

gcc -g -O2 -I../include -c lockfile.c

gcc -g -O2 -I../include -c makedir.c

gcc -g -O2 -I../include -c md5.c

gcc -g -O2 -I../include -c messageid.c

gcc -g -O2 -I../include -c messages.c

gcc -g -O2 -I../include -c mmap.c

gcc -g -O2 -I../include -c network.c

gcc -g -O2 -I../include -c newsuser.c

gcc -g -O2 -I../include -c nntp.c

gcc -g -O2 -I../include -c numbers.c

gcc -g -O2 -I../include -c qio.c

gcc -g -O2 -I../include -c radix32.c

gcc -g -O2 -I../include -c readin.c

gcc -g -O2 -I../include -c remopen.c

gcc -g -O2 -I../include -c reservedfd.c

gcc -g -O2 -I../include -c resource.c

gcc -g -O2 -I../include -c sendarticle.c

gcc -g -O2 -I../include -c sendpass.c

gcc -g -O2 -I../include -c sequence.c

gcc -g -O2 -I../include -c timer.c

gcc -g -O2 -I../include -c tst.c

gcc -g -O2 -I../include -c uwildmat.c

gcc -g -O2 -I../include -c vector.c

gcc -g -O2 -I../include -c wire.c

gcc -g -O2 -I../include -c xfopena.c

gcc -g -O2 -I../include -c xmalloc.c

gcc -g -O2 -I../include -c xsignal.c

gcc -g -O2 -I../include -c xwrite.c

ar r libinn.a setproctitle.o asprintf.o hstrerror.o buffer.o cleanfrom.o 
clientactive.o clientlib.o commands.o concat.o conffile.o confparse.o 
daemonize.o date.o dbz.o defdist.o dispatch.o fdflags.o fdlimit.o getfqdn.o 
getmodaddr.o hash.o hashtab.o headers.o hex.o innconf.o inndcomm.o list.o 
localopen.o lockfile.o makedir.o md5.o messageid.o messages.o mmap.o 
network.o newsuser.o nntp.o numbers.o qio.o radix32.o readin.o remopen.o 
reservedfd.o resource.o sendarticle.o sendpass.o sequence.o timer.o tst.o 
uwildmat.o vector.o wire.o xfopena.o xmalloc.o xsignal.o xwrite.o

ar: creating libinn.a

ranlib libinn.a

gcc -g -O2 -I../include -c perl.c

cd storage && make library

gcc -g -O2 -I../include -I. -c -o expire.o expire.c

../support/fixscript -i buildconfig.in

./buildconfig

gcc -g -O2 -I../include -I. -c -o interface.o interface.c

gcc -g -O2 -I../include -I. -c -o methods.o methods.c

gcc -g -O2 -I../include -I. -c -o ov.o ov.c

gcc -g -O2 -I../include -I. -c -o overdata.o overdata.c

gcc -g -O2 -I../include -I. -c -o overview.o overview.c

gcc -g -O2 -I../include -I. -c -o ovmethods.o ovmethods.c

gcc -g -O2 -I../include -I. -c -o buffindexed/buffindexed.o 
buffindexed/buffindexed.c

gcc -g -O2 -I../include -I. -c -o buffindexed/shmem.o buffindexed/shmem.c

gcc -g -O2 -I../include -I. -c -o cnfs/cnfs.o cnfs/cnfs.c

gcc -g -O2 -I../include -I. -c -o ovdb/ovdb.o ovdb/ovdb.c

gcc -g -O2 -I../include -I. -c -o timecaf/caf.o timecaf/caf.c

gcc -g -O2 -I../include -I. -c -o timecaf/timecaf.o timecaf/timecaf.c

gcc -g -O2 -I../include -I. -c -o timehash/timehash.o timehash/timehash.c

gcc -g -O2 -I../include -I. -c -o tradindexed/tdx-cache.o 
tradindexed/tdx-cache.c

gcc -g -O2 -I../include -I. -c -o tradindexed/tdx-data.o 
tradindexed/tdx-data.c

gcc -g -O2 -I../include -I. -c -o tradindexed/tdx-group.o 
tradindexed/tdx-group.c

gcc -g -O2 -I../include -I. -c -o tradindexed/tradindexed.o 
tradindexed/tradindexed.c

gcc -g -O2 -I../include -I. -c -o tradspool/tradspool.o 
tradspool/tradspool.c

gcc -g -O2 -I../include -I. -c -o trash/trash.o trash/trash.c

ar r libstorage.a expire.o interface.o methods.o ov.o overdata.o overview.o 
ovmethods.o buffindexed/buffindexed.o buffindexed/shmem.o cnfs/cnfs.o 
ovdb/ovdb.o timecaf/caf.o timecaf/timecaf.o timehash/timehash.o 
tradindexed/tdx-cache.o tradindexed/tdx-data.o tradindexed/tdx-group.o 
tradindexed/tradindexed.o tradspool/tradspool.o trash/trash.o

ar: creating libstorage.a

ranlib libstorage.a

cd history && make all

../support/fixscript -i buildconfig.in

./buildconfig

gcc -g -O2 -I../include -I. -c -o his.o his.c

gcc -g -O2 -I../include -I. -c -o hismethods.o hismethods.c

gcc -g -O2 -I../include -I. -c -o hisv6/hisv6.o hisv6/hisv6.c

ar r libinnhist.a his.o hismethods.o hisv6/hisv6.o

ar: creating libinnhist.a

ranlib libinnhist.a

cd perl && make all

cd innd && make all

gcc -g -O2 -I../include -c art.c

gcc -g -O2 -I../include -c cc.c

gcc -g -O2 -I../include -c chan.c

gcc -g -O2 -I../include -c icd.c

gcc -g -O2 -I../include -c innd.c

gcc -g -O2 -I../include -c keywords.c

gcc -g -O2 -I../include -c lc.c

gcc -g -O2 -I../include -c nc.c

gcc -g -O2 -I../include -c newsfeeds.c

gcc -g -O2 -I../include -c ng.c

gcc -g -O2 -I../include -c perl.c

gcc -g -O2 -I../include -c proc.c

gcc -g -O2 -I../include -c python.c

gcc -g -O2 -I../include -c rc.c

gcc -g -O2 -I../include -c site.c

gcc -g -O2 -I../include -c status.c

gcc -g -O2 -I../include -c util.c

gcc -g -O2 -I../include -c wip.c

gcc -o innd art.o cc.o chan.o icd.o innd.o keywords.o lc.o nc.o newsfeeds.o 
ng.o perl.o proc.o python.o rc.o site.o status.o util.o wip.o 
/tmp/inn25a/inn-2.5.0/storage/libstorage.a 
/tmp/inn25a/inn-2.5.0/history/libinnhist.a 
/tmp/inn25a/inn-2.5.0/lib/libinn.a 
/tmp/inn25a/inn-2.5.0/lib/perl.o -lsocket -lnsl

gcc -g -O2 -I../include -c tinyleaf.c

gcc -o tinyleaf tinyleaf.o /tmp/inn25a/inn-2.5.0/lib/libinn.a

Undefined first referenced

symbol in file

bind /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

gethostbyname /tmp/inn25a/inn-2.5.0/lib/libinn.a(getfqdn.o)

socket /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

setsockopt /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

getsockopt /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

connect /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

getaddrinfo /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

freeaddrinfo /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

inet_aton /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

inet_ntop /tmp/inn25a/inn-2.5.0/lib/libinn.a(network.o)

ld: fatal: Symbol referencing errors. No output written to tinyleaf

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `tinyleaf'

Current working directory /tmp/inn25a/inn-2.5.0/innd

*** Error code 1

make: Fatal error: Command failed for target `all-innd'

Nick Ruth

Network Administrator

DCS/OTSO/DIIAS/ICSB/USAT

410.965.2334 (office)

410.504.7086 (blackberry)

4105047086@txt.att.net



"... leadership consists of nothing but taking responsibility for everything 
that goes wrong and giving your subordinates credit for everything that goes 
well." ~ General Dwight D. Eisenhower



Technical Details
Message-ID: <h0r3s2$7as$1@s0b1a68.ssa.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2.news.saunalahti.fi!feeder1.news.saunalahti.fi!nntp.inet.fi!inet.fi!ash.uu.net!news.ssa.gov!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <h0r3s2$7as$1@s0b1a68.ssa.gov>
Subject: unresolved symbols when compiling INN 2.5.0
Date: Thu, 11 Jun 2009 10:20:48 -0400
From: "Nick Ruth" <nick.ruth@ssa.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2.news.saunalahti.fi!feeder1.news.saunalahti.fi!nntp.inet.fi!inet.fi!ash.uu.net!news.ssa.gov!not-for-mail
Newsgroups: news.software.nntp
Organization: Social Security Administration
Lines: 851
Reply-To: "Nick Ruth" <nick.ruth@ssa.gov>
NNTP-Posting-Host: s1bf039.ba.ad.ssa.gov
X-Trace: s0b1a68.ssa.gov 1244730050 7516 10.27.178.175 (11 Jun 2009 14:20:50
 GMT)
X-Complaints-To: DCS.OTSO.DIIAS.ICSB.USAT@ssa.gov
NNTP-Posting-Date: Thu, 11 Jun 2009 14:20:50 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579