[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DESTDIR, relink dependent lib, RPM and AIX
From: |
Frank Fegert |
Subject: |
Re: DESTDIR, relink dependent lib, RPM and AIX |
Date: |
Sun, 20 Aug 2006 15:13:44 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20060724) |
Hi all,
was this a FAQ or a stupid question, or is there really *NO*
libtool wizard out there who can help me with this problem?
Thanks
Frank
Frank Fegert wrote:
> Hi all,
>
> i've got a hard time getting the above combination to work.
> According to the archives the issue of DESTDIR and relink
> seem to have come up quite often, but for extra fun i'm
> trying to do this with RPM and AIX.
>
> The details:
> - $ libtool --version
> ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
> - AIX 5.3 ML4
> - Target: gettext-0.14.5 (see config.log.gz attached)
> - *NO* previous version of gettext installed
>
> The gettext build bails out on install part of rpmbuild at:
> ...
> Making install in lib
> make[2]: Entering directory `/tmp/frank/gettext-0.14.5/gettext-tools/lib'
> make install-am
> make[3]: Entering directory `/tmp/frank/gettext-0.14.5/gettext-tools/lib'
> make[4]: Entering directory `/tmp/frank/gettext-0.14.5/gettext-tools/lib'
> test -z "/opt/afw/lib" || /opt/freeware/bin/bash
> ../../build-aux/mkinstalldirs "/tmp/frank/gettext-0.14.5-instroot/opt/afw/lib"
> /opt/freeware/bin/bash ../libtool --mode=install ../../build-aux/install-sh
> -c 'libgettextlib.la'
> '/tmp/frank/gettext-0.14.5-instroot/opt/afw/lib/libgettextlib.la'
> libtool: install: warning: relinking `libgettextlib.la'
> (cd /tmp/frank/gettext-0.14.5/gettext-tools/lib; /opt/freeware/bin/bash
> ../libtool --tag=CC --mode=relink gcc -O2 -g -fsigned-char -L/opt/afw/lib
> -Wl,-brtl -o libgettextlib.la -rpath /opt/afw/lib -release 0.14.5
> ../intl/libintl.la -liconv -liconv -lc -no-undefined allocsa.lo argmatch.lo
> backupfile.lo addext.lo basename.lo c-ctype.lo c-strcasecmp.lo
> c-strncasecmp.lo classpath.lo closeout.lo copy-file.lo csharpcomp.lo
> csharpexec.lo error-progname.lo execute.lo exitfail.lo fatal-signal.lo
> findprog.lo fstrcmp.lo full-write.lo fwriteerror.lo gcd.lo hash.lo
> javacomp.lo javaexec.lo linebreak.lo mbswidth.lo obstack.lo concatpath.lo
> pipe.lo progname.lo progreloc.lo quote.lo quotearg.lo safe-read.lo
> safe-write.lo sh-quote.lo tmpdir.lo wait-process.lo xmalloc.lo xstrdup.lo
> xallocsa.lo xerror.lo xreadlink.lo xsetenv.lo localcharset.lo vasprintf.lo
> getline.lo getndelim2.lo getopt.lo getopt1.lo stpncpy.lo mkdtemp.lo error.lo
> canonicalize.lo -inst-prefix-dir /tmp/frank/gettext-0.14.5-instroot)
> generating symbol list for `libgettextlib.la'
> /usr/bin/nm -B -BCpg .libs/allocsa.o .libs/argmatch.o .libs/backupfile.o
> .libs/addext.o .libs/basename.o .libs/c-ctype.o .libs/c-strcasecmp.o
> .libs/c-strncasecmp.o .libs/classpath.o .libs/closeout.o .libs/copy-file.o
> .libs/csharpcomp.o .libs/csharpexec.o .libs/error-progname.o .libs/execute.o
> .libs/exitfail.o .libs/fatal-signal.o .libs/findprog.o .libs/fstrcmp.o
> .libs/full-write.o .libs/fwriteerror.o .libs/gcd.o .libs/hash.o
> .libs/javacomp.o .libs/javaexec.o .libs/linebreak.o .libs/mbswidth.o
> .libs/obstack.o .libs/concatpath.o .libs/pipe.o .libs/progname.o
> .libs/progreloc.o .libs/quote.o .libs/quotearg.o .libs/safe-read.o
> .libs/safe-write.o .libs/sh-quote.o .libs/tmpdir.o .libs/wait-process.o
> .libs/xmalloc.o .libs/xstrdup.o .libs/xallocsa.o .libs/xerror.o
> .libs/xreadlink.o .libs/xsetenv.o .libs/localcharset.o .libs/vasprintf.o
> .libs/getline.o .libs/getndelim2.o .libs/getopt.o .libs/getopt1.o
> .libs/stpncpy.o .libs/mkdtemp.o .libs/error.o .libs/canonicalize.o | awk '{
> if ((($2 == "T")
> || ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' |
> sort -u > .libs/libgettextlib.exp
> gcc -o .libs/libgettextlib-0.14.5.so .libs/allocsa.o .libs/argmatch.o
> .libs/backupfile.o .libs/addext.o .libs/basename.o .libs/c-ctype.o
> .libs/c-strcasecmp.o .libs/c-strncasecmp.o .libs/classpath.o
> .libs/closeout.o.libs/copy-file.o .libs/csharpcomp.o .libs/csharpexec.o
> .libs/error-progname.o .libs/execute.o .libs/exitfail.o .libs/fatal-signal.o
> .libs/findprog.o .libs/fstrcmp.o .libs/full-write.o .libs/fwriteerror.o
> .libs/gcd.o .libs/hash.o .libs/javacomp.o .libs/javaexec.o .libs/linebreak.o
> .libs/mbswidth.o .libs/obstack.o .libs/concatpath.o .libs/pipe.o
> .libs/progname.o .libs/progreloc.o .libs/quote.o .libs/quotearg.o
> .libs/safe-read.o .libs/safe-write.o .libs/sh-quote.o .libs/tmpdir.o
> .libs/wait-process.o .libs/xmalloc.o .libs/xstrdup.o .libs/xallocsa.o
> .libs/xerror.o .libs/xreadlink.o .libs/xsetenv.o .libs/localcharset.o
> .libs/vasprintf.o .libs/getline.o .libs/getndelim2.o .libs/getopt.o
> .libs/getopt1.o .libs/stpncpy.o .libs/mkdtemp.o .libs/error.o
> .libs/canonicalize.o
> -Wl,-blibpath:/opt/afw/lib:/opt/afw/lib:/opt/afw/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1:/opt/afw/lib/gcc/powerpc-ibm-aix5.3.0.0/4.1.1/../../..:/usr/lib:/lib
> -L/opt/afw/lib /opt/afw/lib/libintl.so -liconv -lc -lc -Wl,-brtl `if test
> "x" != "x"; then echo "-Wl,"; else :; fi` -Wl,-bnoentry
> -Wl,-bexport:.libs/libgettextlib.exp -shared -Wl,-G
> gcc: /opt/afw/lib/libintl.so: No such file or directory
> libtool: install: error: relink `libgettextlib.la' with the above command
> before installing it
> make[4]: *** [install-libLTLIBRARIES] Error 1
> ...
>
> The culprit (libintl.so) - which comes with gettext - is
> installed one step before libgettextlib.la in the DESTDIR
> (/tmp/frank/gettext-0.14.5-instroot) which is passed to
> 'make install'. The '-inst-prefix-dir /tmp/frank/gettext-0.14.5-instroot'
> should have covered this, but it seems that this piece of
> information gets lost along the way :-(
> I did a libtool run with --debug in the libgettextlib.la
> (see file attached), but i'm not too familiar with libtool
> to spot where things go wrong. Can anyone help me with this
> one?
>
> Thanks,
>
> Frank
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.gnu.org/mailman/listinfo/libtool