logo       

Re: Compile help: msg#00019

Subject: Re: Compile help
Try to use flags provided by xmlsec-config or simply add -lxmlsec1 :)

Aleksey

mauro@xxxxxxxxxxxxxxxxx wrote:
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@xxxxxxxxxxx
http://www.aleksey.com/mailman/listinfo/xmlsec


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe