2011-06-12 04:10:53 test application with using of sqlite3 library
Dmitry Romannikov (RUSSIAN FEDERATION)
Message: 101219
Hello!
I want to use sqlite3 library in my application and I've made test application for openning sqlite database, but I can't compile this test application:
/home/rdo/Downloads/blackfin-linux-dist/staging/usr/lib/libsqlite3.a(sqlite3.o):
In function `sqlite3_complete':
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:94988:
warning: warning: relocation references a different segment
/home/rdo/Downloads/blackfin-linux-dist/staging/usr/lib/libsqlite3.a(sqlite3.o):
In function `fixBoundingBox':
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:108339:
warning: warning: relocation references a different segment
/home/rdo/Downloads/blackfin-linux-dist/staging/usr/lib/libsqlite3.a(sqlite3.o):
In function `sqlite3ExprAttachSubtrees':
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:60746:
warning: warning: relocation references a different segment
/home/rdo/Downloads/blackfin-linux-dist/staging/usr/lib/libsqlite3.a(sqlite3.o):
In function `sqlite3StrAccumAppend':
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:17153:
warning: warning: relocation references a different segment
/home/rdo/Downloads/blackfin-linux-dist/staging/usr/lib/libsqlite3.a(sqlite3.o):
In function `sqlite3VXPrintf':
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:16640:
warning: warning: relocation references a different segment
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:16801:
warning: warning: relocation references a different segment
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:16864:
warning: warning: relocation references a different segment
/home/rdo/Downloads/blackfin-linux-dist/staging/usr/lib/libsqlite3.a(sqlite3.o):
In function `et_getdigit':
/home/rdo/Downloads/blackfin-linux-dist/lib/sqlite/sqlite-3.6.21/sqlite3.c:16539:
warning: relocation references symbol not defined in the module
/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld:
final link failed: Nonrepresentable section on output
Also I've added -lsqlite3 and -L/home/rdo/Downloads/blackfin-linux-dist/staging/usr/lib/ options to linker.
If anybody knows how to solve this issue, please, help me.
Thanks.
QuoteReplyEditDelete
2011-06-12 10:27:11 Re: test application with using of sqlite3 library
Mike Frysinger (UNITED STATES)
Message: 101220
please post the exact command you're using, and make sure that you compiled the dist with the same toolchain. you cannot mix FDPIC and FLAT.
QuoteReplyEditDelete
2011-06-12 12:43:02 Re: test application with using of sqlite3 library
Dmitry Romannikov (RUSSIAN FEDERATION)
Message: 101221
actually, I've made FDPIC eclipse project and I've compiled eclipse with default compiler.
After changing FDPIC to FLAT program has been cempiled succesfully, but could you tell me what is better: compile dist and program with FLAT or FDPIC?
Thanks!
QuoteReplyEditDelete
2011-06-13 15:33:56 Re: test application with using of sqlite3 library
Mike Frysinger (UNITED STATES)
Message: 101235
there is no single answer for everyone
docs.blackfin.uclinux.org/doku.php?id=toolchain:executable_file_formats