[Expat-bugs] [ expat-Bugs-765227 ] MacOSX build error with Expat
1.95.6 (included with PyXML)
SourceForge.net
noreply at sourceforge.net
Thu Jul 3 04:59:58 EDT 2003
Bugs item #765227, was opened at 2003-07-03 12:32
Message generated for change (Comment added) made by davidkaasen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=765227&group_id=10127
Category: Build control
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Submitted By: David Kaasen (davidkaasen)
Assigned to: Greg Stein (gstein)
Summary: MacOSX build error with Expat 1.95.6 (included with PyXML)
Initial Comment:
I had trouble with the expat 1.95.6 that is included
with PyXML
0.8.2 on MacOSX 10.2.6. The build of PyXML gave error
messages
(but didn't halt) when compiling xmltok.c. It appears to be
problems with the macros FASTCALL, PTRCALL and PTRFASTCALL
in internal.h. Defining these to nothing made the
compile succeed.
Here is the diff output:
*** PyXML-0.8.2/extensions/expat/lib/internal.h~
Sat Jan 25 12:18:09 2003
--- PyXML-0.8.2/extensions/expat/lib/internal.h Thu Jul
3 11:12:36 2003
***************
*** 27,33 ****
--- 27,36 ----
and let's try this:
*/
+ /* It doesn't work on MacOSX (__MACH__ and __APPLE__
== MacOSX). */
+ #if !(defined(__MACH__) && defined(__APPLE__))
#define FASTCALL __attribute__((regparm(3)))
#define PTRCALL
#define PTRFASTCALL __attribute__((regparm(3)))
+ #endif /* Not MacOSX */
#elif defined(WIN32)
----------------------------------------------------------------------
>Comment By: David Kaasen (davidkaasen)
Date: 2003-07-03 12:59
Message:
Logged In: YES
user_id=20933
I should have mentioned that I am using Fink and Fink's Python
distribution. Using /usr/bin/python instead only gives warnings,
but then, there are problems with LDFLAGS containing "-arch
i386" in
/usr/lib/python2.2/config/Makefile. If that string is
removed from
LDFLAGS, everything seems to go well.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=765227&group_id=10127
More information about the Expat-bugs
mailing list