link fails if xml-security-c library outside default link path

Description

The link step fails during compilation if the xml-security-c library was installed outside of ld's default search path, due to the ordering of link options on the libtool command line:

This occurs because XMLSEC_LIBS precedes LDFLAGS on the libtool link command line, and XMLSEC_LIBS includes -lxml-security-c but not the -L option needed to find the library.

Two possible solutions:

  • Move XMLSEC_LIBS after LDFLAGS on the libtool link command line in xmltooling/Makefile

  • Add the with_xmlsec -L option to XMLSEC_LIBS in configure

Environment

Solaris 9, Sun Forte 5.8

Activity

Show:

Scott Cantor November 15, 2011 at 4:22 AM

Scott Cantor November 15, 2011 at 4:02 AM

Scott Cantor August 8, 2011 at 2:40 PM

http://svn.shibboleth.net/view/cpp-xmltooling?view=revision&revision=892

XMLSEC_LIBS ends up in LDFLAGS by way of automake, so no need to set -L in both.

Christopher Bongaarts July 27, 2011 at 6:42 PM

This patch seems to work:

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created July 27, 2011 at 5:19 PM
Updated August 7, 2012 at 1:11 AM
Resolved August 8, 2011 at 2:40 PM