libtool
[Top][All Lists]
Advanced

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

dlopen, DESTDIR, library dependencies and "cannot install" error


From: Diab Jerius
Subject: dlopen, DESTDIR, library dependencies and "cannot install" error
Date: Fri, 06 Jan 2012 15:40:38 -0500

Hi,

I'm using libtool-2.4.2.

My package includes a dlopen'able module and a shareable library against
which it links.  Here's the gist of the automake recipe:

        #-------------------
        # exported support routines
        lib_LTLIBRARIES           = liblua_udunits2.la
        
        #-------------------
        # dlopen'able module
        
        luaclib_LTLIBRARIES     = udunits2.la
        udunits2_la_LIBADD      = $(UDUNITS2_LIBS) liblua_udunits2.la
        udunits2_la_LDFLAGS     = -module

On my system I install into a staging area (/proj/axaf/simul/pkgs) and
then use graft (similar to GNU stow) to perform the final installation
(to /proj/axaf/simul).  The configure command looks like:

./configure --srcdir=/data/pelf1/dj/hd0/axaf/src/lua_udunits2 
--prefix=/proj/axaf/simul --exec-prefix=/proj/axaf/simul/x86_64-linux_debian-5.0

and the installation is performed via

make AM_MAKEFLAGS="DESTDIR=/proj/axaf/simul/pkgs prefix=/lua_udunits2-0.1.2_01 
exec_prefix=/lua_udunits2-0.1.2_01/x86_64-linux_debian-5.0" install

This results in a libtool invocation of

 /bin/sh ../libtool   --mode=install /usr/bin/install -c   udunits2.la 
'/proj/axaf/simul/pkgs/lua_udunits2-0.1.2_01/x86_64-linux_debian-5.0/lib/lua/5.1'

which fails with:

libtool: install: error: cannot install `udunits2.la' to a directory not ending 
in /proj/axaf/simul/x86_64-linux_debian-5.0/lib/lua/5.1

I believe the problem is that I'm linking the dlopen'able module against
a library which hasn't yet been installed (as it is part of the
distribution).  I haven't been able to distill anything from the libtool
documentation which would touches upon this issue.

Is this the correct diagnosis and is there a fix?

Thanks!
Diab





reply via email to

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