Am Mittwoch, 8. Januar 2014, 20:46:41 schrieb Niels Terp:
> Hi there,
>
> I'm trying to compile XULrunner, with little succes. I have build the whole
> X-libraryes chapter of BLFS 7.4, but this last package fails. I have all
> required and recommended deps, and all optional deps except hunspell and
> wireless tools.
>
> Compilation, or rather configuration ends like this:
>
> configure:22017: gcc -o conftest -std=gnu99 -fgnu89-inline
> -fno-strict-aliasing -ffunction-sections -fdata-sections -pthread
> -lpthread -Wl,-z,noexecstack -Wl,--build-id conftest.c -ldl -lsqlite3
> 1>&5
> /tmp/ccZFeLr3.o: In function `main':
> conftest.c:(.text.main+0x11): undefined reference to
> `sqlite3_compileoption_used'
> collect2: error: ld returned 1 exit status
> configure: failed program was:
> #line 22008 "configure"
> #include "confdefs.h"
>
> #include "sqlite3.h"
>
> int main(int argc, char **argv){
> return !sqlite3_compileoption_used("SQLITE_SECURE_DELETE");
> }
> *** Fix above errors and then restart with "make -f client.mk
> build"
> make[2]: *** [configure] Fejl 1
> make[2]: Forlader katalog
> '/home/lfs/BLFS-RPM-XLIBS/rpmbuild/SOURCES/mozilla-release'
> make[1]: ***
> [/home/lfs/BLFS-RPM-XLIBS/rpmbuild/SOURCES/mozilla-release/xulrunner-build-d
> ir/Makefile] Fejl 2
> make[1]: Forlader katalog
> '/home/lfs/BLFS-RPM-XLIBS/rpmbuild/SOURCES/mozilla-release'
> make: *** [build] Fejl 2
>
> How can that be ? SQLite was compiled as pr. the book.
>
> Best regards
>
> Niels
Did you set the CFLAGS in sqlite as the note below the instructions says
regarding Firefox (and therefore also true for Xulrunner) ?
"... CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -
DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY=1": Applications such as
Firefox require secure delete and enable unlock notify to be turned on. The
only way to do this is to include them in the CFLAGS. ..."
--
Thomas
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page