[sane-devel] Link errors on compiling sane-backends-1.0.12-pre1 on Mac OS X 10.2.6 ( 6L60 )
Dino Tang
tang at mac.com
Wed May 14 02:44:29 BST 2003
I'm using the December 2002 Developer Tools set. The last portion of
the log is the following:
gcc -o sane-desc sane-desc.o -framework CoreFoundation -framework
IOKit ../sanei/libsanei.a ../lib/liblib.a -lm
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]: *** [sane-desc] Error 1
make: *** [all-recursive] Error 1
Since the "multiple defines of the getopt symbol" should have been
fixed on the 5/3/2003's snapshot image, I assume that this problem has
something to do with my configuration. Anybody who could compile
sane-backends-1.0.12-pre1 on a similar configuration ( 10.2.6 with Dec
2002 tools ) please send me a response. Thanks.
--Dino
More information about the sane-devel
mailing list