I decided to roll up my sleeves this weekend and delve into the XS stuff. I
read through the docs, and then immediately tried to get HTML-Parser 3.18 to
compile. Lots of errors - obviously too much, too soon. So I back-pedaled
and tried one of the examples (String-CRC32) from the tutorial. No luck -
same type of errors. Using the MPW sheet supplied for Codewarrior MPW I get
a bunch of errors regarding "macro 'variable name' redefined". Example
output listed below. Anyone have any idea what I'm doing wrong?

Thanks, Todd

 Set Echo 1
 NewFolder Obj
 Set MPSrc "Disk2:MacPerl_Src"
 Set Name "CRC32"
 perl -I Disk2:MacPerl_Src:perl:lib:
Disk2:MacPerl_Src:perl:lib:ExtUtils:xsubpp -noprototypes CRC32.xs > xstmp.c
 Rename -y xstmp.c :CRC32.c
 Set SrcPPC ":CRC32.c"
 MWCPPC -nosyspath -sym on -d MULTIPLICITY -w off -relax_pointers -i- -i :
-i "Disk2:MacPerl_Src:sfio:"include: -i "Disk2:MacPerl_Src:GUSI:"include: -i
"Cellwall:Applications (Mac OS 9):Metrowerks CodeWarrior 6.0:CodeWarrior
MPW:MPW::Interfaces&Libraries:Interfaces:CWCIncludes:,Cellwall:Applications
(Mac OS 9):Metrowerks CodeWarrior 6.0:CodeWarrior
MPW:MPW::Interfaces&Libraries:Interfaces:CWANSIIncludes:,Cellwall:Applicatio
ns (Mac OS 9):Metrowerks CodeWarrior 6.0:CodeWarrior
MPW:MPW::Interfaces&Libraries:Interfaces:CIncludes:" -i
Disk2:MacPerl_Src:perl: -w nopossible -opt all -t -ext .PPC.o :CRC32.c -o
:Obj:
### MWCPPC Compiler Error:
#    #define va_copy(to,fr) ((to)=(fr)) /* copy va_list fr -> to */
#                     ^
#   macro 'va_copy' redefined
#----------------------------------------------------------
    File "Disk2:MacPerl_Src:sfio:include:ast_common.h"; Line 102
#    while compiling "Disk2:MacPerl_Src:perl:ext:String-CRC32-1.2:CRC32.c"
#----------------------------------------------------------
### MWCPPC Compiler Error:
#    #define EIO   5  /* Input/output error */
#                                            ^
#   macro 'EIO' redefined
#----------------------------------------------------------
    File "Disk2:MacPerl_Src:GUSI:include:sys/errno.h"; Line 51
#    while compiling "Disk2:MacPerl_Src:perl:ext:String-CRC32-1.2:CRC32.c"
#----------------------------------------------------------
### MWCPPC Compiler Error:
#    #define EBADF   9  /* Bad file descriptor */
#                                               ^
#   macro 'EBADF' redefined
#----------------------------------------------------------
    File "Disk2:MacPerl_Src:GUSI:include:sys/errno.h"; Line 55
#    while compiling "Disk2:MacPerl_Src:perl:ext:String-CRC32-1.2:CRC32.c"
#----------------------------------------------------------

[...] snip out 6 other macro 'variable name' redefined

Errors caused tool to abort.
### MPW Shell - Execution of input terminated.



-- 
Todd Richmond                    http://cellwall.stanford.edu/todd
Carnegie Institution             email: [EMAIL PROTECTED]
Department of Plant Biology      fax: 1-650-325-6857
260 Panama Street                phone: 1-650-325-1521 x431
Stanford, CA 94305

Reply via email to