[Expat-bugs] [ expat-Bugs-765227 ] MacOSX build error with Expat 1.95.6 (included with PyXML)

SourceForge.net noreply at sourceforge.net
Wed Aug 27 10:40:23 EDT 2003


Bugs item #765227, was opened at 2003-07-03 06:32
Message generated for change (Comment added) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=765227&group_id=10127

>Category: None
Group: Platform Specific
Status: Open
Resolution: None
>Priority: 7
Submitted By: David Kaasen (davidkaasen)
>Assigned to: Fred L. Drake, Jr. (fdrake)
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: Fred L. Drake, Jr. (fdrake)
Date: 2003-08-27 12:40

Message:
Logged In: YES 
user_id=3066

Bumping priority; this must be fixed for 1.95.7.  I've held
back mostly since I now have reasonable access to a Mac OS X
box, but haven't had time to really do much with it (like
testing Expat!).

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

Comment By: David Kaasen (davidkaasen)
Date: 2003-07-03 06: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