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

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 8 Apr 2002 20:22:33 +0200


Hi,

On Sun, Apr 07, 2002 at 10:28:18PM -0700, paul beard wrote:
> An update: I did get sane-backends built and installed simply by 
> commenting out the canon backend.

Cool! Can you please shoiw us the error message that is printed if you
try to compile the canon backend?

> sane-frontends is having the following issues:
[...]

> 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)

Try what the linker proposes: cd lib ; ranlib liblib.a

> /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)

I'm not sure about those. Maybe you can remove getopt (and getopt1?)
from LIBLIB_OBJS and LIBLIB_LTOBJS in lib/Makefile.in.

Bye,
  Henning