Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267503 - dev-libs/libxslt-1.1.24-r1 tries to link against native libgcrypt when crosscompiling
Summary: dev-libs/libxslt-1.1.24-r1 tries to link against native libgcrypt when crossc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on: 267479
Blocks:
  Show dependency tree
 
Reported: 2009-04-26 07:50 UTC by Andrei Slavoiu
Modified: 2009-10-08 11:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Tell configure to use the right libgcrypt-config script (libxslt-1.1.24-r1.ebuild.patch,421 bytes, patch)
2009-04-26 07:51 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2009-04-26 07:50:23 UTC
/bin/sh ../libtool --tag=CC   --mode=link armv4tl-softfloat-linux-gnueabi-gcc  -march=armv4t -mtune=arm920t -Os -pipe -Wall -version-info 8:13:8 -L/usr/lib64 -lgcrypt -lgpg-error -Wl,-O1 -o libexslt.la -rpath /usr/lib exslt.lo common.lo crypto.lo math.lo sets.lo functions.lo strings.lo date.lo saxon.lo dynamic.lo ../libxslt/libxslt.la -lxml2 -lz -lm -lm     
libtool: link: armv4tl-softfloat-linux-gnueabi-gcc -shared  .libs/exslt.o .libs/common.o .libs/crypto.o .libs/math.o .libs/sets.o .libs/functions.o .libs/strings.o .libs/date.o .libs/saxon.o .libs/dynamic.o   -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libxslt/.libs -Wl,-rpath -Wl,/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -Wl,-rpath -Wl,/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -L/usr/lib64 /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so ../libxslt/.libs/libxslt.so -L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libxml2.so /usr/lib64/libxml2.so -ldl -lz -lm  -march=armv4t -mtune=arm920t -Wl,-O1   -Wl,-soname -Wl,libexslt.so.0 -o .libs/libexslt.so.0.8.13                                                                                                                                                       
/usr/lib64/libgcrypt.so: file not recognized: File format not recognized                                                                                                            
collect2: ld returned 1 exit status                                                                                                                                                 
make[2]: *** [libexslt.la] Error 1                                                                                                                                                  
make[2]: Leaving directory `/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libexslt'                                                                               
make[1]: *** [all-recursive] Error 1                                                                                                                                                
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24'                                                                                        
make: *** [all] Error 2                                                                                                                                                             
 *                                                                                                                                                                                  
 * ERROR: dev-libs/libxslt-1.1.24-r1 failed.                                                                                                                                        

Reproducible: Always

Steps to Reproduce:
Comment 1 Andrei Slavoiu 2009-04-26 07:51:34 UTC
Created attachment 189467 [details, diff]
Tell configure to use the right libgcrypt-config script
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-26 13:52:18 UTC
It would be simpler if libgcrypt provided a pkgconfig files.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-31 18:38:34 UTC
SYSROOT seems to be specific to cross-compile environment, it'd be nicer to use something that makes sense even in non-cross-compile env.
Comment 4 Andrei Slavoiu 2009-06-01 08:07:07 UTC
In non-cross-compile environments ${SYSROOT} will be replaced by empty-string so the path resulting will be "/usr/bin/libgcrypt-config" which makes sense for native builds.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-10-07 14:50:13 UTC
since I don't have this test environment, you should retry with 1.1.26 and report back if this 'hack' is still required.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-10-07 15:53:44 UTC
if it is, please make it a patch that can be applied upstream.
Comment 7 Andrei Slavoiu 2009-10-07 22:35:08 UTC
It's still reproducible with libxslt-1.1.26. And I don't see what upstream could do about this unless libgcrypt switches to using pkgconfig like Gilles Dartiguelongue suggested in comment #2.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-10-08 11:44:19 UTC
+  08 Oct 2009; Samuli Suominen <ssuominen@gentoo.org> libxslt-1.1.26.ebuild:
+  Because libgcrypt is missing pkg-config file, fixing cross-compile here
+  wrt #267503, thanks to Andrei Slavoiu.

+	# libgcrypt is missing pkg-config file, so fixing cross-compile
+	# here. see bug 267503.
+	if tc-is-cross-compiler; then
+		export LIBGCRYPT_CONFIG="${SYSROOT}/usr/bin/libgcrypt-config"
+	fi