Leopard 9F33: X11 libXaw (-lXaw) missing libXaw.la file

Originator:mledford
Number:rdar://6498632 Date Originated:15-Jan-2009 05:46 AM
Status:Closed Resolved:24-Jun-2010 07:25 PM
Product:Developer Tools Product Version:Leopard 10.5.5 (9F33) / Xcode 3.0
Classification:Other Bug Reproducible:Always
 
Leopard 9F33: X11 libXaw (-lXaw) missing libXaw.la file

Summary: 
When compiling software that requires libXaw and the linker flag -lXaw is used with libtool the dependancies are not found because the libXaw.la file does not exist.

Steps to Reproduce:

You will need to make sure that you have developer tools installed and the X11 package found on the Leopard installation disk. I'm not sure if installation order matters but I installed Mac OS X, then Xcode, Mac OS X updates to 10.5.5, then X11 from the installation disk.

The best way to demonstrate this is with a small open source application called gpsd. First download revision 5001 from gpsd's subversion repository. Here are the commands to checkout the code and build it.

$ svn checkout -r 5001 http://svn.berlios.de/svnroot/repos/gpsd/trunk gpsd
$ cd gpsd
$ export LIBTOOL=glibtool
$ export LIBTOOLIZE=glibtoolize
$ sh ./autogen.sh
$ make


Expected Results:

I would expect for it to compile cleanly and not fail.


Actual Results:

The compile failed. Because this configure is setup to search for libraries explicitly the first one it looks for is Xaw, it is found. It then fails as you see during the build because libtool didn't know about other dependancies it would normally find in the libXaw.la file and place them on the build line command.


Regression:

Revision 5002 of the gpsd repository works around this by changing the order the libraries are searched for placing it in the following order: libXaw8, libXaw7, and then libXaw last.


Solution:

Create a symlink from /usr/X11/lib/libXaw.la -> /usr/X11/lib/libXaw8.la

Comments

Resolution Information

Apple resolved this in Snow Leopard by removing the .la files.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!