Article View: news.software.nntp
Article #21157Re: Unable to compile INN-1.5.1sec2
From: Jim Seymour
Date: Mon, 01 Sep 1997 00:00
Date: Mon, 01 Sep 1997 00:00
77 lines
3519 bytes
3519 bytes
[Posted and mailed]
In article <340A112A.41C6@azstarnet.com>,
John Horn <jhorn1@azstarnet.com> writes:
> Hi -
>
> I am trying to compile INN-1.5.1sec2. The compile proceeds well until
> it reaches the point below, then fails. I have included all of the
> libraries mentioned in Install.ms1 for Solaris (2.5.1) and still the
> parse_date function apparently does not appear in any of them. I am
> using gcc (2.7.2 I think). Does anyone have any idea which library
> this function is in, nm tells me that it does not appear in any of my
> libraries, but is referenced in libinn.a as UNDEF (via nm).
>
> Any help would be greatly appreciated.
>
> This is the compile error message I am getting...
>
> cd frontends ; make all ; cd ..
> make[1]: Entering directory `/u/packs/inn-1.5.1sec2/frontends'
> gcc -lnsl -lsocket -o inews inews.o ../libinn.a -lnsl -lsocket
> -lelf
> collect2: ld returned 1 exit status
> Undefined first referenced
> symbol in file
> date_parse ../libinn.a(parsedate.o)
> xsnprintf ../libinn.a(genid.o)
> ld: fatal: Symbol referencing errors. No output written to inews
> make[1]: *** [inews] Error 1
> make[1]: Leaving directory `/u/packs/inn-1.5.1sec2/frontends'
> make: *** [all] Error 1
> Could not build INN. Fix any problems and start again.
>
> Please email me if you have any suggestions.
Well, compiling on a 2.4 system with gcc of an unknow vintage,
for date_parse, I see...
for ea in `find . -name \*.[ao] -print`
do
nm -r $ea |grep "date_parse" && echo $ea
done
[46] | 3136| 2564|FUNC |GLOB |0 |4 |./lib/parsedate.o:date_parse
./lib/parsedate.o
[46] | 3136| 2564|FUNC |GLOB |0 |4 |parsedate.o:date_parse
./lib/libinn.a
[46] | 3136| 2564|FUNC |GLOB |0 |4 |parsedate.o:date_parse
./libinn.a
For xsnprintf, since 2.4 doesn't have it, I used the snprintf
stuff provided with 1.5.1sec2 as recommended in the docs and
in "sample-configs/config.data-solaris2.3-4". So...
for ea in `find . -name \*.[ao] -print`
do
nm -r $ea |grep -v UNDEF |grep "xsnprintf" && echo $ea
done
[3] | 0| 96|FUNC |GLOB |0 |2 |./snprintf/snprintf.o:xsnprintf
./snprintf/snprintf.o
[3] | 0| 96|FUNC |GLOB |0 |2 |snprintf.o:xsnprintf
./snprintf/libsnprintf.a
[3] | 0| 96|FUNC |GLOB |0 |2 |snprintf.o:xsnprintf
./libsnprintf.a
I had thought that 2.5.1 was supposed to have snprintf. Perhaps
you need a patch?
Regards,
Jim
---
Jim Seymour | I'm posting with a new "knews" news-reader
jimsun!jseymour@medar.com | installation. Please bear with me whilst
| I work the bugs out. Thanks!
|
Technical Details
Message-ID:
<5uet1k$9ju$1@jimsun.uucp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<340A112A.41C6@azstarnet.com>Show Full Headers
Complete Article Headers
Message-ID: <5uet1k$9ju$1@jimsun.uucp> Subject: Re: Unable to compile INN-1.5.1sec2 Date: Mon, 01 Sep 1997 00:00:00 +0000 From: jseymour@jimsun.medar.com (Jim Seymour) References: <340A112A.41C6@azstarnet.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 269386737 To: jhorn1@mail.ci.tucson.az.us Organization: No particular organization Reply-To: jimsun!jseymour@medar.com Newsgroups: news.software.nntp