[Pythonmac-SIG] SWIG Install problem.

Louis Pecora pecora at anvil.nrl.navy.mil
Tue Dec 6 22:21:15 CET 2005

I'm trying to install the SWIG

The README says to treat Mac OS X like a Unix (makes sense) and do the 

     % ./configure
     % make
     % make install

./configure  seemed to run ok.  No errors that I could see in the long 
print out.

When I try the first make I get,

louispec% make
make  all-am
depbase=`echo CParse/cscanner.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
if g++ -DHAVE_CONFIG_H     -I../Source/Include -I../Source/CParse 
-I../Source/Include -I../Source/DOH -I../Source/CParse 
-I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g -O2 
-Wall -W -ansi -pedantic -MT CParse/cscanner.o -MD -MP -MF 
"$depbase.Tpo" -c -o CParse/cscanner.o CParse/cscanner.c; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 
1; fi
In file included from CParse/cscanner.c:18:
parser.y:1252: error: parse error before `throw'
parser.y:1266: error: parse error before `throw'
make[2]: *** [CParse/cscanner.o] Error 1
make[1]: *** [all] Error 2
make: *** [source] Error 2
Exit 2

This leaves me baffled.  Anyone know what's wrong?  I checked and the 
Mac uses the GNU make as required.


Lou Pecora

Code 6362
Naval Research Lab
Washington, DC  20375
Ph:  +202-767-6002
email:  pecora at anvil.nrl.navy.mil

More information about the Pythonmac-SIG mailing list