Hi pol.
sqlite3 has a build issue WITH_ICU like following:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
./src/shell.c: In function 'display_stats':
./src/shell.c:982: error: 'SQLITE_STATUS_MALLOC_COUNT' undeclared (first use in
this function)
./src/shell.c:982: error: (Each undeclared identifier is reported only once
./src/shell.c:982: error: for each function it appears in.)
:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Because -I/usr/local/include is too fast than -I. -I./src.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
libtool: link: cc -I/usr/local/include -O2 -pipe -march=nocona
-DSQLITE_SOUNDEX=1 -DSQLITE_SECURE_DELETE=1 -fno-strict-aliasing
-DSQLITE_OS_UNIX=1 -I. -I./src ...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
So sqlite3's sources includes already installed sqlite3.h.
To fix this issue, I made a patch. May I commit this OK?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
--- Makefile.orig 2010-09-03 18:27:26.052085000 +0900
+++ Makefile 2010-09-12 00:45:41.812111163 +0900
@@ -149,8 +149,8 @@
CONFIGURE_ARGS+= --disable-load-extension
.endif
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ENV+= CPPFLAGS="-I. -I./src ${CPPFLAGS}"
LDFLAGS="${LDFLAGS}"
+MAKE_ENV+= CPPFLAGS="-I. -I./src ${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
post-install:
.if defined(WITH_TCLWRAPPER)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Thank you.
--
Norikatsu Shigemura <[email protected]>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"