Bug#270488: libkscan1: libtool fails to link libkscan due to incorrect path in libkscan.la
Package: libkscan1
Version: 4:3.3.0-1.1
Severity: normal
When trying to compile (and subsequently link) an application using
libkscan with libtool I receive the following error:
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -g3 -fno-inline -O0 -g3 -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o
skan -R /usr/lib -R /usr/share/qt3/lib -R /usr/X11R6/lib
-L/usr/X11R6/lib -L/usr/share/qt3/lib -L/usr/lib main.o skan.o
skanview.o pref.o skaniface_skel.o -lsane -lkscan -lkio -lkdeprint
libtool: link: warning: library `/usr/lib/libsane.la' was moved.
libtool: link: warning: library `/usr/lib/libsane.la' was moved.
libtool: link: cannot find the library `/usr/lib/sane/libsane.la'
make[2]: *** [skan] Fehler 1
The cause seems to be an erroneous entry in /usr/lib/libkscan.la, which
references /usr/lib/sane/libsane.la in the dependency_libs line, but the file
does not exist. The package libsane places the file libsane.la under
/usr/lib/libsane.la.
Changing the path in /usr/lib/libkscan.la from /usr/lib/sane/libsane.la
to /usr/lib/libsane.la enables me to compile and link the application
without problems, but the two warning messages from the libtool output
remain ("warning: library `/usr/lib/libsane.la' was moved.").
I have no idea, how the libkscan.la file comes into existence (is it
generated?), so I can't even guess, how this problem comes up in the
first place, so please reassign if this is the wrong package to report
this.
The application in question is a minimal KDE app framework generated by
kdevelop3 with an absolutely minimalistic libkscan integration (only
queries KScanDevice for available devices so far).
Patrick
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1
Locale: LANG=de_DE.UTF-8@euro, LC_CTYPE=de_DE.UTF-8@euro
Versions of packages libkscan1 depends on:
ii kdelibs4 4:3.3.0-1.1 KDE core libraries
ii libart-2.0-2 2.3.16-6 Library of functions for 2D graphi
ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an
ii libfam0c102 2.7.0-5 client library to control the FAM
ii libgcc1 1:3.4.1-7 GCC support library
ii libice6 4.3.0.dfsg.1-7 Inter-Client Exchange library
ii libidn11 0.5.2-3 GNU libidn library, implementation
ii libieee1284-3 0.2.8-2 Cross-platform library for paralle
ii libjpeg62 6b-9 The Independent JPEG Group's JPEG
ii libpng12-0 1.2.5.0-7 PNG library - runtime
ii libqt3c102-mt 3:3.3.3-4 Qt GUI Library (Threaded runtime v
ii libsane 1.0.14-7 API library for scanners
ii libsm6 4.3.0.dfsg.1-7 X Window System Session Management
ii libstdc++5 1:3.3.4-11 The GNU Standard C++ Library v3
ii libusb-0.1-4 1:0.1.8-16 Userspace USB programming library
ii libx11-6 4.3.0.dfsg.1-7 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-7 X Window System miscellaneous exte
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii xlibs 4.3.0.dfsg.1-7 X Window System client libraries m
ii zlib1g 1:1.2.1.1-7 compression library - runtime
-- no debconf information
Reply to: