Hi,
> I do not know how to fix the Irix 6.2 problems properly, but I hope I
> managed to fix the AIX and Solaris problems. It is in CVS.
Ok, at least the errors have changed ;-) First the good news:
AIX compiles (with many ugly warnings). But it doesn't install:
gmake[1]: Entering directory /tmp/sane/backend'
../mkinstalldirs /tmp/sane-test/lib /tmp/sane-test/lib/sane
/tmp/sane-test/etc/sane.d
mkdir /tmp/sane-test/lib
mkdir /tmp/sane-test/lib/sane
mkdir /tmp/sane-test/etc
mkdir /tmp/sane-test/etc/sane.d
installing libsane-abaton.la in /tmp/sane-test/lib/sane...
.././install-sh -c .libs/libsane-abaton.so.1.0.2
/tmp/sane-test/lib/sane/libsane-abaton.so.1.0.2
install: .libs/libsane-abaton.so.1.0.2 does not exist
gmake[1]: *** [install] Error 1
gmake[1]: Leaving directory /tmp/sane/backend'
gmake: *** [install-recursive] Error 1
Let's have a look at backend/.libs:
lrwxrwxrwx 1 rau d070022 23 Jul 19 00:21 libsane-abaton.a -> libsane-abaton.so.1.0.2
lrwxrwxrwx 1 rau d070022 20 Jul 19 00:21 libsane-abaton.la -> ../libsane-abaton.la
-rw-r--r-- 1 rau d070022 699 Jul 19 00:21 libsane-abaton.lai
lrwxrwxrwx 1 rau d070022 23 Jul 19 00:21 libsane-abaton.so.1 -> libsane-abaton.so.1.0.2
lrwxrwxrwx 1 rau d070022 26 Jul 19 00:22 libsane-agfafocus.a -> libsane-agfafocus.so.1.0.2
lrwxrwxrwx 1 rau d070022 23 Jul 19 00:22 libsane-agfafocus.la -> ../libsane-agfafocus.la
-rw-r--r-- 1 rau d070022 717 Jul 19 00:22 libsane-agfafocus.lai
lrwxrwxrwx 1 rau d070022 26 Jul 19 00:22 libsane-agfafocus.so.1 -> libsane-agfafocus.so.1.0.2
[...]
Hm, where are the libs? The .lo files are in backend directory.
> Please test and check if this works. I implemented vsyslog() using
> vsnprintf(). I hope this is available on AIX. If not, I'll put in a
> replacement function for this as well.
At least no error message.
Ok, now compiling for AIX with --disable-shared:
making all in frontend
gmake[1]: Entering directory /tmp/sane/frontend'
gcc -o scanimage scanimage.o stiff.o -L../backend/.libs -lsane
../lib/liblib.a -ldl -lnsl -lm
collect2: ld returned 8 exit status
ld: 0711-317 ERROR: Undefined symbol: .alloca
ld: 0711-317 ERROR: Undefined symbol: .sanei_scsi_req_flush_all_extended
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[1]: *** [scanimage] Error 1
gmake[1]: Leaving directory /tmp/sane/frontend'
gmake: *** [all-recursive] Error 1
Ok, now Solaris:
making all in backend
gmake[1]: Entering directory /tmp/sane/backend'
rm -f .libs/m3096g.lo
gcc -c -g -O2 -W -Wall -Wstrict-prototypes -Wreturn-type -Wcast-align
-Wpointer-arith -Wcast-qua
l -ansi -pedantic -DSCSIBUFFERSIZE=131072 -DHAVE_CONFIG_H -I. -I.
-I../include -I../include -D_G
NU_SOURCE -DPATH_SANE_CONFIG_DIR=/tmp/sane-test/etc/sane.d
-DPATH_SANE_DATA_DIR=/tmp/sane-test/s
hare -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=m3096g
-DLIBDIR=/tmp/sane-test/lib/sane m3096g.c -f
PIC -DPIC -o .libs/m3096g.lo
In file included from ../include/sane/sanei_backend.h:1,
from m3096g.c:127:
../include/sane/sanei_debug.h:46: warning: ANSI C does not allow macro with
variable arguments
In file included from m3096g.c:126:
../include/sane/config.h:362: warning: function declaration isn't a prototype
../include/sane/config.h:367: warning: function declaration isn't a prototype
In file included from m3096g.c:133:
m3096g-scsi.h:172: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:179: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:186: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:209: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:232: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:239: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:247: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:255: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:263: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:274: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:305: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:317: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:324: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:335: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:349: warning: pointer targets in initialization differ in
signedness
m3096g-scsi.h:475: warning: pointer targets in initialization differ in
signedness
m3096g.c: In function sane_m3096g_init':
m3096g.c:199: warning: unused parameter authorize'
m3096g.c: In function sane_m3096g_get_devices':
m3096g.c:236: warning: unused parameter local_only'
m3096g.c: In function sane_m3096g_open':
m3096g.c:261: warning: unused parameter name'
m3096g.c: In function sane_m3096g_set_io_mode':
m3096g.c:312: warning: unused parameter h'
m3096g.c:312: warning: unused parameter non_blocking'
m3096g.c: In function sane_m3096g_get_select_fd':
m3096g.c:320: warning: unused parameter h'
m3096g.c:320: warning: unused parameter fdp'
m3096g.c: In function sane_m3096g_start':
m3096g.c:764: sigset_t' undeclared (first use in this function)
m3096g.c:764: (Each undeclared identifier is reported only once
m3096g.c:764: for each function it appears in.)
m3096g.c:764: parse error before ignore_set'
m3096g.c:765: storage size of act' isn't known
m3096g.c:769: warning: implicit declaration of function sigfillset'
m3096g.c:769: ignore_set' undeclared (first use in this function)
m3096g.c:770: warning: implicit declaration of function sigdelset'
m3096g.c:771: warning: implicit declaration of function sigprocmask'
m3096g.c:774: warning: implicit declaration of function sigaction'
m3096g.c:765: warning: unused variable act'
m3096g.c: In function attach_scanner':
m3096g.c:923: warning: implicit declaration of function strdup'
m3096g.c:923: warning: assignment makes pointer from integer without a cast
m3096g.c: In function sense_handler':
m3096g.c:988: warning: unused parameter scsi_fd'
m3096g.c:988: warning: unused parameter arg'
m3096g.c: In function m3096g_identify_scanner':
m3096g.c:1160: warning: pointer targets in passing arg 2 of strncpy' differ
in signedness
m3096g.c:1161: warning: pointer targets in passing arg 2 of strncpy' differ
in signedness
m3096g.c:1162: warning: pointer targets in passing arg 2 of strncpy' differ
in signedness
m3096g.c: In function m3096g_do_inquiry':
m3096g.c:1217: warning: pointer targets in passing arg 4 of do_scsi_cmd'
differ in signedness
m3096g.c: In function do_scsi_cmd':
m3096g.c:1226: warning: pointer targets in passing arg 3 of hexdump' differ
in signedness
m3096g.c:1240: warning: pointer targets in passing arg 3 of hexdump' differ
in signedness
m3096g.c: In function m3096g_object_position':
m3096g.c:1591: warning: pointer targets in passing arg 2 of do_scsi_cmd'
differ in signedness
m3096g.c: In function do_cancel':
m3096g.c:1615: warning: implicit declaration of function kill'
m3096g.c: In function swap_res':
m3096g.c:1634: warning: unused parameter s'
m3096g.c: In function m3096g_object_discharge':
m3096g.c:1652: warning: pointer targets in passing arg 2 of do_scsi_cmd'
differ in signedness
m3096g.c:1802: warning: unused parameter signal'
m3096g.c: In function reader_process':
m3096g.c:1816: sigset_t' undeclared (first use in this function)
m3096g.c:1816: parse error before sigterm_set'
m3096g.c:1817: storage size of act' isn't known
m3096g.c:1821: warning: implicit declaration of function sigemptyset'
m3096g.c:1821: sigterm_set' undeclared (first use in this function)
m3096g.c:1822: warning: implicit declaration of function sigaddset'
m3096g.c:1824: warning: implicit declaration of function fdopen'
m3096g.c:1824: warning: assignment makes pointer from integer without a cast
m3096g.c:1817: warning: unused variable act'
m3096g.c: In function m3096g_trim_rowbufsize':
m3096g.c:1927: warning: comparison between signed and unsigned
m3096g.c: In function m3096g_read_data_block':
m3096g.c:1944: warning: pointer targets in passing arg 1 of putnbyte' differ
in signedness
m3096g.c:1946: warning: pointer targets in passing arg 4 of do_scsi_cmd'
differ in signedness
m3096g.c: At top level:
m3096g-scsi.h:532: warning: lint_catcher' defined but not used
gmake[1]: *** [m3096g.lo] Error 1
gmake[1]: Leaving directory /tmp/sane/backend'
gmake: *** [all-recursive] Error 1
I have to admit that I don't understand this. sigset_t etc. should
be typedefd in sys/signal.h which is included by signal.h. PATH_MAX is in
limits.h.
Irix 6.2 cc bails out with:
gmake[1]: Entering directory /tmp/sane/backend'
rm -f .libs/djpeg.lo
cc -c -g -DSCSIBUFFERSIZE=131072 -DHAVE_CONFIG_H -I. -I. -I../include
-I../inclu
de -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/tmp/sane-test/etc/sane.d
-DPATH_SANE_DA
TA_DIR=/tmp/sane-test/share -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=djpeg
-DLIBDI
R=/tmp/sane-test/lib/sane djpeg.c -DPIC -o .libs/djpeg.lo
cfe: Error: ./cdjpeg.h, line 53: Syntax Error
extern (djpeg_dest_ptr) sanei_jpeg_jinit_write_ppm (j_decompress_ptr cinfo) ;
--------^
cfe: Error: ./cdjpeg.h, line 53: Empty declaration specifiers
extern (djpeg_dest_ptr) sanei_jpeg_jinit_write_ppm (j_decompress_ptr cinfo) ;
------------------------^
cfe: Error: djpeg.c, line 61: Syntax Error
static (void)
---------^
cfe: Error: djpeg.c, line 76: Syntax Error
static (void)
---------^
cfe: Error: djpeg.c, line 92: Syntax Error
static (void)
---------^
cfe: Error: djpeg.c, line 117: Syntax Error
static (void)
---------^
cfe: Error: djpeg.c, line 144: Syntax Error
static (void)
---------^
cfe: Error: djpeg.c, line 164: Syntax Error
(djpeg_dest_ptr)
---^
gmake[1]: *** [djpeg.lo] Error 1
gmake[1]: Leaving directory /tmp/sane/backend'
gmake: *** [all-recursive] Error 1
Same error as before, maybe I have time to understand this next weekend.
Irix 5.3 gcc:
Compiles and installs without errors. Yeah! scanimage -d pnm:0 --filename
file -T works directly and over the net backend. xscanimage seems to work
also. I can't test SCSI scanners at the moment.
But: compiling with --disable-shared leads to:
[...]
ranlib .libs/libsane-dll.a
creating libsane-dll.la
(cd .libs && rm -f libsane-dll.la && ln -s ../libsane-dll.la libsane-dll.la)
rm -fr .libs/libsane.la .libs/libsane.* .libs/libsane.*
ar cru .libs/libsane.a dll.o dll-s.o sane_strstatus.o
../sanei/sanei_init_debug.o ../sanei/sanei_config.o
abaton.o agfafocus.o apple.o artec.o avision.o canon.o coolscan.o dc25.o
dmc.o epson.o hp.o m3096g.o micr
.o ../lib/strsep.o ../lib/usleep.o ../sanei/sanei_config2.o
../sanei/sanei_codec_bin.o ../sanei/sanei_constrain_value.o
../sanei/sanei_net.o ../sanei/sanei_scsi.o ../sanei/sanei_wire.o
../sanei/sanei_ab306.o ../sanei/sanei_pio.o ../sanei/sanei_pa4s2.o
hp-accessor.o hp-device.o hp-handle.o hp-hpmem.o hp-option.o hp-scl.o
ranlib .libs/libsane.a
creating libsane.la
(cd .libs && rm -f libsane.la && ln -s ../libsane.la libsane.la)
make[1]: Leaving directory /u2/people/henning/sane/backend'
making all in frontend
make[1]: Entering directory /u2/people/henning/sane/frontend'
gcc -L/usr/local/lib -o scanimage scanimage.o stiff.o
../backend/.libs/libsane.a ../lib/liblib.a -ldl -ljpeg -lm
/usr/bin/../lib/ld:
The shared object /usr/lib/libdl.so did not resolve any symbols.
You may want to remove it from your link line.
Unresolved:
sanei_scsi_req_flush_all_extended
collect2: ld returned 1 exit status
make[1]: *** [scanimage] Error 1
make[1]: Leaving directory /u2/people/henning/sane/frontend'
make: *** [all-recursive] Error 1
Bye,
Henning
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 08:58:25 PDT