sane-project-website/old-archive/2000-07/0170.html

588 wiersze
17 KiB
HTML

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