Front page | perl.macosx |
Postings from August 2001
Compiling expat for OSX
Thread Next
From:
Paul McCann
Date:
August 21, 2001 21:47
Subject:
Compiling expat for OSX
Message ID:
B7A97026.50A6%pmccann@maths.adelaide.edu.au
Hi,
in a fit of XML fever I tried to install XML::Parser on my OSX machine
(running 10.0.4 with the standard 5.6.0 perl that came with the original
OS). To install XML::Parser you first need to install expat, and here's
where my trouble arose. I downloaded 1.95.2 from
http://sourceforge.net/projects/expat/
Using the naïve "./configure", "make", and hopefully "sudo make install"
mantra we get the following results:
"./configure" seems happy, and knows who we are...
[checking host system type... powerpc-apple-darwin1.3.7]
But "make" ends with something of a bang: its mercifully short death throes
are pasted below. Anyone care to suggest some switches that might be used to
caress/flog the Makefile into submission? Thanks in advance for any help, as
searching for hints via google has left me utterly clueless.
Cheers,
Paul
--------------------------------------------------------------------------
% make
cd lib && make
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"'
-DVERSION='"expat_1.95.2"' -I. -I. -I.. -g -O2 -Wall -Wmissing-prototypes
-Wstrict-prototypes -fexceptions -c xmlparse.c
gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I.
-I.. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c
xmlparse.c -o xmlparse.o
echo timestamp > xmlparse.lo
/bin/sh ../libtool --mode=link gcc -version-info 1:0:1 -g -O2 -Wall
-Wmissing-prototypes -Wstrict-prototypes -fexceptions -o libexpat.la -rpath
/usr/local/lib xmlparse.lo xmltok.lo xmlrole.lo
rm -fr .libs/libexpat.la .libs/libexpat.* .libs/libexpat.*
ar cru .libs/libexpat.a xmlparse.o xmltok.o xmlrole.o
ranlib .libs/libexpat.a
creating libexpat.la
(cd .libs && rm -f libexpat.la && ln -s ../libexpat.la libexpat.la)
~/src/expat-1.95.2/lib/.libs
cd xmlwf && make
gcc -o xmlwf -static xmlwf.o xmlfile.o codepage.o unixfilemap.o
-L../lib/.libs -lexpat
/usr/bin/ld: can't locate file for: -lcrt0.o
make[1]: *** [xmlwf] Error 1
make: *** [xmlwf] Error 2
Thread Next
-
Compiling expat for OSX
by Paul McCann