[sane-devel] Epson perfection 660 ->Problem building on OSX

Henning Meier-Geinitz henning@meier-geinitz.de
Sat, 21 Jun 2003 14:57:41 +0200


Hi,

On Sat, Jun 21, 2003 at 05:13:08AM -0700, Brian D. Williams wrote:
> gcc -o .libs/scanimage scanimage.o stiff.o  ../lib/liblib.a ../backend/.libs/libsane.dylib /usr/local/lib/libusb.dylib -lIOKit -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)

Yeah, that's the already known multiple definition error. Some MacOS X
users don't seem to get that error, some see it. No idea why.
And, by the way, I have no idea why libm should define _getopt.

Bye,
  Henning