Shared Library Problems? Oliver, William, and others reply

Jeff Evarts (jdeassoc@earthlink.net)
Thu, 18 Feb 1999 22:02:37 -0500

Hello everyone.

I've got a problem with my clients waking up and not
finding any available devices. (find-scanner returns
an empty list, scanimage --list-devices also finds none)

William: You quoted the part where I said "THIS IS NOT A SYMLINK",
and then suggested that I not use symbolic links. I'm not. I
swear. I wouldn't lie. :-)

Oliver: You said I had a very old version, and suggested that I
reinstall. I have version 1.0.0, which was recent a few weeks
ago. (This is Freshmeat's most recent version, and the version
available for download at ftp.mostang.com) Is there a newer one?

Two other people suggested it might be a permissions problem
on the scanner. How much more open than 666 can it be? Does
the scanner device use execute permission for something?

DON'T GET ME WRONG... I appreciate the input. I know we need to
eliminate the easy stuff before progressing, so *please* *help*,
I'd really like to get this working!

Here's a copy of the earlier query:

===

More data... when I build the system in the first place,
with no special arguments to ./configure

in /usr/local/lib, I have three libraries (symlinks)
libsane.a libsane.so libsane.so.1

in /usr/local/lib/sane, I have LOTS of libraries, including:
libsane-umax.a libsane-umax.la

Now when I run the client in the debugger, I get an error
message...

982 status=sane_get_devices(&device_list,SANE_FALSE);
(gdb)
[dll] loading backend umax
[dll] load: couldn't find /usr/local/lib/libsane-umax.so.1 (No such file
or directory)
[dll] loading backend net
[dll] load: couldn't find /usr/local/lib/libsane-net.so.1 (No such file
or directory)
983 if (status != SANE_STATUS_GOOD)

So, putting on my thinking cap, I decided I'd build a big
version to start with, and did a ./configure --disable-shared,
and did a "gmake clean all"

Now I get:

gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-I/usr/local/include -I/usr/X11R6/include -I/home/gtk/lib/glib/include
-I/home/gtk/include -D_GNU_SOURCE
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0
-g -O2 -Wall scanimage.c
gcc -o scanimage scanimage.o ../backend/.libs/libsane.a ../lib/liblib.a
-ldl -ljpeg -lm
abaton.c:573: Definition of symbol _mode_update (multiply defined)
apple.c:1137: Definition of symbol _mode_update (multiply defined)
dc210.c:1193: Undefined symbol _sanei_jpeg_jinit_write_ppm referenced
from text segment
gmake[1]: *** [scanimage] Error 1
gmake[1]: Leaving directory `/var/tmp/sane-1.00/frontend'
gmake: *** [all-recursive] Error 1

Any ideas on how to proceed at this point?

-- 
-Jeff Evarts
--jdeassoc@earthlink.net
---http://www.ecst.csuchico.edu/~amarth/

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