X11 in Leopard
MacBook Pro, Mac OS X (10.5), HOLY CRAP I HAVE LEOPARD!!!!!
MacBook Pro, Mac OS X (10.5), HOLY CRAP I HAVE LEOPARD!!!!!
djm042 wrote:
Hi,
Thanks for all your help! Unfortunately, I am unable to get Gimp.app 2.2.11 running. It aborts during the "Caching Fonts" stage. The problem report looks interesting, however:
Dyld Error Message:
Library not loaded: /usr/X11/lib/libfontconfig.1.dylib
Referenced from: /usr/X11R6/lib/libXft.2.dylib
Reason: Incompatible library version: libXft.2.dylib requires version 3.0.0 or later, but libfontconfig.1.dylib provides version 2.0.0
Is libfontconfig a deprecated library, or is an update available for it?
#export "DISPLAY=`cat /tmp/$UID/TemporaryItems/display`"
exec "`dirname \"$0\"`/bin/gimp-remote" "$@"
CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
#ps -wx -ocommand | grep -e '[X]11' > dev/null
#if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
# echo "rm -f ~/.xinitrc" > ~/.xinitrc
# sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
#fi
#
#open -a X11 || open -a XDarwin
export "FONTCONFIG_PATH=$CWD/etc/fonts"
exec "$CWD/bin/cache-fonts"
CWD="`dirname \"$0\"`"
TMP=/tmp/$UID/TemporaryItems
#ps -wx -ocommand | grep -e '[X]11' > /dev/null
#if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
# echo "rm -f ~/.xinitrc" > ~/.xinitrc
# sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
#fi
#
#mkdir -p $TMP
#cp -f "$CWD/bin/getdisplay.sh" $TMP
#rm -f $TMP/display
#open-x11 $TMP/getdisplay.sh || \
#open -a XDarwin $TMP/getdisplay.sh || \
#echo "😮" > $TMP/display
#
#while [ "$?" == "0" -a ! -f $TMP/display ]; do sleep 1; done
#export "DISPLAY=`cat $TMP/display`"
#
#ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
cd ~/
exec "$CWD/bin/gimp" "$@"
mkdir ~/templib
mv libfontconfig.1.dylib ~/templib/libfontconfig.1.dylib
mv libfontconfig.1.0.4.dylib ~/templib/libfontconfig.1.0.4.dylib
mv libfontconfig.dylib ~/templib/libfontconfig.dylib
mv Downloads/libs/libfontconfig.1.dylib Applications/Gimp.app/Contents/Resources/lib/libfontconfig.1.dylib
mv Downloads/libs/libfontconfig.1.2.0.dylib /Applications/Gimp.app/Contents/Resources/lib/libfontconfig.1.2.0.dylib
automat wrote:
I have the same problem. 2D plots are fine (even color), but anything 3D or spectral results in the bus error. I had a similar error (inability to plot anything 3D or spectraI, with death by segfault) on my linux machines. The problem occurs due to a patched version of libX11-6. Rolling back to a previous version fixes the problem (documented on the ITTVIS site). Who knows what's causing it in Leopard, although I'd guess they're related as Leopard is using the latest Xorg 7.x codebase.
ITTVIS has released an IDL 6.4.1 patch that is compatible with Leopard's X11, although it's not much help for those stuck on 6.3. If anyone has any information on what the 6.4.1 patch changes, especially how it might be applied to IDL 6.3, please post.
gingeralbert wrote:
sorry michael ive commented out everywhere you say to but all gimp is doing each time is caching fonts then quitting.
mkdir ~/templib
mv libfontconfig.1.dylib ~/templib/libfontconfig.1.dylib
mv libfontconfig.1.0.4.dylib ~/templib/libfontconfig.1.0.4.dylib
mv libfontconfig.dylib ~/templib/libfontconfig.dylib
mv libfreetype.6.dylib ~/templib/libfreetype.6.dylib
mv Downloads/libs/libfontconfig.dylib Applications/Gimp.app/Contents/Resources/lib/libfontconfig.dylib
mv Downloads/libs/libfontconfig.1.dylib Applications/Gimp.app/Contents/Resources/lib/libfontconfig.1.dylib
mv Downloads/libs/libfontconfig.1.1.0.dylib /Applications/Gimp.app/Contents/Resources/lib/libfontconfig.1.1.0.dylib
mv Downloads/libs/libfreetype.6.dylib Applications/Gimp.app/Contents/Resources/lib/libfreetype.6.dylib
curl -LO http://cloud.cs.berkeley.edu/~jeremy/X11/x11_update.sh
sudo sh x11_update.sh
bbyer wrote:
Can you give me a link to this libX11 issue? I couldn't find it on their site.
automat wrote:
ITTVIS has released an IDL 6.4.1 patch that is compatible with Leopard's X11, although it's not much help for those stuck on 6.3. If anyone has any information on what the 6.4.1 patch changes, especially how it might be applied to IDL 6.3, please post.
bbyer wrote:
Not to pick nits, but CoreFoundation has implemented some more-stringent requirements for Leopard, and that is what is causing the incompatibility -- not an X11 issue. (So, for example, using Tiger's X11 wouldn't help here.)
automat wrote:
bbyer wrote:
Can you give me a link to this libX11 issue? I couldn't find it on their site.
The article on the ITTVIS site ( http://www.ittvis.com/services/techtip.asp?ttid=4177) details the libX11 problem and fix in section II. The article indicates that the patches to libX11 originated in Debian (and thus Ubuntu) to fix a buffer overflow error. There is nothing to indicate that the patches have made it upstream in to Xorg proper, although it looks like almost all major distributions have included the patch in their latest X11.
bbyer wrote:
automat wrote:
bbyer wrote:
Can you give me a link to this libX11 issue? I couldn't find it on their site.
The article on the ITTVIS site ( http://www.ittvis.com/services/techtip.asp?ttid=4177) details the libX11 problem and fix in section II. The article indicates that the patches to libX11 originated in Debian (and thus Ubuntu) to fix a buffer overflow error. There is nothing to indicate that the patches have made it upstream in to Xorg proper, although it looks like almost all major distributions have included the patch in their latest X11.
It took a little bit of digging, but that Debian patch made it into X.org here: http://gitweb.freedesktop.org/?p=xorg/lib/libX11.git;a=commit;h=7dc7ef398b6ad90c cd1680ed9cd1cfdd47312f5a
... which fell between X.org's 1.1.1 and 1.1.2 releases. Leopard shipped with 1.1.2 (which had a bad flaw in it, so I've made available a built version of 1.1.3), so that's one bug that should not be responsible for the problems you're seeing.
That's all, carry on. 🙂
Ben
X11 in Leopard