Kon Lovett uttered:
Hi,
The following occurs building the CVS head w/ gcc 4.0.1 on MacOS 10.4.6:
./libtool --mode=compile gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I.
-I../sqlite/src -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1
-I/usr/local/include -DTHREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=1
-DSQLITE_OMIT_CURSOR -c ../sqlite/src/loadext.c
gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I../sqlite/src -DNDEBUG
-DSQLITE_ALLOW_XTHREAD_CONNECT=1 -I/usr/local/include -DTHREADSAFE=1
-DSQLITE_THREAD_OVERRIDE_LOCK=1 -DSQLITE_OMIT_CURSOR -c
../sqlite/src/loadext.c -fno-common -DPIC -o .libs/loadext.o
../sqlite/src/loadext.c: In function 'sqlite3CloseExtensions':
../sqlite/src/loadext.c:285: error: 'SQLITE_LIBRARY_TYPE' undeclared (first
use in this function)
../sqlite/src/loadext.c:285: error: (Each undeclared identifier is reported
only once
../sqlite/src/loadext.c:285: error: for each function it appears in.)
../sqlite/src/loadext.c:285: error: parse error before ')' token
Probably 'HAVE_DLOPEN' not defined but don't know why.
I have the same issue on Linux. I think it's because HAVE_DLOPEN is not
defined, and DRH doesn't use or maintain the autoconf based build, but
uses his own Makefile (possibly Makefile.linux-gcc based). configure.ac
will need to be updated to check for dlopen and set the defines
accordingly.
As autoconf is horrid, bagsy not me to do it:)
Use you own Makefile until the build system is fixed or remove loadext.c
from your build.
Thank you in advance,
Kon
--
/"\
\ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
X - AGAINST MS ATTACHMENTS
/ \