[ports/databases/sqlite3] Fix build error WITH_ICU
Pavel I Volkov
pol at opk.ru
Mon Sep 13 17:18:47 UTC 2010
Hello
Unfortunately I was unable to repeat the mistake you might have.
However, your proposed path specifies the correct sequence of the
inclusion of header files in the event of conflict with already
installed version.
I agree with your proposal.
Thank you.
11.09.2010 19:56, Norikatsu Shigemura wrote:
> 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.
>
More information about the freebsd-ports
mailing list