Ralf Wildenhues <ralf.wildenh...@gmx.de> - Mon, 16 Feb 2009 19:39:16 +0100
>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 'libFreeWRL.la' >> '/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/libFreeWRL.la' >> libtool: install: /usr/bin/install -c .libs/libFreeWRL.so.1.22.0 >> /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/libFreeWRL.so.1.22.0 >> libtool: install: (cd /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib && { >> ln -s -f libFreeWRL.so.1.22.0 libFreeWRL.so.1 || { rm -f libFreeWRL.so.1 && >> ln -s libFreeWRL.so.1.22.0 libFreeWRL.so.1; }; }) >> libtool: install: (cd /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib && { >> ln -s -f libFreeWRL.so.1.22.0 libFreeWRL.so || { rm -f libFreeWRL.so && ln >> -s libFreeWRL.so.1.22.0 libFreeWRL.so; }; }) >> libtool: install: /usr/bin/install -c .libs/libFreeWRL.lai >> /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/libFreeWRL.la >> 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/libFreeWRL.la' 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. > >Thanks, >Ralf Hello, 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 later. Regards, Michel _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool