From: JKB on
Hello,

I'm trying to configure and build SQLite 3.6.22 on a T1000 running
Solaris 10. Compiler is gcc-4.4.1 and binutils come from GNU
(2.20.1). This compiler works fine in both 32 and 64 bits.

When I'm trying to build sqlite, I obtain the following error :

/bin/bash ./libtool --tag=CC --mode=link gcc -DSQLITE_THREADSAFE=0
-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -mtune=niagara -mcpu=niagara
-m64 -L/usr/lib/sparcv9 -m64 -o sqlite3 shell.o ./libsqlite3.la
-lreadline -lcurses
gcc -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE
-mtune=niagara -mcpu=niagara -m64 -m64 -o .libs/sqlite3 shell.o
-L/usr/lib/sparcv9 ./.libs/libsqlite3.so -lreadline -lcurses
-Wl,--rpath -Wl,/usr/local/lib
/usr/shared-apps/lib/gcc/sparc-sun-solaris2.10/4.4.1/../../../../sparc-sun-solaris2.10/bin/ld:
../.libs/libsqlite3.so: dlsym: invalid version 5 (max 0)
../.libs/libsqlite3.so: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [sqlite3] Error 1
tchaikovski:[~/rpl/build/tools/sqlite-3.6.22] >

I have verified that all libraries are available in 64 bits mode.
I have tried without any success to build this tool with anly static
libraries and ld returns the same error.

Any explanation ?

Regards,

JKB

--
Le cerveau, c'est un véritable scandale écologique. Il représente 2% de notre
masse corporelle, mais disperse à lui seul 25% de l'énergie que nous
consommons tous les jours.