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

Shared library defines a RPATH

I'm trying to build my first package that includes shared libraries
and lintian complains about this:

[eric@femto:~/debian]$ lintian -i iiwusynth_0.0.3-8_i386.changes
W: iiwusynth: binary-or-shlib-defines-rpath ./usr/bin/iiwuplay /usr/usr/lib
N:   The binary or shared library defines the `RPATH'. Usually this is a
N:   bad thing. Most likely you will find a Makefile with a line like:
N:       gcc test.o -o test -Wl,--rpath
N:   or
N:       gcc test.o -o test -R/usr/local/lib
N:   Please contact debian-devel@lists.debian.org if you have questions
N:   about this.
W: iiwusynth: binary-or-shlib-defines-rpath ./usr/bin/iiwusynth /usr/usr/lib
[eric@femto:~/debian]$ cd -

And indeed,

[eric@femto:~/debian/iiwusynth-0.0.3]$ grep -B1 rpath src/Makefile.in
libiiwusynth.la: $(libiiwusynth_la_OBJECTS) $(libiiwusynth_la_DEPENDENCIES)
        $(LINK) -rpath $(libdir) $(libiiwusynth_la_LDFLAGS) $(libiiwusynth_la_OBJECTS) $(libiiwusynth_la_LIBADD) $(LIBS)

The problem is, if I suppress '-rpath $(libdir)'

# Add here commands to install the package into debian/iiwusynth.
/usr/bin/make install prefix=/home/eric/debian/iiwusynth-0.0.3/debian/tmp
make[1]: Entering directory `/home/eric/debian/iiwusynth-0.0.3'
Making install in src
make[2]: Entering directory `/home/eric/debian/iiwusynth-0.0.3/src'
make[3]: Entering directory `/home/eric/debian/iiwusynth-0.0.3/src'
/bin/sh ../mkinstalldirs /home/eric/debian/iiwusynth-0.0.3/debian/tmp/usr/lib
mkdir /home/eric/debian/iiwusynth-0.0.3/debian/tmp
mkdir /home/eric/debian/iiwusynth-0.0.3/debian/tmp/usr
mkdir /home/eric/debian/iiwusynth-0.0.3/debian/tmp/usr/lib
 /bin/sh ../libtool --mode=install /usr/bin/install -c  libiiwusynth.la /home/eric/debian/iiwusynth-0.0.3/debian/tmp/usr/lib/libiiwusynth.la
/usr/bin/install -c .libs/libiiwusynth.lai /home/eric/debian/iiwusynth-0.0.3/debian/tmp/usr/lib/libiiwusynth.la
/usr/bin/install: cannot stat `.libs/libiiwusynth.lai': No such file or directory
make[3]: *** [install-libLTLIBRARIES] Erreur 1
make[3]: Leaving directory `/home/eric/debian/iiwusynth-0.0.3/src'
make[2]: *** [install-am] Erreur 2
make[2]: Leaving directory `/home/eric/debian/iiwusynth-0.0.3/src'
make[1]: *** [install-recursive] Erreur 1
make[1]: Leaving directory `/home/eric/debian/iiwusynth-0.0.3'
make: *** [install] Erreur 2

How can I solve this problem ?


To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: