[xmlsec] Compile help
mauro at logocenter.com.br
mauro at logocenter.com.br
Mon Mar 26 08:40:44 PST 2007
Thanks.
linux:/libsec/src # gcc `xml2-config --cflags --libs`
`xslt-config --cflags --libs` -lxmlsec1 -g -D__XMLSEC_FUNCTION__=__FUNCTION__
-DXMLSEC_NO_XKMS=1 -I/usr/local/include -I/libsec/xmlsec1-1.2.10/include/ -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1
-DXMLSEC_CRYPTO=\"openssl\" -I/libsec/openssl-0.9.8e/include/ -DUNIX_SOCKETS
sign1.c -o sign1
linux:/libsec/src # ./sign1
Error: wrong number of arguments.
Usage: ./sign1 <tmpl-file> <key-file>
linux:/libsec/src #
----- Original Message -----
From: <mauro at logocenter.com.br>
To: <xmlsec at aleksey.com>
Sent: Monday, March 26, 2007 10:15 AM
Subject: [xmlsec] Compile help
> hi list, i try compile sign1.c at suse linux 9, i get compile error.
>
> linux:/libsec/src # xml2-config --cflags --libs
> -I/usr/include/libxml2
> -L/usr/lib -lxml2 -lz -lpthread -lm
> linux:/libsec/src # xslt-config --cflags --libs
> -I/usr/include/libxml2 -L/usr/lib -lxslt -lxml2 -lz -lpthread -lm
> linux:/libsec/src #gcc `xml2-config --cflags --libs`
> `xslt-config --cflags --libs` -o sign1
> sign1.c -I/libsec/xmlsec1-1.2.10/include/ -I/libsec/openssl-0.9.8e/include/
> /tmp/ccqyTgOU.o(.text+0xa8): In function `main':
> : undefined reference to `xmlSecInit'
> /tmp/ccqyTgOU.o(.text+0xdb): In function `main':
> : undefined reference to `xmlSecCheckVersionExt'
> /tmp/ccqyTgOU.o(.text+0x10f): In function `main':
> : undefined reference to `xmlSecOpenSSLAppInit'
> /tmp/ccqyTgOU.o(.text+0x13a): In function `main':
> : undefined reference to `xmlSecOpenSSLInit'
> /tmp/ccqyTgOU.o(.text+0x18a): In function `main':
> : undefined reference to `xmlSecOpenSSLShutdown'
> /tmp/ccqyTgOU.o(.text+0x18f): In function `main':
> : undefined reference to `xmlSecOpenSSLAppShutdown'
> /tmp/ccqyTgOU.o(.text+0x194): In function `main':
> : undefined reference to `xmlSecShutdown'
> /tmp/ccqyTgOU.o(.text+0x25a): In function `sign_file':
> : undefined reference to `xmlSecDSigNs'
> /tmp/ccqyTgOU.o(.text+0x25f): In function `sign_file':
> : undefined reference to `xmlSecNodeSignature'
> /tmp/ccqyTgOU.o(.text+0x270): In function `sign_file':
> : undefined reference to `xmlSecFindNode'
> /tmp/ccqyTgOU.o(.text+0x2a4): In function `sign_file':
> : undefined reference to `xmlSecDSigCtxCreate'
> /tmp/ccqyTgOU.o(.text+0x2e1): In function `sign_file':
> : undefined reference to `xmlSecOpenSSLAppKeyLoad'
> /tmp/ccqyTgOU.o(.text+0x325): In function `sign_file':
> : undefined reference to `xmlSecKeySetName'
> /tmp/ccqyTgOU.o(.text+0x355): In function `sign_file':
> : undefined reference to `xmlSecDSigCtxSign'
> /tmp/ccqyTgOU.o(.text+0x3a0): In function `sign_file':
> : undefined reference to `xmlSecDSigCtxDestroy'
> collect2: ld returned 1 exit status
> linux:/libsec/src #
>
> thanks
> mauro hinz
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
More information about the xmlsec
mailing list