PDA

View Full Version : Fixing bug in x11.app libraries


wgscott
01-26-2003, 08:22 PM
From Fink's front page:


While Apple's X11 works just fine with existing binaries, it has a bug in the install name of the libraries that can cause some software to build incorrectly, and will break forward-compatibility with future X11 releases.

Ben Hines has created a script (available here) that you can use that will fix the install_name entries in Apple's X11 libraries, but it will not repair software you have already built against the broken libraries.


http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/fink/fix-fink/install_name_fix.pl

sao
01-26-2003, 10:49 PM
wgscott,

Thanks for the info. From the fink-devel lists:

--------------------------

"This script changes apple's dylib install names to be libNAME.major.dylib rather than libNAME.major.minor.dylib.

Apple's X11 is improperly linked (already a known issue -- but still broken in the current beta). Libraries have an install_name that points to the *full* name of the file, instead of the compatibility name (ie, libX11.6.2.dylib instead of libX11.6.dylib) so when libX11 changes to 6.3, any libraries or binaries that linked against the old version will break.

This script edits the libraries so that they have a correct install_name".

-------------------------

The reponse from Apple via Haroon Sheikh (Manager Graphics Software, Apple Computer, Inc.) has been:

<<We are looking into this issue and hope to have it resolved in the next public release of X11ForMacOSX (no comments on when that will be).>>

sao
01-27-2003, 08:26 AM
If you run the script, you should get something like this:

% sudo libby
Password:
fixing libapplexp.1.0.dylib references...
fixing libdps.1.0.dylib references...
fixing libdpstk.1.0.dylib references...
fixing libfreetype.6.2.dylib references...
fixing libGL.1.2.dylib references...
fixing libGLU.1.3.dylib references...
fixing libICE.6.3.dylib references...
fixing liboldX.6.0.dylib references...
fixing libpsres.1.0.dylib references...
fixing libSM.6.0.dylib references...
fixing libX11.6.2.dylib references...
fixing libXaw.6.1.dylib references...
fixing libXaw.7.0.dylib references...
fixing libXext.6.4.dylib references...
fixing libXfont.1.4.dylib references...
fixing libXft.1.1.dylib references...
fixing libXi.6.0.dylib references...
fixing libXmu.6.2.dylib references...
fixing libXmuu.1.0.dylib references...
fixing libXp.6.2.dylib references...
fixing libXrandr.1.0.dylib references...
fixing libXrender.1.1.dylib references...
fixing libXt.6.0.dylib references...
fixing libXTrap.6.4.dylib references...
fixing libXtst.6.1.dylib references...