Re: ovsqlite

Julien ÉLIE <[email protected]>
Newsgroups gmane.network.inn
Message-ID <[email protected]>
Hi Bo,

> That's a clean exit, so it should return 0.

Speaking of ovsqlite-server and its main() function, I'm facing a build 
issue on BSD systems (with and without SQLite support):


FreeBSD 12.1
checking for a sufficiently recent SQLite... no

../libtool --mode=link cc -pie -fstack-protector-strong -Wl,-z,relro 
-Wl,-z,now  -o ovsqlite/ovsqlite-server 
/home/iulius/autobuild/inn-gcc303/storage/libstorage.la 
/home/iulius/autobuild/inn-gcc303/history/libinnhist.la 
/home/iulius/autobuild/inn-gcc303/lib/libinn.la  -lz
libtool: link: cc -pie -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z 
-Wl,now -o ovsqlite/.libs/ovsqlite-server 
/home/iulius/autobuild/inn-gcc303/history/.libs/libinnhist.so 
/home/iulius/autobuild/inn-gcc303/storage/.libs/libstorage.so 
/home/iulius/autobuild/inn-gcc303/lib/.libs/libinn.so -lz -Wl,-rpath 
-Wl,/usr/local/news/lib
ld: error: undefined symbol: main
 >>> referenced by crt1.c:76 (/usr/src/lib/csu/amd64/crt1.c:76)
 >>>               /usr/lib/Scrt1.o:(_start)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1



NetBSD 9.0
checking for a sufficiently recent SQLite... yes

../libtool --mode=link gcc -pie -fstack-protector-strong -Wl,-z,relro 
-Wl,-z,now  -o ovsqlite/ovsqlite-server 
/home/iulius/autobuild/inn-gcc300/storage/libstorage.la 
/home/iulius/autobuild/inn-gcc300/history/libinnhist.la 
/home/iulius/autobuild/inn-gcc300/lib/libinn.la  -lz -lsqlite3
libtool: link: gcc -pie -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z 
-Wl,now -o ovsqlite/.libs/ovsqlite-server 
/home/iulius/autobuild/inn-gcc300/history/.libs/libinnhist.so 
/home/iulius/autobuild/inn-gcc300/storage/.libs/libstorage.so 
/home/iulius/autobuild/inn-gcc300/lib/.libs/libinn.so -lz -lsqlite3 
-Wl,-rpath -Wl,/usr/local/news/lib
ld: /usr/lib/crt0.o: in function `___start':
(.text+0x2e9): undefined reference to `main'
*** Error code 1

Stop.





Do you happen to know how to fix that?

-- 
Julien ÉLIE

« À vaincre sans péril, on triomphe sans gloire. » (Corneille)
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.