[sane-devel] Re: Darwin/MacOSX

Karl Heinz Kremer khk at khk.net
Fri Nov 29 22:14:03 GMT 2002


On Fri, Nov 29, 2002 at 08:18:12PM +0100, Henning Meier-Geinitz wrote:
> 
> > If you think your version is dynamically loading those dylibs, and you 
> > do not have dlcompat installed, you are wrong (sorry), I think you will 
> > probably find (use otool -L) that they are all linked into the 
> > library/app, or you are magically linking against libdl.0.dylib 
> > somewhere.
> 
> The filesize of the application or libsane.1.0.9.dylib will be a clue,
> too :-)
> 

Not necessarily... I only turned on the epson and test backend in the
Makefile, which does not bloat libsane.dylib a lot. otool -L did however
not help. It only lists the dynamic libraries that are actually linked,
and not libraries that are either loaded at runtime, or statically linked. 

I used ktrace to trace all systemcalls and found out that only libsane.dylib
got loaded. Then I used nm to inspect this library and found all the symbols
from the test and epson backends. So my backends were statically linked into
libsane.dylib. ... and I finally understand why we need dlcompat, or at 
least the wrapper from dlfcn_simple.c (part of dlcompat). 

Now things make sense again. 

Karl Heinz

-- 
Karl Heinz Kremer                                  khk at khk.net
PGP Key at                 http://www.khk.net/download/khk.asc
EPSON Sane Backend:                         http://www.khk.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20021129/dd35e158/attachment.sig>


More information about the sane-devel mailing list