[xmlsec] Re: problem compiling extension for nss
Edward Shallow
ed.shallow at rogers.com
Thu Nov 17 09:37:57 PST 2005
Hi Aleksey,
I know this is not your library but can you shed light on the
following compile of the pyxmlsec extension for nss.
It is failing on the undeclared reference to xmlSecTransformRsaOaepId in
app.c snip below.
Is this simply because this transform is not supported in NSS ?
The code seems to treat all 3 the same.
Thanks,
Ed
/* only OPENSSL, MSCRYPTO and NSS */
PyObject *xmlsec_TransformRsaOaepId(PyObject *self, PyObject *args) {
#if defined XMLSEC_CRYPTO_OPENSSL || defined XMLSEC_CRYPTO_MSCRYPTO ||
defined XMLSEC_CRYPTO_NSS
return (wrap_xmlSecTransformId(xmlSecTransformRsaOaepId));
#else
return (NULL);
#endif
}
On Thu, 2005-11-17 at 12:00 -0500, Edward Shallow wrote:
> Hi Valery,
>
> I did a setup Clean, then started a Build with NSS instead of
> OpenSSL. Here are the compile errors. This is a vanilla Fedora 4
> distribution.
>
> Any ideas ?
>
> Ed
>
>
>
> Choose a crypto engine :
> 1. OpenSSL
> 2. GnuTLS
> 3. NSS
> Your choice : 3
> running build
> running build_py
> creating build/lib.linux-i686-2.4
> copying xmlsec.py -> build/lib.linux-i686-2.4
> copying xmlsec_strings.py -> build/lib.linux-i686-2.4
> running build_ext
> building 'xmlsecmod' extension
> creating build/temp.linux-i686-2.4
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fas ynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
> -DXMLSEC_CRYPTO=nss -DXMLSEC_CRYPTO_NSS=1
> -D__XMLSEC_FUNCTION__=__FUNCTION__ -D XMLSEC_NO_XKMS=1
> -I/usr/include/libxml2 -I/usr/include/xmlsec1
> -I/usr/include/mozilla-1.7.8/nss -I/usr/include/mozilla-1.7.8/nspr
> -I/usr/include/python2.4 -c utils.c -o build/temp.linux-i686-2.4/utils.o
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fas ynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
> -DXMLSEC_CRYPTO=nss -DXMLSEC_CRYPTO_NSS=1
> -D__XMLSEC_FUNCTION__=__FUNCTION__ -D XMLSEC_NO_XKMS=1
> -I/usr/include/libxml2 -I/usr/include/xmlsec1
> -I/usr/include/mozilla-1.7.8/nss -I/usr/include/mozilla-1.7.8/nspr
> -I/usr/include/python2.4 -c wrap_objs.c -o
> build/temp.linux-i686-2.4/wrap_objs.o
> wrap_objs.c: In function ‘PythonStringList_get’:
> wrap_objs.c:16: warning: pointer targets in assignment differ in
> signedness
> wrap_objs.c: In function ‘wrap_xmlSecBytePtr’:
> wrap_objs.c:150: warning: pointer targets in passing argument 1 of
> ‘PyString_FromString’ differ in signedness
> wrap_objs.c: In function ‘wrap_xmlSecBytePtrConst’:
> wrap_objs.c:162: warning: pointer targets in passing argument 1 of
> ‘PyString_FromString’ differ in signedness
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fas ynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
> -DXMLSEC_CRYPTO=nss -DXMLSEC_CRYPTO_NSS=1
> -D__XMLSEC_FUNCTION__=__FUNCTION__ -D XMLSEC_NO_XKMS=1
> -I/usr/include/libxml2 -I/usr/include/xmlsec1
> -I/usr/include/mozilla-1.7.8/nss -I/usr/include/mozilla-1.7.8/nspr
> -I/usr/include/python2.4 -c app.c -o build/temp.linux-i686-2.4/app.o
> In file included from /usr/include/python2.4/Python.h:8,
> from utils.h:5,
> from xmlsecmod.h:25,
> from app.c:25:
> /usr/include/python2.4/pyconfig.h:283:1: warning: "HAVE_LONG_LONG"
> redefined
> In file included from /usr/include/mozilla-1.7.8/nspr/prtypes.h:55,
> from /usr/include/mozilla-1.7.8/nspr/pratom.h:43,
> from /usr/include/mozilla-1.7.8/nspr/nspr.h:38,
> from /usr/include/xmlsec1/xmlsec/nss/app.h:17,
> from /usr/include/xmlsec1/xmlsec/crypto.h:49,
> from xmlsecmod.h:4,
> from app.c:25:
> /usr/include/mozilla-1.7.8/nspr/prcpucfg.h:605:1: warning: this is the
> location of the previous definition
> app.c: In function ‘xmlsec_TransformRsaOaepId’:
> app.c:466: error: ‘xmlSecNssTransformRsaOaepId’ undeclared (first use in
> this function)
> app.c:466: error: (Each undeclared identifier is reported only once
> app.c:466: error: for each function it appears in.)
> error: command 'gcc' failed with exit status 1
> [root at localhost pyxmlsec-0.2.2]#
>
>
More information about the xmlsec
mailing list