sgilbertson / sqlite4java

Automatically exported from code.google.com/p/sqlite4java
0 stars 0 forks source link

Library for FreeBSD #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I'm using sqlite on my linux system and loving it, but need to move it to an 
internet accessible machine for the moment, but that system runs FreeBSD. 
FreeBSD often can load a linux library ok, but the libsqlite4java.so gives an 
error about _x64.

I downloaded the source to rebuild the library on the FreeBSD machine, but 
haven't been able to recreate the right cc args and includes to get it done.

Has anyone had success or a makefile for building the lib on FreeBSD or some 
pointers?

Here's what I gleaned from the gant build, but it seems like I'm not getting 
the sqlite.h file included despite included.

gcc -O2 -DNDEBUG -fpic -Di586 -DARCH='"i586"' -DLINUX -D_LARGEFILE64_SOURCE 
-D_GNU_SOURCE \
  -D_LITTLE_ENDIAN -fno-omit-frame-pointer -fno-strict-aliasing -static-libgcc -I./sqlite -I/usr/local/diablo-jdk1.5.0/incl
ude \
  -I/usr/local/diablo-jdk1.5.0/include/freebsd/ intarray.c

It produces this output, all of which looks like sqlite.h to me;

/usr/lib/crt1.o(.text+0x72): In function `_start':
: undefined reference to `main'
/var/tmp//ccXHO69G.o(.text+0x46a): In function `create_vtable':
: undefined reference to `sqlite3_mprintf'
/var/tmp//ccXHO69G.o(.text+0x481): In function `create_vtable':
: undefined reference to `sqlite3_exec'

thanks,
andrew

Original issue reported on code.google.com by n69...@gmail.com on 3 Mar 2011 at 6:14

GoogleCodeExporter commented 9 years ago
Hi Andrew, did you succeed compiling the sources?  

Original comment by ser...@gmail.com on 21 Mar 2011 at 11:36

GoogleCodeExporter commented 9 years ago

Original comment by ser...@gmail.com on 21 Mar 2011 at 11:36

GoogleCodeExporter commented 9 years ago
Unfortunately, we don't have enough resources to provide FreeBSD build, and the 
demand for this is low, so we have to close this issue at this moment. Should 
there be renewed interest in supporting FreeBSD, it could be reopened.

Kind regards,
Igor

Original comment by ser...@almworks.com on 21 Sep 2014 at 6:38