Re: programs look for libsane-dll.so.1

Oliver Rauch (oliver.rauch@Wolfsburg.DE)
Sat, 11 Sep 1999 02:39:09 +0200

Bert Hobbs wrote:

> When I build an executable with '-lsane' the resulting program looks for
> 'libsane-dll.so.1' instead
> of 'libsane.so.1' as I would expect. Can someone explain or point me
> towards an explanation.
> As I understand it 'libsane.so.1' could be symbolically linked to any of
> the backends, but it seems
> the backend is being selected when the program is built not when it is
> executed.

Hi Bert,
this is an error of all sane versions.

The sane libs have to be compiled/linked with the library name "libsane.so"
but the libtool sets the library name to the backend name "libsane-xyz.so"
The linker needs the option "-soname libsane.so" when compiling sane.

Bye
Oliver

--
EMAIL: Oliver.Rauch@Wolfsburg.DE
WWW: http://www.wolfsburg.de/~rauch

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com