linking problem - can't find sane

Andriy Palamarchuk apa3a at
Wed Mar 27 08:55:45 CST 2002

Today I refreshed wine from CVS. The previous version
was from the last week CVS. I tried to build and got a
 linking problem:

gcc -shared  -Wl,-Bsymbolic twain_32.spec.o 
capability.o ds_audio.o ds_ctrl.o ds_image.o
dsm_ctrl.o twain32_main.o      -o
-L../../dlls  -L../../library -lwine -lsane -ldl -lnsl
-ljpeg -lm  -lm 
/usr/bin/ld: cannot find -lsane
collect2: ld returned 1 exit status
make[2]: *** [] Error 1
make[2]: Leaving directory
make[1]: *** [twain/] Error 2
make[1]: Leaving directory `/mnt/buf/prj/wine/dlls'
make: *** [dlls] Error 2

I actually have the library installed:
$ locate

My environment - RedHat 7.1 with applied bugfixes and

Installed sane packages:
$ rpm -q -a | grep sane

Note, config can't find sane.h. It does not exist on
my system.
Relevant except from config.log:

configure:6535: checking for sane-config
configure:6550: found /usr/bin/sane-config
configure:6559: result: sane-config
configure:6577: checking for sane/sane.h
configure:6587: gcc -E  -I/usr/include conftest.c
configure:6584:23: sane/sane.h: No such file or
configure:6593: $? = 1
configure: failed program was:
#line 6583 "configure"
#include "confdefs.h"
#include <sane/sane.h>
configure:6612: result: no

Andriy Palamarchuk

Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®

More information about the wine-devel mailing list