[sane-devel] scanimage looks for the wrong libs

Antoine Jacoutot ajacoutot@lphp.org
Tue, 07 Jun 2005 09:21:39 +0200


Hi :)

I'm in the process of making a sane-backends port to OpenBSD.
So far, I encountered only one problem.
When starting scanimage with DEBUG, I can see that it is looking for 
*.so.1.15 libs (ie : libsane-epson.so.1.15). The thing is, this lib does 
not exist, but *.so.1 (ie : libsane-epson.so.1) exists. I can 
rename/symlink those libs so they end with 1 instead of 1.15 and it 
works, but it's not a great solution.
How can I either make scanimage look for the right libs or make libtool 
(or other) install the libs with the correct name ?

Thanks in advance.
Regards,

Antoine

ps :

exemple for the problem -->
$ SANE_DEBUG_DLL=5 scanimage -L
... bla bla...
[dll] load: searching backend `agfafocus' in `/usr/local/lib/sane'
[dll] load: trying to load `/usr/local/lib/sane/libsane-agfafocus.so.1'
[dll] load: couldn't open `/usr/local/lib/sane/libsane-agfafocus.so.1' 
(No such file or directory)
[dll] load: couldn't find backend `agfafocus' (No such file or directory)
...bla bla...
$ ls /usr/local/lib/sane/libsane-agfafocus.so*
/usr/local/lib/sane/libsane-agfafocus.so.1.15