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

noreply@sourceforge.net noreply@sourceforge.net
Fri May 31 19:27:02 2002


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

Category: Build control
>Group: Third-party Bug
>Status: Closed
>Resolution: Invalid
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: Fred L. Drake, Jr. (fdrake)
Date: 2002-05-31 22:26

Message:
Logged In: YES 
user_id=3066

We no longer use -static in Expat 1.95.3, but rely on libtool.  Once libtool 
works on Mac OS X, everything will be happy.

Reclassifying this 
as a 3rd-party bug (libtool on Mac OS X).

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

Comment By: Nobody/Anonymous (nobody)
Date: 2001-12-18 08:32

Message:
Logged In: NO 

When not done ./configure, change xmlwf/Makefile.in as 
follows. ( If configure has done, change xmlwf/Makefile )

#LDFLAGS= -static
LDFLAGS= -dynamic


I can build successfull and works well.
--
Ran Hamada




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

Comment By: Nobody/Anonymous (nobody)
Date: 2001-12-05 22:46

Message:
Logged In: NO 

I made the fix Zenzen suggested and it failed again.  If
this happens check xmlwf/Makefile also for the -static flag
in LDFLAGS.

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

Comment By: Max Horn (fingolfin)
Date: 2001-10-31 16:47

Message:
Logged In: YES 
user_id=12935

I can only agree with zenzen, this should be easy enough to fix with a check in configure.in

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

Comment By: Stuart Bishop (zenzen)
Date: 2001-09-23 03: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 16: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