[xmlsec] Compile help

mauro at logocenter.com.br mauro at logocenter.com.br
Mon Mar 26 05:15:03 PST 2007


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 




More information about the xmlsec mailing list