[sane-devel] sane/xsane on Mac OS X?

paul beard paulbeard@mac.com
Sun, 07 Apr 2002 22:28:18 -0700


An update: I did get sane-backends built and installed simply by 
commenting out the canon backend.

sane-frontends is having the following issues:

making all in src
cc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
-I/usr/local/include -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 
-I/sw/lib/glib/include -I/usr/X11R6/include -D_GNU_SOURCE 
-DPATH_SANE_DATA_DIR=/usr/local/share/sane      -DV_MAJOR=1 
-DV_MINOR=0 -DV_BUILD=7 -DSANE_V_MAJOR=1 -g -O2 -Wall 
-I/usr/local/include -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 
-I/sw/lib/glib/include -I/usr/X11R6/include scanadf.c
cc -L/usr/local/lib -o scanadf scanadf.o ../lib/liblib.a -lm 
-lsane -lm
/usr/bin/ld: archive: ../lib/liblib.a has no table of contents, 
add one with ranlib(1) (can't load from it)
/usr/bin/ld: multiple definitions of symbol _getopt
/usr/lib/libm.dylib(getopt.o) definition of _getopt
/usr/local/lib/libsane.a(getopt.o) definition of _getopt in 
section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _optarg
/usr/lib/libm.dylib(getopt.o) definition of _optarg
/usr/local/lib/libsane.a(getopt.o) definition of _optarg in 
section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _opterr
/usr/lib/libm.dylib(getopt.o) definition of _opterr
/usr/local/lib/libsane.a(getopt.o) definition of _opterr in 
section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optind
/usr/lib/libm.dylib(getopt.o) definition of _optind
/usr/local/lib/libsane.a(getopt.o) definition of _optind in 
section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optopt
/usr/lib/libm.dylib(getopt.o) definition of _optopt
/usr/local/lib/libsane.a(getopt.o) definition of _optopt in 
section (__DATA,__data)
make[1]: *** [scanadf] Error 1
make: *** [all-recursive] Error 1



[/Users/paul/src/sane-frontends-1.0.7]:: uname -a
Darwin pink 5.3 Darwin Kernel Version 5.3: Thu Jan 24 22:06:02 PST 
2002; root:xnu/xnu-201.19.obj~1/RELEASE_PPC  Power Macintosh powerpc
(paul@pink)-(10:27 PM / Sun Apr  7)
[/Users/paul/src/sane-frontends-1.0.7]:: cc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-932.1, based on gcc version 
2.95.2 19991024 (release)

-- 
Paul Beard
8040 27th Ave NE
Seattle WA 98115
206 529 8400

Murphy's Law is recursive.  Washing your car to make it rain doesn't
work.