sane-project-website/old-archive/1998-05/0299.html

141 wiersze
5.7 KiB
HTML

<!-- received="Fri May 29 12:40:21 1998 PDT" -->
<!-- sent="Fri, 29 May 1998 12:39:30 -0700" -->
<!-- name="Michael Polo" -->
<!-- email="mikep@Polo.NET" -->
<!-- subject="Re: Build problems under Solaris 2.6" -->
<!-- id="199805291939.MAA20627@enigma.Polo.NET" -->
<!-- inreplyto="Build problems under Solaris 2.6" -->
<title>sane-devel: Re: Build problems under Solaris 2.6</title>
<h1>Re: Build problems under Solaris 2.6</h1>
<b>Michael Polo</b> (<a href="mailto:mikep@Polo.NET"><i>mikep@Polo.NET</i></a>)<br>
<i>Fri, 29 May 1998 12:39:30 -0700</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#299">[ date ]</a><a href="index.html#299">[ thread ]</a><a href="subject.html#299">[ subject ]</a><a href="author.html#299">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0300.html">Nicholas Chan: "OS/2 Development"</a>
<li> <b>Next message:</b> <a href="0300.html">Nicholas Chan: "OS/2 Development"</a>
<li> <b>Previous message:</b> <a href="0298.html">Dave Carrigan: "Re: Build problems under Solaris 2.6"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Looks like there's (still) a bug with the solaris printf<br>
that coredumps. Dave (<a href="mailto:dave@rudedog.org">dave@rudedog.org</a>) seems to have a<br>
fix for it that wasn't as complicated as my workaround<br>
in the past (great!)<br>
<p>
I got it to work with the sun C compiler, but still have<br>
to remember to use gnu make to build the project.<br>
<p>
Is there a guru out there who can figure a way to<br>
rewrite this makefile rule:<br>
<p>
<i>&gt; libsane-%.la: %.lo %-s.lo $(EXTRA) $(LIBOBJS)</i><br>
<i>&gt; @$(LIBTOOL) $(MLINK) $(CC) -export-dynamic -o $@ $(LDFLAGS) $^ \</i><br>
<i>&gt; -rpath $(libsanedir) -version-info $(V_MAJOR):$(V_MINOR):0</i><br>
<p>
so that Sun's make doesn't compain with:<br>
<p>
<i>&gt; make: Fatal error in reader: Makefile, line 69: More than one % pattern on right hand side</i><br>
<i>&gt; Current working directory /export/home/build/sane-0.73/backend</i><br>
<p>
If we get that, then sane might work out-of-the-box on solaris,<br>
which would rock!<br>
<p>
Thanks,<br>
Mike<br>
<p>
Here are the fixes to get things to compile with the sun C compiler:<br>
<p>
--- backend/epson.c.ORIG Sat May 9 12:53:44 1998<br>
+++ backend/epson.c Fri May 29 07:32:11 1998<br>
@@ -557,7 +557,7 @@<br>
u_char status;<br>
u_short count;<br>
<br>
- u_char buf[0];<br>
+ u_char buf[1];<br>
<br>
}<br>
EpsonHdrRec, *EpsonHdr;<br>
@@ -571,7 +571,7 @@<br>
u_char type;<br>
u_char level;<br>
<br>
- u_char buf[0];<br>
+ u_char buf[1];<br>
<br>
}<br>
EpsonIdentRec, *EpsonIdent;<br>
--- backend/microtek2.c.ORIG Mon May 11 21:54:17 1998<br>
+++ backend/microtek2.c Fri May 29 07:42:04 1998<br>
@@ -2826,9 +2826,9 @@<br>
lines_to_deliver = MIN(srcframes[color_seq2] + prehold[color_seq2], <br>
dest_fit_lines); /* lines_to_deliver maybe zero */<br>
<br>
- DBG(30, "proc_sgreg_data: fitlines=%d, to_deliver=%d bpp=%d bpf=%d<br>
- srcframes0=%d, srcframes1=%d, srcframes2=%d<br>
- prehold0=%d, prehold1=%d, prehold2=%d\n", dest_fit_lines, <br>
+ DBG(30, "proc_sgreg_data: fitlines=%d, to_deliver=%d bpp=%d bpf=%d "<br>
+ "srcframes0=%d, srcframes1=%d, srcframes2=%d "<br>
+ "prehold0=%d, prehold1=%d, prehold2=%d\n", dest_fit_lines, <br>
lines_to_deliver, bpp, bpf, srcframes[0], srcframes[1], <br>
srcframes[2], prehold[0], prehold[1], prehold[2]); <br>
<br>
@@ -2954,8 +2954,8 @@<br>
}<br>
break;<br>
default:<br>
- DBG(1, "proc_segreg_data: unknown color indicator (3) <br>
- 0x%02x\n", *from);<br>
+ DBG(1, "proc_segreg_data: unknown color indicator (3) "<br>
+ "0x%02x\n", *from);<br>
break;<br>
}<br>
from += bpf;<br>
@@ -3274,7 +3274,8 @@<br>
static SANE_Status<br>
scsi_set_window(Microtek2_Scanner *ms, SANE_Int n) { /* n windows, not yet */<br>
/* implemented */<br>
- u_int8_t setwindow[SW_CMD_L + SW_HEADER_L + n * SW_BODY_L];<br>
+/* u_int8_t setwindow[SW_CMD_L + SW_HEADER_L + n * SW_BODY_L];*/<br>
+ u_int8_t *setwindow = alloca(sizeof(u_int8_t) * (SW_CMD_L + SW_HEADER_L + n * SW_BODY_L));<br>
SANE_Int status;<br>
<br>
<br>
--- sanei/sanei_scsi.c.ORIG Fri May 15 01:10:29 1998<br>
+++ sanei/sanei_scsi.c Fri May 29 07:17:51 1998<br>
@@ -2072,10 +2072,10 @@<br>
#endif /* WE_HAVE_ASYNC_SCSI */<br>
<br>
#ifndef WE_HAVE_FIND_DEVICES<br>
-<br>
void<br>
-sanei_scsi_find_devices (const char *findvendor, const char *findmodel,<br>
- int findbus, int findchannel, int findid, int findlun,<br>
+sanei_scsi_find_devices (const char *vendor, const char *model,<br>
+ const char *type,<br>
+ int bus, int channel, int id, int lun,<br>
SANE_Status (*attach) (const char *dev))<br>
{<br>
DBG (1, "sanei_scsi_find_devices: not implemented for this platform\n");<br>
<p>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0300.html">Nicholas Chan: "OS/2 Development"</a>
<li> <b>Next message:</b> <a href="0300.html">Nicholas Chan: "OS/2 Development"</a>
<li> <b>Previous message:</b> <a href="0298.html">Dave Carrigan: "Re: Build problems under Solaris 2.6"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>