[Top][All Lists]

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

Re: FreeWRL plugin, libtool problem

From: Michel Briand
Subject: Re: FreeWRL plugin, libtool problem
Date: Thu, 19 Feb 2009 12:12:39 +0100

Ralf Wildenhues <address@hidden> - Mon, 16 Feb 2009 19:39:16

>Hello Michel,
>* Michel Briand wrote on Fri, Feb 13, 2009 at 12:34:41PM CET:
>> >
>> >I've a grave problem : when I build my Debian package the libtool
>> >install mode was not called. In the resulting package
>> >the /usr/bin/freewrl is not the real binary :
>> >
>> >/usr/bin/freewrl: error: `/usr/bin/.libs/freewrl' does not exist
>> >This script is just a wrapper for freewrl.
>> >See the libtool documentation for more information.
>> I note that libtool complains, and say "warning: remember to run
>> `libtool --finish /usr/lib'". I note that I never hear about this step ;).
>It is needed only when using DESTDIR installs.  And if omitted, on most
>systems there is not a grave problem. For example, Debian typically
>takes care to run ldconfig each time it is booted, so that it will then
>fix things if you've forgotten about them.
>But in general, yes, you need to use finish mode once things have moved
>to their final destination.
>> When I build the .deb in my dev directory (as normal user), all is fine
>> (libtool install mode is called).
>> But when I build the .deb with pbuilder (as Debian policy recommends
>> it), it's not the case.
>> dh_installdirs
>> # Install through Make target
>> /usr/bin/make install DESTDIR=/tmp/buildd/freewrl-1.22.0/debian/freewrl
>> make[1]: Entering directory `/tmp/buildd/freewrl-1.22.0'
>> Making install in src
>>  /bin/sh ../../libtool   --mode=install /usr/bin/install -c  '' 
>> '/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/'
>> libtool: install: /usr/bin/install -c .libs/ 
>> /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/
>> libtool: install: (cd /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib && { 
>> ln -s -f || { rm -f && 
>> ln -s; }; })
>> libtool: install: (cd /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib && { 
>> ln -s -f || { rm -f && ln 
>> -s; }; })
>> libtool: install: /usr/bin/install -c .libs/libFreeWRL.lai 
>> /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/
>> libtool: install: warning: remember to run `libtool --finish /usr/lib'
>> make[4]: Entering directory `/tmp/buildd/freewrl-1.22.0/src/bin'
>> test -z "/usr/bin" || /bin/mkdir -p 
>> "/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/bin"
>>   /bin/sh ../../libtool   --mode=install /usr/bin/install -c 'freewrl' 
>> '/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/bin/freewrl'
>> libtool: install: warning: `../../src/lib/' has not been 
>> installed in `/usr/lib'
>> libtool: install: warning: cannot relink `freewrl'
>> libtool: install: /usr/bin/install -c freewrl 
>> /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/bin/freewrl
>Ah, this is a problem.  Can you try configuring with
>--enable-fast-install?  Also, can you post the output of
>  /bin/sh ../../libtool --config
>so we can see what hardcoding properties your system has?
>Also I assume that src/bin/freewrl is a shell script?  If so, then that
>looks like a bug.


I identified the problem. Or I think I've do ;).

If I remove "--disable-fast-install" from default configure options
then the DESTDIR will be correctly supported by libtool and the final
binary will be "finished" in my chrooted environment (pbuilder).

There is still a problem with "make distcheck" but I'll post about this


reply via email to

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