I think I may have the answer. When the fink version of unixODBC failed to build I went after the source and downloaded it from unixODBC.org. The README.OSX file contains the following:

"It looks as if Darwin (Mac OSX) doesn't support the normal
        dlopen type process that unixODBC requires. However help is
        at hand in the form of dlcompat-20010831.tar.gz. This file
        contains wrappers to emulate the calls. I have put this in

ftp://ftp.easysoft.com/pub/beta/unixODBC/ dlcompat-20010831.tar.gz

        It should be downloaded, unpacked then run make install

        This should be done before configuring unixODBC

        This file was created by Christoph Pfisterer <[EMAIL PROTECTED]> and
        the original copy can be found at............."

So I downloaded and installed dlcompat.  It is described as:

"This is dlcompat, a small library that emulates the dlopen()
interface on top of Darwin's dyld API.

Unlike dlopen.c in cctools, this allows loading a ".dylib"
library (as long as the RTLD_LOCAL flag isn't passed to dlopen()). It can
be configured to yield a warning when trying to close it (dynamic
libraries cannot be unloaded).

It automatically searches for modules in several directories (taken
from the environment variables DYLD_LIBRARY_PATH and LD_LIBRARY_PATH,
plus /usr/lib and /lib) when no absolute path is specified and the
module is not found in the current directory."

To cut a long story short, the dlcompat directory looks as follows:

"-rw-r--r--   1 stu  stu   2763 Jun  6  2002 ChangeLog
-rw-r--r--   1 stu  stu   1175 Jun  6  2002 LICENSE
-rw-r--r--   1 stu  stu   2233 Jun  6  2002 Makefile
-rw-r--r--   1 stu  stu   1773 Jun  6  2002 README
-rw-r--r--   1 stu  stu     72 Jun  6  2002 TODO
-rw-r--r--   1 stu  stu  15412 Jun  6  2002 dlfcn.c
-rw-r--r--   1 stu  stu   1486 Jun  6  2002 dlfcn.h
-rw-r--r--   1 stu  stu   9788 Dec 21 14:50 dlfcn.o
-rwxr-xr-x   1 stu  stu  15688 Dec 21 14:50 libdl.0.dylib
-rw-r--r--   1 stu  stu  10096 Dec 21 14:50 libdl.a
lrwxr-xr-x 1 stu stu 13 Dec 21 14:50 libdl.dylib -> libdl. 0.dylib"

and there at the end is the culprit. Unfortunately, even with this in place I couldn't get unixODBC to build -- with or without fink! After some further poking about, I see some references that suggest that dlcompat is included in OS X 10.3 and above.

Stuart
________________________

On Dec 23, 2005, at 2:18 PM, Martin Costabel wrote:

Stuart Edwards wrote:
[]
-rw-r--r--    1 root  wheel     15688 Dec 21 14:51 libdl.0.dylib
-rw-r--r--    1 root  wheel     10096 Dec 21 14:51 libdl.a
lrwxr-xr-x 1 root wheel 13 Dec 21 14:51 libdl.dylib -> libdl.0.dylib
-rwxr-xr-x    1 root  wheel    112404 Dec 18 12:39 libedit.2.dylib
lrwxr-xr-x 1 root wheel 15 Jul 10 23:37 libedit.dylib - > libedit.2.dylib
-rwxr-xr-x    1 root  wheel     70284 Dec 18 12:39 libexslt.0.dylib
lrwxr-xr-x 1 root wheel 16 Jul 10 23:37 libexslt.dylib - > libexslt.0.dylib
-rwxr-xr-x    1 root  wheel       880 Nov  1 14:56 libexslt.la
lrwxr-xr-x    1 root  wheel         6 Dec 18 12:28 libfl.a -> libl.a
Apparently libdl.0.dylib was installed on 12/21 and either updated or replaced libdl.dylib which now links to it. I have to assume that these are changes that were made during a fink update or installation process since I certainly wouldn't know how or why to make them. You will notice that the same thing happened to libexslt.dylib which now links to libexslt.0.dylib.

Libexslt.* looks the same on my machine, so I guess this is OK.

For libdl, however, it would be interesting to know what exactly happened on Dec 21, 14:51. In particular if this is really related to Fink, it would be a very serious bug that would need to be eliminated quickly.

--
Martin



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to