Tuesday, 20 October 2020

Re: [gccsdk] Trying to build sqlite

Jan-jap,

Before anybody who can actually help in a practical way weighs in,  "undefined reference to `main'" suggests to me that you need to build this as a library not as a executable.  So an .so not a .e1f should be built.

A library shouldn't have a main() entry point.

Alan

 

 

 

From: <gcc-bounces@gccsdk.riscos.info> on behalf of <jjvdgeer@vfemail.net>
Date: Wednesday, 21 October 2020 at 7:27 am
To: <gcc@gccsdk.riscos.info>
Subject: [gccsdk] Trying to build sqlite

 

Hi

I'm trying to build libsqlite but it's failing. According to subversion there was activity on libsqlite3-0 last august, so I suppose it should probably build and the problem is at my end, but I'm not sure how to fix it... Any suggestions?

libtool: link: /home/jjvdgeer/gccsdk/env/arm-unknown-riscos-gcc -O3 -DSQLITE_OS_UNIX=1 -I. -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/src -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/rtree -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/icu -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/fts3 -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/async -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/session -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/userauth -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite -DNDEBUG -DSQLITE_THREADSAFE=1 -DHAVE_READLINE=1 -DHAVE_EDITLINE=0 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_DESERIALIZE -DSQLITE_INTROSPECTION_PRAGMAS -o sqlite3,e1f shell.c sqlite3.c  -lreadline -ldl -Wl,-rpath -Wl,/home/jjvdgeer/gccsdk/env/lib

libtool: compile:  /home/jjvdgeer/gccsdk/env/arm-unknown-riscos-gcc -O3 -DSQLITE_OS_UNIX=1 -I. -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/src -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/rtree -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/icu -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/fts3 -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/async -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/session -I/home/jjvdgeer/gccsdk/autobuilder/libsqlite3-0/sqlite3-3.27.2/ext/userauth -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite -DNDEBUG -DSQLITE_THREADSAFE=1 -DSQLITE_TEMP_STORE=1 -c sqlite3.c -o sqlite3.o >/dev/null 2>&1

/home/jjvdgeer/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/lib/crt0.o: In function `crt1_data':

crt0.S:(.data+0x14): undefined reference to `main'

collect2: error: ld returned 1 exit status

make: *** [Makefile:650: sqlite3,e1f] Error 1

make: *** Waiting for unfinished jobs....


Cheers,
Jan-Jaap

 

 

No comments:

Post a Comment