David Ciecierski wrote:
After the bootstrap and dmake, I get stuck on libxmlsec. The configure runs, and bails because it can't find the nss/nspr stuff (or openssl/gnutls). It's not accepting the original configure command apparently, and even running it separately I can't get it to accept the nss/nspr stuff.


Hello,
and thanks for your tips Jeremy. Just got up... I was able to get through nss/nspr dependency checking last night by first updating xmlsec 1.2.9, and then patching it to look for firefox's nss/nspr if it cannot find mozilla (patch attached, beware it's a bloated beta as I applied my identation to see things better). You've probably noticed that OOo guys did several changes to libxmlsec (their patch is something ~.5MB IIRC), but these were supposedly incorporated in xmlsec 1.2.8.

I downloaded 1.2.9 and dropped it in the libxmlsec/download folder after using your patch, changed the makefile to point to xmlsec-1.2.9, and touched libxmlsec/xmlsec1-1.2.9.patch because make complains about it missing. Configure finds the nss/nspr stuff ok, but then bails soon after with an error in keytrans.c:

[code]
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DPACKAGE=\"xmlsec1\" -I../.. -I../../include -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XSLT=1 -DXMLSEC_NO_XKMS=1 -I/opt/firefox/include/firefox-1.0.6/nspr -I/opt/firefox/include/firefox-1.0.6/nss -DXMLSEC_CRYPTO_NSS=1 -I/usr/include/libxml2 -O3 -march=athlon-fx -MT keytrans.lo -MD -MP -MF .deps/keytrans.Tpo -c keytrans.c -fPIC -DPIC -o .libs/keytrans.o
keytrans.c:1: error: syntax error at end of input
make[3]: *** [keytrans.lo] Error 1
[/code]

The file contains simply "dummy". Replacing that with a real copy allows the build to continue on. I'm assuming that part of the 1.2.6 patch is responsible for doing this, though I haven't looked through it.. in any case, the build is continuing as I write. (Just using the ..-1.2.6.patch is worse after a /s/1.2.6/1.2.9/ applied.)

Accidentally built this one with C{,XX}FLAGS=-O3 -march=athlon-fx, but surprisingly it's still going nuts.

Anyway, I got through that, but are now recompiling firefox with LDAP - just copying the relevant include files :-] seems not enough, make bails out at some point:

<snip output>

Looks like it's as simple as it not finding the ldap lib; thunderbird has a build of it, so I assume if you put your thunderbird lib directory in /etc/ld.so.conf and run ldconfig it would be found, no? I don't have ldap built for firefox but my build went right through it no problem.

I imagine the configure flags they have (--with-libxslt=no --with-openssl=no --with-gnutls=no) stand there for a reason, namely that OOo is not flexible enough to with with any backend other than xmlsec. Sadly, as it would certainly save us a few problems.

You mean other than nss, I assume.. xmlsec requires, according to the configure, one of openssl, gnutls, or nss (and they've hardcoded out two of them.)

I'll let you know how my current build attempt works out, and I'll try to write up a simple-as-possible build script. A couple patches will be kinda annoying; I guess the sub-packages will just have to be patched before they're copied into the source tree.

Regards,
Jeremy.

--
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