[xmlsec] Building PyXmlSec on 64bit architectures
Jonathan Share
jshare at opera.com
Fri Sep 5 02:51:07 PDT 2008
Hi,
I know this isn't the PyXmlSec list but that seems pretty dead and the
assert that's failing is somewhere in xmlsec. Build output (so you can
see the flags used when building PyXmlSec) is pasted below, libxmlsec is
the standard debian etch package.
I've been working on some signing code based on the PyXmlSec library
which works great on my development machine (32 bit Debian Etch) however
both on another developer's machine (64bit Gentoo) and the servers we
use (64 bit Debian Etch) although the library builds installs and
imports fine if when calling sign I get the following output
func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=463:obj=unknown:subj=dsigCtx->signValueNode
== NULL:error=100:assertion:
func=xmlSecDSigCtxSign:file=xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec
library function failed:
I assume/hope my problem will be solved by adding some parameters to the
Extension config in setup.py but I have no idea where to start looking.
Has anyone else seen this problem? Or know where I can start looking?
Thanks in advance
Jonathan
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.5
copying xmlsec.py -> build/lib.linux-x86_64-2.5
copying xmlsec_strings.py -> build/lib.linux-x86_64-2.5
running build_ext
building 'xmlsecmod' extension
creating build/temp.linux-x86_64-2.5
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c utils.c -o
build/temp.linux-x86_64-2.5/utils.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c wrap_objs.c -o
build/temp.linux-x86_64-2.5/wrap_objs.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c app.c -o
build/temp.linux-x86_64-2.5/app.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c base64.c -o
build/temp.linux-x86_64-2.5/base64.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c buffer.c -o
build/temp.linux-x86_64-2.5/buffer.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c errors.c -o
build/temp.linux-x86_64-2.5/errors.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c keyinfo.c -o
build/temp.linux-x86_64-2.5/keyinfo.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c keys.c -o
build/temp.linux-x86_64-2.5/keys.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c keysdata.c -o
build/temp.linux-x86_64-2.5/keysdata.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c keysmngr.c -o
build/temp.linux-x86_64-2.5/keysmngr.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c list.c -o
build/temp.linux-x86_64-2.5/list.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c membuf.c -o
build/temp.linux-x86_64-2.5/membuf.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c nodeset.c -o
build/temp.linux-x86_64-2.5/nodeset.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c parser.c -o
build/temp.linux-x86_64-2.5/parser.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c templates.c -o
build/temp.linux-x86_64-2.5/templates.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c transforms.c -o
build/temp.linux-x86_64-2.5/transforms.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c version.c -o
build/temp.linux-x86_64-2.5/version.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c xmldsig.c -o
build/temp.linux-x86_64-2.5/xmldsig.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c xmlenc.c -o
build/temp.linux-x86_64-2.5/xmlenc.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c xmlsec.c -o
build/temp.linux-x86_64-2.5/xmlsec.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c xmltree.c -o
build/temp.linux-x86_64-2.5/xmltree.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c x509.c -o
build/temp.linux-x86_64-2.5/x509.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -D__XMLSEC_FUNCTION__=__FUNCTION__
-UXMLSEC_NO_SIZE_T -DXMLSEC_NO_XKMS=1
-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1
-DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=openssl -I/usr/include/libxml2
-I/usr/include/xmlsec1 -I/usr/include/python2.5 -c xmlsecmod.c -o
build/temp.linux-x86_64-2.5/xmlsecmod.o
gcc -pthread -shared -Wl,-O1 build/temp.linux-x86_64-2.5/utils.o
build/temp.linux-x86_64-2.5/wrap_objs.o
build/temp.linux-x86_64-2.5/app.o build/temp.linux-x86_64-2.5/base64.o
build/temp.linux-x86_64-2.5/buffer.o
build/temp.linux-x86_64-2.5/errors.o
build/temp.linux-x86_64-2.5/keyinfo.o build/temp.linux-x86_64-2.5/keys.o
build/temp.linux-x86_64-2.5/keysdata.o
build/temp.linux-x86_64-2.5/keysmngr.o
build/temp.linux-x86_64-2.5/list.o build/temp.linux-x86_64-2.5/membuf.o
build/temp.linux-x86_64-2.5/nodeset.o
build/temp.linux-x86_64-2.5/parser.o
build/temp.linux-x86_64-2.5/templates.o
build/temp.linux-x86_64-2.5/transforms.o
build/temp.linux-x86_64-2.5/version.o
build/temp.linux-x86_64-2.5/xmldsig.o
build/temp.linux-x86_64-2.5/xmlenc.o
build/temp.linux-x86_64-2.5/xmlsec.o
build/temp.linux-x86_64-2.5/xmltree.o build/temp.linux-x86_64-2.5/x509.o
build/temp.linux-x86_64-2.5/xmlsecmod.o -lxml2 -lxmlsec1-openssl
-lxmlsec1 -lxslt -lssl -lcrypto -o build/lib.linux-x86_64-2.5/xmlsecmod.so
More information about the xmlsec
mailing list