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-b
> uild-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
--
In fact I had done just that. But in all fairness, I had compiled SQLite as
a RPM - I am working on a complete system with Xorg, XLIBS and KDE build as
RPM's, and until now everything has worked fine (including KDE - now I am
going over everything a second time - first time I simply left out
XULrunner). My RPM template include even more CFLAGS, so I tried to remove
them and recompile. Same problem. Then I did a good old fashioned compile of
SQLite, overwriting the RPM-installed version. Then it worked !

I will try to look further into this, but if you - or anybody else - happen
to know if there is a general problem with CFLAGS when compiling with RPM, I
would appreciate any input you may be able to give me !

Best regards

Niels

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to