PyXML Building on OS X?

Martin v. Loewis martin at v.loewis.de
Tue Sep 24 07:48:40 CEST 2002


Jarrett Wold <jwold at min.midco.net> writes:

> extensions/expat/lib/xmlparse.c:3056: warning: `regparm' attribute directive
> ignored

I see. Please edit internal.h to replace

#if defined(__GNUC__)
#define FASTCALL __attribute__((stdcall, regparm(3)))
#elif defined(WIN32)
#define FASTCALL __fastcall
#else
#define FASTCALL
#endif

with

#define FASTCALL

> cc -L/sw/lib -bundle -flat_namespace -undefined suppress
> build/temp.darwin-5.5-Power Macintosh-2.2/pyexpat.o
> build/temp.darwin-5.5-Power Macintosh-2.2/xmlparse.o
> build/temp.darwin-5.5-Power Macintosh-2.2/xmlrole.o
> build/temp.darwin-5.5-Power Macintosh-2.2/xmltok.o -o
> build/lib.darwin-5.5-Power Macintosh-2.2/_xmlplus/parsers/pyexpat.so
> -flat_namespace
> /usr/bin/ld: -undefined: unknown argument: -lbundle1.o
> error: command 'cc' failed with exit status 1

Very strange. Can you please invoke

cc -L/sw/lib -bundle -flat_namespace -undefined suppress
build/temp.darwin-5.5-Power Macintosh-2.2/pyexpat.o
build/temp.darwin-5.5-Power Macintosh-2.2/xmlparse.o
build/temp.darwin-5.5-Power Macintosh-2.2/xmlrole.o
build/temp.darwin-5.5-Power Macintosh-2.2/xmltok.o -o
build/lib.darwin-5.5-Power Macintosh-2.2/_xmlplus/parsers/pyexpat.so -v

on the command line, and report the output?

Regards,
Martin




More information about the Python-list mailing list