[ expat-Bugs-445955 ] Make of 1.95.2 fails on MacOS X 10.0.4

noreply@sourceforge.net noreply@sourceforge.net
Sun Sep 23 00:04:06 2001


Bugs item #445955, was opened at 2001-07-30 07:11
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=445955&group_id=10127

Category: Build control
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Greg Stein (gstein)
Summary: Make of 1.95.2 fails on MacOS X 10.0.4

Initial Comment:
expat 1.95.2.tar.gz distribution
On MacOS X 10.0.4 (Darwin 1.3.7) make issues an 
error and halts:

cc -o xmlwf -static xmlwf.o xmlfile.o codepage.o 
unixfilemap.o -L../lib/.libs -lexpat
/usr/bin/ld: can't locate file for: -lcrt
0.o
make[1]: *** [xmlwf] Error 1
ma
ke: *** [xmlwf] Error 2

This does not happen with the older version 1.95.1

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

Comment By: Stuart Bishop (zenzen)
Date: 2001-09-23 00:03

Message:
Logged In: YES 
user_id=46639

xmlwf/Makefile.in seems to want to add the -static 
option to LDFLAGS. This breaks OSX.
Removing the -static flag from LDFLAGS fixes the 
problem and everything appears to build happily.

The configure script correctly detects that this option 
doesn't work under OSX.

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

Comment By: Nat Irons (bumppo)
Date: 2001-08-22 13:23

Message:
Logged In: YES 
user_id=8138

I also see make breaking on xmlwf with 1.95.2 on Mac OS X 10.0.4, but my symptoms are slightly different:

gcc -o xmlwf -static xmlwf.o xmlfile.o codepage.o unixfilemap.o -L../lib/.libs -lexpat
/usr/bin/ld: xmlwf.o incompatible, file contains unsupported type of section 5 (__TEXT,__picsymbol_stub) in load command 0 (must specify "-dynamic" to be used)
/usr/bin/ld: xmlfile.o incompatible, file contains unsupported type of section 4 (__TEXT,__picsymbol_stub) in load command 0 (must specify "-dynamic" to be used)
/usr/bin/ld: unixfilemap.o incompatible, file contains unsupported type of section 4 (__TEXT,__picsymbol_stub) in load command 0 (must specify "-dynamic" to be used)
make[1]: *** [xmlwf] Error 1
make: *** [xmlwf] Error 2

If you'd like to follow up with someone having the first problem, it was also <a href="http://archive.develooper.com/macosx@perl.org/msg00702.html">reported</a> on the perl-macosx list.  Like the original poster, 1.95.1 installs smoothly for me here.

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=445955&group_id=10127