[sane-devel] mac osx: cannot build scanimage
Henning Meier-Geinitz
henning at meier-geinitz.de
Fri Feb 7 12:34:39 GMT 2003
Hi,
On Thu, Feb 06, 2003 at 11:09:22AM -0800, rcharlet at SonicWALL.com wrote:
>
> From a `make` command with sane 1.0.10 in mac osx I get
Standard sane-backends-1.0.10 without any change? I'm asking because
there have been reports that building prereleases works ok on MacOS X.
At least I haven't heard about this one.
> -----------cut-----------------
> making all in frontend
>
> gcc -o .libs/scanimage scanimage.o stiff.o ../sanei/libsanei.a -L../backend/.libs -lsane ../lib/liblib.a -L/usr/local/lib -lusb -lIOKit -lm
>
> /usr/bin/ld: Undefined symbols:
>
> _dlclose
> Anyway... I put "-ldl" in my LIBS macro in frontends/Makefile and it went smooth after that.
But I thought MacOS X is supposed to not use libdl? That's why we have
the following code in acinclude.m4:
#Mac OS X/Darwin
AC_CHECK_HEADERS(mach-o/dyld.h,
[AC_CHECK_FUNCS(NSLinkModule, enable_dynamic=yes,)
DL_LIB=""
For Linux, libtool seems to be smart enough to add the -ldl option
automatically. I don't know why it doesn't do that on MacOS X.
And I either don't know why $(DL_LIBS) is missing in
frontends/Makefile.in. There may be a good reason.
Bye,
Henning
More information about the sane-devel
mailing list