Build log, this may help ;). I note that libtool complains, and say "warning: remember to run `libtool --finish /usr/lib'". I note that I never hear about this step ;).
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. Any clue ? Cheers, Michel 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 make[2]: Entering directory `/tmp/buildd/freewrl-1.22.0/src' Making install in lib make[3]: Entering directory `/tmp/buildd/freewrl-1.22.0/src/lib' make[4]: Entering directory `/tmp/buildd/freewrl-1.22.0/src/lib' test -z "/usr/lib" || /bin/mkdir -p "/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib" /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' test -z "/usr/include" || /bin/mkdir -p "/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/include" /usr/bin/install -c -m 644 'libFreeWRL.h' '/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/include/libFreeWRL.h' test -z "/usr/lib/pkgconfig" || /bin/mkdir -p "/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/pkgconfig" /usr/bin/install -c -m 644 'libFreeWRL.pc' '/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/pkgconfig/libFreeWRL.pc' make[4]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src/lib' make[3]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src/lib' Making install in bin make[3]: Entering directory `/tmp/buildd/freewrl-1.22.0/src/bin' 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 make[4]: Nothing to be done for `install-data-am'. make[4]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src/bin' make[3]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src/bin' Making install in plugin make[3]: Entering directory `/tmp/buildd/freewrl-1.22.0/src/plugin' make[4]: Entering directory `/tmp/buildd/freewrl-1.22.0/src/plugin' make[4]: Nothing to be done for `install-exec-am'. test -z "/usr/lib/mozilla/plugins" || /bin/mkdir -p "/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/mozilla/plugins" /bin/sh ../../libtool --mode=install /usr/bin/install -c 'libFreeWRLplugin.la' '/tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/mozilla/plugins/libFreeWRLplugin.la' libtool: install: /usr/bin/install -c .libs/libFreeWRLplugin.so /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/mozilla/plugins/libFreeWRLplugin.so libtool: install: /usr/bin/install -c .libs/libFreeWRLplugin.lai /tmp/buildd/freewrl-1.22.0/debian/freewrl/usr/lib/mozilla/plugins/libFreeWRLplugin.la libtool: install: warning: remember to run `libtool --finish /usr/lib/mozilla/plugins' make[4]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src/plugin' make[3]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src/plugin' make[3]: Entering directory `/tmp/buildd/freewrl-1.22.0/src' make[4]: Entering directory `/tmp/buildd/freewrl-1.22.0/src' make[4]: Nothing to be done for `install-exec-am'. make[4]: Nothing to be done for `install-data-am'. make[4]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src' make[3]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src' make[2]: Leaving directory `/tmp/buildd/freewrl-1.22.0/src' make[2]: Entering directory `/tmp/buildd/freewrl-1.22.0' make[3]: Entering directory `/tmp/buildd/freewrl-1.22.0' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/tmp/buildd/freewrl-1.22.0' make[2]: Leaving directory `/tmp/buildd/freewrl-1.22.0' make[1]: Leaving directory `/tmp/buildd/freewrl-1.22.0' Michel Briand <michelbri...@free.fr> - Fri, 13 Feb 2009 12:16:41 +0100 >Hi all, > >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. > >Any idea ? > >Michel > > >Ralf Wildenhues <ralf.wildenh...@gmx.de> - Thu, 12 Feb 2009 19:28:17 >+0100 > >>Hello Michel, >> >>* Michel Briand wrote on Thu, Feb 12, 2009 at 03:41:42PM CET: >>> plugin_LTLIBRARIES = libFreeWRLplugin.la >>> plugindir=$(PLUGIN_DIR) # configure puts in it /usr/lib/mozilla/plugins >>> libFreeWRLplugin_la_LDFLAGS = -avoid-version $(AM_LDFLAGS) >> >>> This produces the following command line: >>> >>> /bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -avoid-version >>> -o libFreeWRLplugin.la -rpath /usr/lib/mozilla/plugins plugin_main.lo >>> npunix.lo internal_version.lo >>> libtool: link: gcc -shared .libs/plugin_main.o .libs/npunix.o >>> .libs/internal_version.o -Wl,-soname -Wl,libFreeWRLplugin.so -o >>> .libs/libFreeWRLplugin.so >>> >>> Why -rpath /usr/lib/mozilla/plugins ??? >> >>Quoting '(libtool.info.gz)Link mode': >> >>| `-rpath LIBDIR' >>| If OUTPUT-FILE is a library, it will eventually be installed in >>| LIBDIR. If OUTPUT-FILE is a program, add LIBDIR to the run-time >>| path of the program. >> >>It seems weird, and it is, but somebody chose '-rpath' to have this >>rather unusual meaning for libtool. >> >>> The rpath troubles me. I think that rpath would be use to specify >>> library path needed by the shared object. Not the path where it is >>> supposed to be installed. Am I right ? >> >>Not in this case; you are thinking about the ld option -rpath, typically >>passed to compilers as -Wl,-rpath,... But that's not what the above >>means to libtool, at least not in the case of creating a library. It >>does not cause /usr/lib/mozilla/plugins to be added to the run path of >>the library. >> >>Hope that helps. I haven't read the rest, so if there were more >>questions hidden there, please ping. >> >>Cheers, >>Ralf > > > -- .''`. : :' : We are debian.org. Lower your prices, surrender your code. `. `' We will add your hardware and software distinctiveness to `- our own. Resistance is futile. _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool