Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264250 - dev-libs/apr-1.3.3 fails to cross-compile because it forces usage of system libtool
Summary: dev-libs/apr-1.3.3 fails to cross-compile because it forces usage of system l...
Status: RESOLVED DUPLICATE of bug 204485
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-30 07:15 UTC by Daniel Stonier
Modified: 2009-03-31 15:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Stonier 2009-03-30 07:15:29 UTC
What: Using crossdev, crossdev-wrappers to try and cross-emerge dev-libs/apr-1.3.3.

Apr is trying to use the system's libtool but fails. 

libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'

I read on another bug report somewhere that if you edit the ebuild:

# Make sure we use the system libtool
sed -i 's,$(apr_builddir)/libtool,/usr/bin/libtool,' "${S}"/build/apr_rules.mk
sed -i 's,${installbuilddir}/libtool,/usr/bin/libtool,' "${S}"/apr-1-config
rm -f "${S}"/libtool
sed -i 's,--silent,--silent --tag=CXX,' "${S}"/build/apr_rules.mk

(first three four lines are unchanged, last sed line is added), then it might work, however it now fails when trying to link the library with:

/bin/sh /usr/bin/libtool --silent --tag=CXX --mode=link  i686-pc-linux-gnu-gcc -pthread  -Os -pipe -march=i686 -fomit-frame-pointer -I/usr/i686-pc-linux-gnu/usr/include/ -I/usr/i686-pc-linux-gnu/include/ -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -I./include -I/usr/i686-pc-linux-gnu/var/tmp/portage/dev-libs/apr-1.3.3/work/apr-1.3.3/include/arch/unix -I./include/arch/unix -I/usr/i686-pc-linux-gnu/var/tmp/portage/dev-libs/apr-1.3.3/work/apr-1.3.3/include/arch/unix -I/usr/i686-pc-linux-gnu/var/tmp/portage/dev-libs/apr-1.3.3/work/apr-1.3.3/include  -version-info 3:3:3   -L/usr/i686-pc-linux-gnu/usr/lib -L/usr/i686-pc-linux-gnu/lib -o libapr-1.la -rpath /usr/lib passwd/apr_getpass.lo strings/apr_cpystrn.lo strings/apr_strnatcmp.lo strings/apr_strings.lo strings/apr_strtok.lo strings/apr_fnmatch.lo strings/apr_snprintf.lo tables/apr_tables.lo tables/apr_hash.lo dso/unix/dso.lo file_io/unix/buffer.lo file_io/unix/flock.lo file_io/unix/readwrite.lo file_io/unix/filepath_util.lo file_io/unix/seek.lo file_io/unix/dir.lo file_io/unix/mktemp.lo file_io/unix/filedup.lo file_io/unix/tempdir.lo file_io/unix/filepath.lo file_io/unix/pipe.lo file_io/unix/open.lo file_io/unix/filestat.lo file_io/unix/copy.lo file_io/unix/fileacc.lo file_io/unix/fullrw.lo locks/unix/thread_rwlock.lo locks/unix/thread_mutex.lo locks/unix/thread_cond.lo locks/unix/proc_mutex.lo locks/unix/global_mutex.lo memory/unix/apr_pools.lo misc/unix/charset.lo misc/unix/env.lo misc/unix/version.lo misc/unix/rand.lo misc/unix/start.lo misc/unix/errorcodes.lo misc/unix/getopt.lo misc/unix/otherchild.lo mmap/unix/mmap.lo mmap/unix/common.lo network_io/unix/sockaddr.lo network_io/unix/sockopt.lo network_io/unix/sendrecv.lo network_io/unix/multicast.lo network_io/unix/sockets.lo network_io/unix/inet_ntop.lo network_io/unix/inet_pton.lo poll/unix/epoll.lo poll/unix/select.lo poll/unix/poll.lo poll/unix/port.lo poll/unix/kqueue.lo random/unix/sha2.lo random/unix/apr_random.lo random/unix/sha2_glue.lo shmem/unix/shm.lo support/unix/waitio.lo threadproc/unix/procsup.lo threadproc/unix/thread.lo threadproc/unix/signals.lo threadproc/unix/proc.lo threadproc/unix/threadpriv.lo time/unix/time.lo time/unix/timestr.lo user/unix/userinfo.lo user/unix/groupinfo.lo atomic/unix/ppc.lo atomic/unix/builtins.lo atomic/unix/s390.lo atomic/unix/ia32.lo atomic/unix/mutex.lo atomic/unix/solaris.lo   -lrt -lcrypt  -lpthread -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/i686-pc-linux-gnu/usr/lib/librt.so when searching for -lrt
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/i686-pc-linux-gnu/usr/lib/librt.a when searching for -lrt
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/i686-pc-linux-gnu/usr/lib/libcrypt.so when searching for -lcrypt
...

As a comparision - if I delete the lines in the ebuild telling it to use the system's libtool, apr will happily build its own libtool and use that. The cross-emerge works without any hassles. So, something's going wrong somewhere, just can't hit the nail on the head.
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2009-03-31 15:30:43 UTC

*** This bug has been marked as a duplicate of bug 204485 ***