On Fri, Apr 8, 2011 at 12:30 PM, Alexander Hansen
<[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 4/8/11 3:18 PM, Ken Mankoff wrote:
>> On Fri, Apr 8, 2011 at 11:38 AM, Alexander Hansen
>> <[email protected]> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On 4/8/11 2:13 PM, Ken Mankoff wrote:
>>>> Hi fink list,
>>>>
>>>> I've recently discovered my 'gs' has stopped working. Not sure why.
>>>> I am using the http://xquartz.macosforge.org/ X11 which some old
>>>> emails imply might be related to this. When I run gs, this is what I
>>>> get:
>>>>
>>>> $ /sw/bin/gs
>>>> dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib
>>>>    Referenced from: /usr/X11/lib/libcairo.2.dylib
>>>>    Reason: Incompatible library version: libcairo.2.dylib requires
>>>> version 45.0.0 or later, but libpng12.0.dylib provides version 36.0.0
>>>> Trace/BPT trap
>>>>
>>>> Any tips to fix this will be much appreciated.
>>>>
>>>> Thank you,
>>>>
>>>>    -k.
>>>>
>>>
>>> I'll assume you're on 10.5.
>>>
>>> If so, it's an ongoing issue with Xquartz.  Apple downgraded your
>>> libpng12.0.dylib for you on a software update.  You need to reinstall
>>> Xquartz pretty much every time you get an Apple software update or
>>> update Xcode, and they say so on the Xquartz site.
>>>
>>
>> Sorry for not giving more details. I'm on OS X 10.6.7, and I have just
>> re-installed XQuartz but it didn't seem to change anything. Do I need
>> to log out/in or reboot?
>>
>>   -k.
>
> We don't support Xquartz on 10.6.  And your problem isn't related to it,
> because the errors are showing up between libraries in your
> system-provided X11, which I didn't notice initially.
>
> You've somehow hosed your system X11 setup, which is what Fink uses. On
> 10.6.7 I have:
>
> $ otool -L /usr/X11/lib/libpng12.0.dylib
> /usr/X11/lib/libpng12.0.dylib:
>        /usr/X11/lib/libpng12.0.dylib (compatibility version 45.0.0, current
> version 45.0.0)
>
> $ otool -L /usr/X11/lib/libcairo.2.dylib
> /usr/X11/lib/libcairo.2.dylib:
>        /usr/X11/lib/libcairo.2.dylib (compatibility version 10803.0.0, current
> version 10803.6.0)
>        /usr/X11/lib/libpixman-1.0.dylib (compatibility version 15.0.0, current
> version 15.0.0)
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 125.2.0)
>        /usr/X11/lib/libfreetype.6.dylib (compatibility version 10.0.0, current
> version 10.20.0)
>        /usr/X11/lib/libfontconfig.1.dylib (compatibility version 6.0.0,
> current version 6.3.0)
>        /usr/X11/lib/libpng12.0.dylib (compatibility version 45.0.0, current
> version 45.0.0)
>        /usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current
> version 5.0.0)
>        /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
> version 9.0.0)
>        /usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current
> version 7.0.0)
>        /usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current
> version 7.0.0)
>        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 
> 1.2.3)
>
>
> $ ls -l /usr/X11/lib/*png*
> lrwxr-xr-x 1 root wheel     14 Aug 22  2010
> /usr/X11/lib/libpng.3.35.0.dylib -> libpng.3.dylib
> lrwxr-xr-x 1 root wheel     14 Aug 22  2010
> /usr/X11/lib/libpng.3.41.0.dylib -> libpng.3.dylib
> lrwxr-xr-x 1 root wheel     14 Nov 11 02:28
> /usr/X11/lib/libpng.3.44.0.dylib -> libpng.3.dylib
> - -rwxr-xr-x 1 root wheel 449632 Jul 12  2010 /usr/X11/lib/libpng.3.dylib
> lrwxr-xr-x 1 root wheel     14 Aug 22  2010 /usr/X11/lib/libpng.dylib ->
> libpng12.dylib
> lrwxr-xr-x 1 root wheel     16 Aug 22  2010
> /usr/X11/lib/libpng12.0.35.0.dylib -> libpng12.0.dylib
> lrwxr-xr-x 1 root wheel     16 Aug 22  2010
> /usr/X11/lib/libpng12.0.41.0.dylib -> libpng12.0.dylib
> lrwxr-xr-x 1 root wheel     16 Nov 11 02:28
> /usr/X11/lib/libpng12.0.44.0.dylib -> libpng12.0.dylib
> - -rwxr-xr-x 1 root wheel 445536 Jul 12  2010 /usr/X11/lib/libpng12.0.dylib
> lrwxr-xr-x 1 root wheel     16 Aug 22  2010 /usr/X11/lib/libpng12.dylib
> - -> libpng12.0.dylib
>
> If your setup looks the same, including the output from "otool -L
> /usr/X11/lib/libpng12.0.dylib", then something else may be derailing the
> dynamic link process, such as use of DYLD_LIBRARY_PATH.
>
> That being said, ghostscript should use the Fink versions of libraries
> rather than those that came with X11.
> - --
> Alexander Hansen, Ph.D.
> Fink User Liaison
> http://finkakh.wordpress.com/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk2fYkUACgkQB8UpO3rKjQ+MxgCeNnCz4B8jyF95GSTjR/5yTCOb
> ci4An3LeHYuHmjeSeyYSQu0YYHyS6M5l
> =lHUC
> -----END PGP SIGNATURE-----
>


Thanks the DYLD_LIBRARY_PATH was the clue. I had set that elsewhere
and that was the problem. Everything is working properly now.

   -k.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to