[Top][All Lists]

[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 (Macintosh/20081209)

(No, the subject is not a typo.)


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\"
-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/' was moved.
libtool: link: cannot find the library `/usr/local/lib/' or
unhandled argument `/usr/local/lib/'
make: *** [progc] Error 1

What should I do?


Dennis van Dok
D.H. van Dok :: Software Engineer :: ::
Phone +31 20 592 50 12 ::

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

reply via email to

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