Bug 86632

Summary: textproc/xmlstarlet fails to link to latest textproc/libxslt
Product: Ports & Packages Reporter: Adam VanderHook <acidos>
Component: Individual Port(s)Assignee: Marcus Alves Grando <mnag>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Adam VanderHook 2005-09-27 14:40:16 UTC
When doing a 'make' or even running portupgrade an linker error is returned attempting
to link to /usr/local/bin/libexslt.a on exsltCryptoGcrypt methods even though
/usr/local/lib/libgcrypt.so is present and textproc/libxslt has been built with
WITH_GCRYPT=yes

Fix: 

Haven't found a fix yet.  Have tried rebuilding libxslt and xmlstarlet multiple times in
an attempt to ensure gcrypt is enabled, but to no avail.

The following is an 'ls' of libgcrypt.so on my system:

lrwxr-xr-x  1 root  wheel      15 Apr 22 08:56 /usr/local/lib/libgcrypt.so -> libgcrypt.so.13
-rwxr-xr-x  1 root  wheel  335953 Apr 22 08:56 /usr/local/lib/libgcrypt.so.13

The following is the output when trying to link.

cc  -O -pipe  -o xml  xml.o xml_edit.o xml_ls.o xml_escape.o xml_pyx.o  xml_depyx.o xml_select.o xml_trans.o xml_validate.o xml_format.o  xml_elem.o xml_C14N.o trans.o binsert.o stack.o strdup.o /usr/local/lib/libxslt.a /usr/local/lib/libexslt.a -lz -lm -pthread /usr/local/lib/libxml2.a -lz -lm -pthread -liconv -L/usr/local/lib
/usr/local/lib/libexslt.a(crypto.o)(.text+0x101): In function `exsltCryptoGcryptInit':
: undefined reference to `gcry_check_version'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x134): In function `exsltCryptoGcryptHash':
: undefined reference to `gcry_md_hash_buffer'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x159): In function `exsltCryptoGcryptRc4Encrypt':
: undefined reference to `gcry_cipher_open'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x169): In function `exsltCryptoGcryptRc4Encrypt':
: undefined reference to `gcry_strerror'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x19a): In function `exsltCryptoGcryptRc4Encrypt':
: undefined reference to `gcry_cipher_ctl'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x1aa): In function `exsltCryptoGcryptRc4Encrypt':
: undefined reference to `gcry_strerror'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x1df): In function `exsltCryptoGcryptRc4Encrypt':
: undefined reference to `gcry_cipher_encrypt'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x1ef): In function `exsltCryptoGcryptRc4Encrypt':
: undefined reference to `gcry_strerror'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x217): In function `exsltCryptoGcryptRc4Encrypt':
: undefined reference to `gcry_cipher_close'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x23d): In function `exsltCryptoGcryptRc4Decrypt':
: undefined reference to `gcry_cipher_open'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x24d): In function `exsltCryptoGcryptRc4Decrypt':
: undefined reference to `gcry_strerror'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x27e): In function `exsltCryptoGcryptRc4Decrypt':
: undefined reference to `gcry_cipher_ctl'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x28e): In function `exsltCryptoGcryptRc4Decrypt':
: undefined reference to `gcry_strerror'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x2c3): In function `exsltCryptoGcryptRc4Decrypt':
: undefined reference to `gcry_cipher_decrypt'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x2d3): In function `exsltCryptoGcryptRc4Decrypt':
: undefined reference to `gcry_strerror'
/usr/local/lib/libexslt.a(crypto.o)(.text+0x2fb): In function `exsltCryptoGcryptRc4Decrypt':
: undefined reference to `gcry_cipher_close'
*** Error code 1

Stop in /usr/ports/textproc/xmlstarlet/work/xmlstarlet-1.0.1/src.
*** Error code 1

Stop in /usr/ports/textproc/xmlstarlet/work/xmlstarlet-1.0.1.
*** Error code 1

Stop in /usr/ports/textproc/xmlstarlet/work/xmlstarlet-1.0.1.
*** Error code 1
How-To-Repeat: Update the ports tree from CVS and run 'make' on the port.
Comment 1 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-28 20:35:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mnag

I'll take it.
Comment 2 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-28 22:02:12 UTC
State Changed
From-To: open->closed

Fixed. Thanks.