[sane-devel] Re: Darwin/MacOSX

Karl Heinz Kremer khk at khk.net
Fri Nov 29 14:21:55 GMT 2002


On Fri, Nov 29, 2002 at 03:15:21PM +0100, Henning Meier-Geinitz wrote:
> Hi,
> 
> On Thu, Nov 28, 2002 at 09:12:03PM +0900, Peter O'Gorman wrote:
> > Note that a dlopen compatibility library is needed, I suggest using 
> > dlcompat <http://www.opendarwin.org/projects/dlcompat>, but I am a 
> > little biased :)
> 
> Thanks for the patch. So now we at least know how to detect a AmcOS X
> sytsem :-)
> 
> However, the dynamic loading issue is still unclear for me:
> 
> > +#  ifdef __APPLE__
> > +#   define POSTFIX ".%u.so"
> > +#  else
> >  #   define POSTFIX ".so.%u"
> > +#  endif
> 
> That's the third version of how MacOS shared libraries are stored.
> 1) libsane-something.so(.version)
> 2) libsane-something.dylib.version
> 3) (yours) libsane-something(.version).so
> 
> I'm pretty much confused by this stuff. Can we support all of these
> versions? Why are there different approaches at all?

This is part of a directory listing of my /usr/local/lib/sane directory:

drwxr-xr-x  222 root  wheel    7548 Nov 14 20:09 .
drwxr-xr-x   50 root  wheel    1700 Nov 14 20:09 ..
-rwxr-xr-x    1 root  wheel   45336 Nov  2 10:48 libsane-abaton.1.0.9.dylib
lrwxr-xr-x    1 root  wheel      26 Nov 14 20:09 libsane-abaton.1.dylib -> libsane-
abaton.1.0.9.dylib
lrwxr-xr-x    1 root  wheel      26 Nov 14 20:09 libsane-abaton.dylib -> libsane-ab
aton.1.0.9.dylib
lrwxr-xr-x    1 root  wheel      22 Nov 14 20:09 libsane-abaton.dylib.1 -> libsane-
abaton.1.dylib
-rwxr-xr-x    1 root  wheel     792 Nov  2 10:48 libsane-abaton.la
-rwxr-xr-x    1 root  wheel   54528 Nov  2 10:48 libsane-agfafocus.1.0.9.dylib
lrwxr-xr-x    1 root  wheel      29 Nov 14 20:09 libsane-agfafocus.1.dylib -> libsa
ne-agfafocus.1.0.9.dylib
lrwxr-xr-x    1 root  wheel      29 Nov 14 20:09 libsane-agfafocus.dylib -> libsane
-agfafocus.1.0.9.dylib
lrwxr-xr-x    1 root  wheel      25 Nov 14 20:09 libsane-agfafocus.dylib.1 -> libsa
ne-agfafocus.1.dylib
-rwxr-xr-x    1 root  wheel     810 Nov  2 10:48 libsane-agfafocus.la
...

Your #2 is either the correct order of version and .dlib, or we have a fourth
variant. 

Is it possible that this dlcompat library is only required when the 
library names do not have the correct format?

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/673a1b71/attachment.sig>


More information about the sane-devel mailing list