[sane-devel] Can't build SANE on Ubuntu Feisty 7.04

Simon Glass sglass at bluewatersys.com
Mon Jun 25 11:20:46 UTC 2007


Hi,

I am keen to test out my new Fujitsu FI-5750C but it doesn't seem to
work out of the box. While trying to build SANE from CVS I initially got
an error about md5 which I got around by adding a library explicitly to
the Makefile.

making all in frontend
make[1]: Entering directory
`/pub/software/drivers/sane/sane-backends/frontend'
make[1]: Warning: File `Makefile' has modification time 0.83 s in the future
gcc -o .libs/scanimage scanimage.o stiff.o  ../lib/liblib.a
../backend/.libs/libsane.so -ldl /usr/lib/libusb.so -lpthread
/usr/lib/libtiff.so /usr/lib/libjpeg.so -lz -lm -lc
/usr/lib/libieee1284.so -Wl,--rpath -Wl,/usr/local/lib
scanimage.o: In function `auth_callback':
/pub/software/drivers/sane/sane-backends/frontend/scanimage.c:291:
undefined reference to `md5_buffer'
collect2: ld returned 1 exit status
make[1]: *** [scanimage] Error 1
make[1]: Leaving directory
`/pub/software/drivers/sane/sane-backends/frontend'


But now I get:

...
making all in frontend
make[1]: Entering directory
`/pub/software/drivers/sane/sane-backends/frontend'
make[1]: Warning: File `Makefile' has modification time 0.4 s in the future
gcc-4.0 -o .libs/saned saned.o  ../sanei/libsanei.a ../lib/liblib.a
../backend/.libs/libsane.so -ldl /usr/lib/libusb.so -lpthread
/usr/lib/libtiff.so /usr/lib/libjpeg.so -lz -lm -lc
/usr/lib/libieee1284.so -Wl,--rpath -Wl,/usr/local/lib
saned.o: In function `decode_handle':
/pub/software/drivers/sane/sane-backends/frontend/saned.c:461: undefined
reference to `sanei_w_word'
saned.o: In function `init':
/pub/software/drivers/sane/sane-backends/frontend/saned.c:1254:
undefined reference to `sanei_w_set_dir'
/pub/software/drivers/sane/sane-backends/frontend/saned.c:1261:
undefined reference to `sanei_w_word'
...

It seems that the tools are not producing object files properly or
something. Before I dive into something I don't understand does anyone
have a simple solution?

I did see this from ./configure

checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... cat:
/etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so

Regards,
Simon





More information about the sane-devel mailing list