[sane-devel] MacOS X SCSI support and other changes in SANE CVS

Henning Meier-Geinitz henning@meier-geinitz.de
Sat, 3 May 2003 14:03:29 +0200


Hi,

On Sat, May 03, 2003 at 12:05:03AM +0900, Peter O'Gorman wrote:
> On Friday, May 2, 2003, at 06:44  PM, Henning Meier-Geinitz wrote:
> >
> >About which symbol is the linker complaining if you use the old link
> >order?
> 
> Fails to build with the original posters error (multiple definitions of 
> the getopt symbols).

Ok. That's changed in the latest snapshot on
http://www.meier-geinitz.de/sane/snapshots/sane-backends-2003-05-03.tar.gz

There is also a fix for a problem with include/md5.h reported by
another MacOS X user.

> >Oh well, I thought Darwin some sort of Unix? :-)
> 
> It is, there seems to be a poll emulation library available at 
> <http://www.clapper.org/software/poll/> which might do the right thing 
> here.

Thanks. But the license is BSD + advertising clause so it's
incompatible to GPL.

> Should build fine on linux et. al. too. Basically just adds the 
> "-all_load" flag to the link line when liblib.a is there so that all 
> members of the static archive are loaded ( I am not really sure why 
> this is necessary ).

Works for me. There is an alternative patch that is reported to work
by another MacOS user. But if your patch also works for him, I'll keep
yours. The difference to your first patch is that libsanei stays
before liblib.

diff -ur sane-backends.orig/frontend/Makefile.in sane-backends/frontend/Makefile.in
--- sane-backends.orig/frontend/Makefile.in	Fri Dec  6 15:46:02 2002
+++ sane-backends/frontend/Makefile.in	Fri May  2 20:14:52 2003
@@ -90,14 +90,14 @@
 	done
 
 test: test.o $(LIBSANE) $(LIBLIB)
-	@$(LIBTOOL) $(MLINK) $(LINK) test.o $(LIBSANE) $(LIBLIB) $(LIBS)
+	@$(LIBTOOL) $(MLINK) $(LINK) test.o $(LIBLIB) $(LIBSANE) $(LIBS)
 
 saned: saned.o $(LIBSANEI) $(LIBSANE) $(LIBLIB)
-	@$(LIBTOOL) $(MLINK) $(LINK) saned.o $(LIBSANEI) $(LIBSANE) $(LIBLIB) \
+	@$(LIBTOOL) $(MLINK) $(LINK) saned.o $(LIBSANEI) $(LIBLIB) $(LIBSANE) \
 		$(LIBS)
 
 scanimage: $(SCAN_OBJS) $(LIBSANE) $(LIBLIB)
-	@$(LIBTOOL) $(MLINK) $(LINK) $(SCAN_OBJS) $(LIBSANE) $(LIBLIB) $(LIBS)
+	@$(LIBTOOL) $(MLINK) $(LINK) $(SCAN_OBJS) $(LIBLIB) $(LIBSANE) $(LIBS)
 
 # tstbackend is not compiled by default. 
 # To compile it, add tstbackend to BINPROGS.


Bye,
  Henning