🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Aioe Fri, 26 Dec 2003 17:43
Troubles using libinn and libstorage
#67559
Author: Aioe
Date: Fri, 26 Dec 2003 17:43
123 lines
7843 bytes
I'm trying to write a simple C program that use libinn and libstorage. My
[pathlib] is /news/lib, i'm using inn 2.4.0. This is the output and i'm not
be able to understand what's wrong. 

Any help is wellcome.

 

[aioe@matilde src]$ libtool --mode=link gcc *.c  -DNDEBUG -O2 -O3  -Wall  -o
ilaria -L/news/lib -linn -lstorage
gcc errori.c file.c ilaria.c init.c inn_backend.c nntp.c token.c uucp.c
-DNDEBUG -O2 -O3 -Wall -o ilaria  -L/news/lib -linn -lstorage
/news/lib/libstorage.a(interface.o)(.text+0x3ce): In function `GetXref':
/usr/src/inn/inn-2.4.0/storage/interface.c:231: undefined reference to
`wire_findheader'
/news/lib/libstorage.a(interface.o)(.text+0x6e2): In function
`SMreadconfig':
/usr/src/inn/inn-2.4.0/storage/interface.c:388: undefined reference to
`CONFfopen'
/news/lib/libstorage.a(interface.o)(.text+0x713):/usr/src/inn/inn-2.4.0/storage/interface.c:398:
undefined reference to `CONFgettoken'
/news/lib/libstorage.a(interface.o)(.text+0x741):/usr/src/inn/inn-2.4.0/storage/interface.c:405:
undefined reference to `CONFgettoken'
/news/lib/libstorage.a(interface.o)(.text+0x775):/usr/src/inn/inn-2.4.0/storage/interface.c:411:
undefined reference to `CONFgettoken'
/news/lib/libstorage.a(interface.o)(.text+0x7d5):/usr/src/inn/inn-2.4.0/storage/interface.c:425:
undefined reference to `CONFgettoken'
/news/lib/libstorage.a(interface.o)(.text+0x7ee):/usr/src/inn/inn-2.4.0/storage/interface.c:528:
undefined reference to `CONFfclose'
/news/lib/libstorage.a(interface.o)(.text+0x8df):/usr/src/inn/inn-2.4.0/storage/interface.c:432:
undefined reference to `CONFgettoken'
/news/lib/libstorage.a(interface.o)(.text+0xf33): In function `MatchGroups':
/usr/src/inn/inn-2.4.0/storage/interface.c:665: undefined reference to
`uwildmat_poison'
/news/lib/libstorage.a(cnfs.o)(.text+0xede): In function `CNFSinit_disks':
cnfs/cnfs.c:556: undefined reference to `close_on_exec'
/news/lib/libstorage.a(cnfs.o)(.text+0x1181): In function `CNFSread_config':
cnfs/cnfs.c:700: undefined reference to `ReadInFile'
/news/lib/libstorage.a(cnfs.o)(.text+0x1c1b): In function `cnfs_store':
cnfs/cnfs.c:1155: undefined reference to `xwritev'
/news/lib/libstorage.a(cnfs.o)(.text+0x233b): In function `cnfs_retrieve':
cnfs/cnfs.c:1354: undefined reference to `wire_findbody'
/news/lib/libstorage.a(cnfs.o)(.text+0x2f90): In function `cnfs_next':
cnfs/cnfs.c:1663: undefined reference to `wire_findbody'
/news/lib/libstorage.a(timecaf.o)(.text+0x589): In function `timecaf_store':
timecaf/timecaf.c:393: undefined reference to `close_on_exec'
/news/lib/libstorage.a(timecaf.o)(.text+0x59a):timecaf/timecaf.c:394:
undefined reference to `xwritev'
/news/lib/libstorage.a(timecaf.o)(.text+0x700):timecaf/timecaf.c:350:
undefined reference to `MakeDirectory'
/news/lib/libstorage.a(timecaf.o)(.text+0x910): In function `OpenArticle':
timecaf/timecaf.c:500: undefined reference to `wire_findbody'
/news/lib/libstorage.a(timehash.o)(.text+0x2b5): In function
`timehash_store':
timehash/timehash.c:140: undefined reference to `MakeDirectory'
/news/lib/libstorage.a(timehash.o)(.text+0x2fd):timehash/timehash.c:167:
undefined reference to `xwritev'
/news/lib/libstorage.a(timehash.o)(.text+0x5fa): In function `OpenArticle':
timehash/timehash.c:255: undefined reference to `wire_findbody'
/news/lib/libstorage.a(tradspool.o)(.text+0x68): In function `HashNGName':
tradspool/tradspool.c:110: undefined reference to `Hash'
/news/lib/libstorage.a(tradspool.o)(.text+0x416): In function `ReadDBFile':
tradspool/tradspool.c:336: undefined reference to `QIOopen'
/news/lib/libstorage.a(tradspool.o)(.text+0x42c):tradspool/tradspool.c:336:
undefined reference to `QIOread'
/news/lib/libstorage.a(tradspool.o)(.text+0x47b):tradspool/tradspool.c:351:
undefined reference to `QIOread'
/news/lib/libstorage.a(tradspool.o)(.text+0x48d):tradspool/tradspool.c:353:
undefined reference to `QIOclose'
/news/lib/libstorage.a(tradspool.o)(.text+0x4ba):tradspool/tradspool.c:344:
undefined reference to `QIOclose'
/news/lib/libstorage.a(tradspool.o)(.text+0x515): In function
`ReadActiveFile':
tradspool/tradspool.c:368: undefined reference to `QIOopen'
/news/lib/libstorage.a(tradspool.o)(.text+0x54a):tradspool/tradspool.c:383:
undefined reference to `QIOread'
/news/lib/libstorage.a(tradspool.o)(.text+0x55c):tradspool/tradspool.c:385:
undefined reference to `QIOclose'
/news/lib/libstorage.a(tradspool.o)(.text+0x58c):tradspool/tradspool.c:378:
undefined reference to `QIOclose'
/news/lib/libstorage.a(tradspool.o)(.text+0x610): In function
`CheckNeedReloadDB':
tradspool/tradspool.c:424: undefined reference to `GetTimeInfo'
/news/lib/libstorage.a(tradspool.o)(.text+0xc0f): In function
`tradspool_store':
tradspool/tradspool.c:633: undefined reference to `xwritev'
/news/lib/libstorage.a(tradspool.o)(.text+0xe21):tradspool/tradspool.c:690:
undefined reference to `MakeDirectory'
/news/lib/libstorage.a(tradspool.o)(.text+0xf38):tradspool/tradspool.c:611:
undefined reference to `MakeDirectory'
/news/lib/libstorage.a(tradspool.o)(.text+0x126a): In function
`OpenArticle':
tradspool/tradspool.c:841: undefined reference to `wire_findbody'
/news/lib/libstorage.a(tradspool.o)(.text+0x157e): In function
`tradspool_cancel':
tradspool/tradspool.c:949: undefined reference to `wire_findheader'
/news/lib/libstorage.a(tradspool.o)(.text+0x1ada): In function
`tradspool_next':
tradspool/tradspool.c:1134: undefined reference to `wire_findheader'
/news/lib/libstorage.a(tradspool.o)(.text+0x1bb1):tradspool/tradspool.c:1173:
undefined reference to `wire_findheader'
/news/lib/libstorage.a(tradspool.o)(.text+0x1c09):tradspool/tradspool.c:1183:
undefined reference to `wire_findheader'
/news/lib/libstorage.a(tradspool.o)(.text+0x1c63):tradspool/tradspool.c:1193:
undefined reference to `parsedate'
/news/lib/libstorage.a(caf.o)(.text+0xc4c): In function `CAFCreateCAFFile':
timecaf/caf.c:709: undefined reference to `inn_lock_file'
/news/lib/libstorage.a(caf.o)(.text+0xd2a): In function `CAFOpenArtWrite':
timecaf/caf.c:798: undefined reference to `inn_lock_file'
/news/lib/libstorage.a(caf.o)(.text+0xd44):timecaf/caf.c:806: undefined
reference to `inn_lock_file'
/news/lib/libstorage.a(caf.o)(.text+0x1389): In function
`CAFRemoveMultArts':
timecaf/caf.c:1167: undefined reference to `inn_lock_file'
/news/lib/libstorage.a(caf.o)(.text+0x139b):timecaf/caf.c:1170: undefined
reference to `inn_lock_file'
/news/lib/libstorage.a(caf.o)(.text+0x1727):timecaf/caf.c:1389: more
undefined references to `inn_lock_file' follow
collect2: ld returned 1 exit status



Posted from X-Privat Free NNTP server - www.x-privat.org
Re: Troubles using libinn and libstorage
#67560
Author: Russ Allbery
Date: Fri, 26 Dec 2003 19:20
13 lines
1703 bytes
Aioe <estasi@aioe.org> writes:

> I'm trying to write a simple C program that use libinn and libstorage. My
> [pathlib] is /news/lib, i'm using inn 2.4.0. This is the output and i'm not
> be able to understand what's wrong. 

The order of the libraries matters.  You have to do -lstorage -linn.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Troubles using libinn and libstorage
#67563
Author: Aioe
Date: Sat, 27 Dec 2003 11:40
12 lines
1324 bytes
Russ Allbery wrote:

> The order of the libraries matters.  You have to do -lstorage -linn.

it works

thank you

:)


Posted from X-Privat Free NNTP server - www.x-privat.org
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads