On 10/22/05, Martin Costabel <[EMAIL PROTECTED]> wrote:
> James Coyle wrote:
> > I recently installed binary versions of Apache2 and PHP5. After doing
> > so, my httpd.conf file reports this error:
> >
> > Syntax error on line 257 of /Library/Apache2/conf/httpd.conf:
> > Cannot load /Library/Apache2/modules/libphp5.so into server: Library not
> > loaded: /sw/lib/libiconv.2.dylib\n  Referenced from:
> > /Library/Apache2/modules/libphp5.so\n  Reason: Incompatible library
> > version: libphp5.so requires version 6.0.0 or later, but
> > libiconv.2.dylib provides version 5.0.0
> >
> > I checked for which version of libiconv.22.dylib in installed via Fink:
> >
> > otool -L /sw/lib/libiconv.2.dylib
> > /sw/lib/libiconv.2.dylib:
> >         /sw/lib/libiconv.2.dylib (compatibility version 6.0.0, current
> > version 6.0.0)
> >         /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current
> > version 92.0.0)
> >         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> > version 88.2.1)
> >
> >
> > Seemingly, there shouldn't be a problem. sincee the version is correct.
> > Any ideas what's going on here?
>
> The dynamic loader in 10.4.2 is brain dead. Not only does it not load
> the libraries it is asked to load, but when this leads to errors, it
> tries to blame others for its own misbehavior. You can set the
> environment variable DYLD_PRINT_LIBRARIES to see what libraries are
> really loaded. Quite probably /usr/lib/libiconv.2.dylib is loaded
> earlier, and when dyld is asked to load /sw/lib/libiconv.2.dylib, it
> pretends that this is already loaded and doesn't do it.
>
> In some of these cases, setting the environment variable
> DYLD_FALLBACK_LIBRARY_PATH to something trivial like ":" or "/dev/null"
> helps, as is described in the Fink FAQ9.14 for another instance of this
> buggy behavior.
>
> --
> Martin
>

The most recent vintage of fink (the same version lives in both stable
and unstable) should set that variable automatically.
--
Alexander K. Hansen
Fink Documenter
[Day Job] Levitated Dipole Experiment
http://psfcwww2.psfc.mit.edu/ldx/


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to