[sane-devel] backends 1.0.12 compile-error

Gerfried Maier moali@sbox.tugraz.at
Tue, 03 Jun 2003 09:42:19 +0200


Hello sane-devel!

Unfortunately my attempts to compile sane-backends 1.0.12 fail on my 
machine (1.0.11 worked without any problem). Configure mentions no error.

Kernel 2.4.17

If you need any further information, please mail me.

Regards,
Maier Gerfried

[...]
hp5400_internal.c:411: warning: unused parameter `iHandle'
hp5400_internal.c: In function `hp5400_test_scan_response':
hp5400_internal.c:660: warning: unused parameter `req'
hp5400_internal.c: In function `DoScan':
hp5400_internal.c:729: warning: unused parameter `code'
hp5400_internal.c: In function `hp5400_scan':
hp5400_internal.c:909: warning: unused parameter `pHWParams'
hp5400_internal.c: In function `InitScan2':
hp5400_internal.c:1187: warning: comparison between signed and unsigned
hp5400_internal.c:1223: warning: comparison between signed and unsigned
hp5400.c: In function `attach_one_device':
hp5400.c:432: warning: passing arg 1 of `HP5400Detect' discards 
qualifiers from pointer target type
hp5400.c: At top level:
hp5400_sanei.c:253: warning: `hp5400_bulk_read' defined but not used
hp5400_sanei.c:361: warning: `hp5400_isOn' defined but not used
hp5400_internal.c:605: warning: `DecodeImage' defined but not used
hp5400_internal.c:661: warning: `hp5400_test_scan_response' defined but 
not used
hp5400_internal.c:975: warning: `PreviewScan' defined but not used
hp5400_internal.c:1013: warning: `InitScanner' defined but not used
rm -f hp5400-s.c
ln -s ./stubs.c hp5400-s.c
 gcc -c -g -O2 -W -Wall -DHAVE_CONFIG_H -I. -I. -I../include 
-I../include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d 
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DSTUBS 
-DBACKEND_NAME=hp5400 hp5400-s.c  -fPIC -DPIC -o .libs/hp5400-s.o
gcc -shared  .libs/hp5400.o .libs/hp5400-s.o .libs/sane_strstatus.o 
../sanei/.libs/sanei_init_debug.o ../sanei/.libs/sanei_config.o 
../sanei/.libs/sanei_usb.o ../sanei/.libs/sanei_config2.o  -lnsl -lm 
/usr/lib/libjpeg.so -ldl  -Wl,-soname -Wl,libsane.so.1 -o 
.libs/libsane-hp5400.so.1.0.12
(cd .libs && rm -f libsane-hp5400.so.1 && ln -s libsane-hp5400.so.1.0.12 
libsane-hp5400.so.1)
(cd .libs && rm -f libsane-hp5400.so && ln -s libsane-hp5400.so.1.0.12 
libsane-hp5400.so)
creating libsane-hp5400.la
(cd .libs && rm -f libsane-hp5400.la && ln -s ../libsane-hp5400.la 
libsane-hp5400.la)
make[1]: Verlassen des Verzeichnisses Verzeichnis 
»/home/moali/src/sane-backends-1.0.12/backend«
making all in frontend
make[1]: Wechsel in das Verzeichnis Verzeichnis 
»/home/moali/src/sane-backends-1.0.12/frontend«
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
-I/usr/local/include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d        
-DPATH_SANE_DATA_DIR=/usr/local/share           -DV_MAJOR=1 -DV_MINOR=0 
-g -O2 -W -Wall saned.c
saned.c: In function `check_host':
saned.c:559: structure has no member named `ss_family'
saned.c:562: warning: unreachable code at beginning of switch statement
saned.c: In function `start_scan':
saned.c:1025: structure has no member named `ss_family'
saned.c:1034: structure has no member named `ss_family'
saned.c:1037: warning: unreachable code at beginning of switch statement
saned.c:1074: structure has no member named `ss_family'
saned.c:1077: warning: unreachable code at beginning of switch statement
make[1]: *** [saned.o] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis 
»/home/moali/src/sane-backends-1.0.12/frontend«
make: *** [all-recursive] Fehler 1