[sane-devel] Problem building on OSX

Peter Howard pjh@coastal.net.au
08 Jun 2003 11:53:15 +1000


(I've searched the archive and have seen related problems but not enough
info to work the rest out :-(

I'm trying to build sane-backends 1.0.12 on OSX 10.2, and I get the
following load errors:

gcc -o .libs/scanimage scanimage.o stiff.o  ../lib/liblib.a
../backend/.libs/libsane.dylib -lm -framework CoreFoundation -framework
IOKit
ld: multiple definitions of symbol _getopt
/usr/lib/libm.dylib(getopt.So) definition of _getopt
../lib/liblib.a(getopt.o) definition of _getopt in section
(__TEXT,__text)
ld: multiple definitions of symbol _opterr
/usr/lib/libm.dylib(getopt.So) definition of _opterr
../lib/liblib.a(getopt.o) definition of _opterr in section
(__DATA,__data)
ld: multiple definitions of symbol _optind
/usr/lib/libm.dylib(getopt.So) definition of _optind
../lib/liblib.a(getopt.o) definition of _optind in section
(__DATA,__data)
ld: multiple definitions of symbol _optopt
/usr/lib/libm.dylib(getopt.So) definition of _optopt
../lib/liblib.a(getopt.o) definition of _optopt in section
(__DATA,__data)
make[1]: *** [scanimage] Error 1
make: *** [all-recursive] Error 1


I gave no options to configure.  

Thanks 

PJH