I just tried to see what ELF class is in after running the following (added -D_FILE_OFFSET_BITS=64):
/usr/local/bin/gcc -D_FILE_OFFSET_BITS=64 -c -fPIC -DHAVE_USLEEP sqlite3.c # file libsqlite3.so grep ELF libsqlite3.so: ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU], dynamically linked, not stripped, no debugging information available How can I get the ELF class to reflect "ELF 64-bit"? Any ideas? Lynton -----Original Message----- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice Sent: 22 November 2010 09:33 AM To: 'General Discussion of SQLite Database' Subject: Re: [sqlite] Compile 64bit version of SQLIte on Solaris? Hi there, The reason I ask is that I have created a C shared lib using SQLite functions etc and the custom shared lib I have created needs to be ELF class 64. At the moment I am getting the ELF class issues: wrong ELF class: ELFCLASS32 That is why I am hoping I can compile the main SQLite shared lib in ELF class 64.. This possible? Thanks Lynton -----Original Message----- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice Sent: 22 November 2010 09:28 AM To: sqlite-users@sqlite.org Subject: [sqlite] Compile 64bit version of SQLIte on Solaris? Hi there, I am getting the following error when trying to compile SQLite on a Solaris 64 bit machine: /usr/local/bin/gcc -m64 -R/usr/sfw/lib/64 -c -fPIC -DHAVE_USLEEP sqlite3.c sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in Can someone please let me know how I can do this so I can use SQLite on a 64 bit Solaris machine? Thanks Lynton _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users