[sane-devel] Compiling sane-backends on FC8 64bit

Chris chris at cenolan.com
Wed Jan 16 10:41:49 UTC 2008

Mattias Ellert wrote:
> ons 2008-01-16 klockan 09:22 +0000 skrev Chris:
>> Thank you Mattias - we're getting somewhere now. Still got problems 
>> though:
>> I installed libieee1284-devel x86_64 and then noticed that config.log 
>> was showing it couldn't find "libusb.so" so I have symlinked 
>> /usr/lib64/libusb.so -> /usr/lib64/libusb-0.1.so.4.4.4 and that error 
>> is now gone. I trust this was the correct thing to do?
> That link should be there if you have libusb-devel x86_64 installed. It
> is normally not a good idea to add symlinks by hand in the system
> directories - installing the right RPM is a better idea.
You are quite right, that link should be there. I didn't have 
libusb-devel x86_64 installed, and trying to install it causes a 
conflict with the installed libusb-devel i386. This conflict is only 
resolved by "yum remove libusb-devel"  and then "yum install 
libusb-devel". (For information, the same thing happens when trying to 
install libieee1284-devel x86_64 when libieee1284-devel i386 is already 
installed, and the solution is the same: remove then reinstall.)

>> It now fails later on:
>> /usr/lib/libieee1284.so: could not read symbols: File in wrong format
>> collect2: ld returned 1 exit status
>> make[1]: *** [libsane-hp3900.la] Error 1
>> make[1]: Leaving directory 
>> `/home/cnolan/Download/sane-backends-1.0.18/backend'
>> make: *** [all-recursive] Error 1
>> I've seen an error like this before, and I am *guessing* that it is 
>> now looking in /usr/lib/ when it should be using files from 
>> /usr/lib64/ - does this sound correct?
> Please include the full command that failed and not only the error
> message. If there is a -L/usr/lib somewhere, then it shouldn't be there.
> What is your LD_LIBRARY_PATH?
Sorry, the full command was as follows:

gcc -shared  .libs/hp3900.o .libs/hp3900-s.o .libs/sane_strstatus.o 
../sanei/.libs/sanei_init_debug.o ../sanei/.libs/sanei_config.o 
../sanei/.libs/sanei_usb.o  -lpthread -lm -ljpeg -ltiff 
/usr/lib/libieee1284.so -ldl  -Wl,-soname -Wl,libsane.so.1 -o 

As you can see, it is picking up /usr/lib/libieee1284.so instead of 

echo $LD_LIBRARY_PATH returns blank (?)

I am going to retry the compile process now that I have the correct 
libusb-devel installed and see how we go.

(Mattias, my apologies for the resend, my original reply should have 
gone to the list and not just you)


More information about the sane-devel mailing list