libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

programs depending on staged libraries depending on staged libraries


From: Dennis van Dok
Subject: programs depending on staged libraries depending on staged libraries
Date: Fri, 13 Feb 2009 12:46:49 +0100
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

(No, the subject is not a typo.)

Hi,

I'm breaking my head over a problem that others must also have found,
chewed on and spit out. I found plenty of messages related to my
problem, such as the chroot discussion, but I just can't find the
definitive answer anywhere.

What I'm doing is building a collection of software, comprised of shared
libraries and programs, in a way that all of this can be packaged later
(as RPMs, or debs, or whatever). All of it is staged by using
DESTDIR=/someplace during 'make install'.

This is OK for a single library; it is even OK for a program using a
library; but I run into a wall when it involves a program using a
library that uses another library.

I've prepared a 'minimal' example set to demonstrate this if anybody is
interested. It has a liba, a libb that depends on liba, and a progc that
depends on libb. If liba and libb are configured and installed in the
stage area, linking progc fails.

The error message I get is:
$ make
source='c.c' object='c.o' libtool=no \
depfile='.deps/c.Po' tmpdepfile='.deps/c.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DPACKAGE_NAME=\"procg\" -DPACKAGE_TARNAME=\"procg\"
-DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"procg\ 0.0.1\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"procg\" -DVERSION=\"0.0.1\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\"  -I. -I.
-I/Users/dennis/src/ltdepdeplib/stage/usr/local/include   -g -O2 -c
`test -f 'c.c' || echo './'`c.c
/bin/sh ./libtool --mode=link gcc  -g -O2   -o progc
-L/Users/dennis/src/ltdepdeplib/stage/usr/local/lib c.o -lb
libtool: link: warning: library
`/Users/dennis/src/ltdepdeplib/stage/usr/local/lib/libb.la' was moved.
libtool: link: cannot find the library `/usr/local/lib/liba.la' or
unhandled argument `/usr/local/lib/liba.la'
make: *** [progc] Error 1


What should I do?

Regards,

Dennis van Dok
-- 
D.H. van Dok :: Software Engineer :: www.nikhef.nl :: www.vl-e.nl
Phone +31 20 592 50 12 :: http://www.nikhef.nl/~dennisvd/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]