[XML-SIG] problem compiling pyexpat.c with Irix 6 cc

Wayne Boucher wb104@mole.bio.cam.ac.uk
Tue, 6 Jun 2000 14:49:37 +0100 (BST)


Hello,

Hopefully a bug not reported too often.  I am compiling lots of Python
libraries with the Irix 6 MIPSpro Compiler Version 7.30.  In pyexpat.c in
the PyXML-0.5.4 distribution at line 82 there is a forward declaration

static struct HandlerInfo handler_info[]; 

which the compiler does not like, the output to the screen is:

Running command: make
        cc -Iexpat/xmlparse -O -OPT:Olimit=0
-I/dogmatix/wb104/python/Python-1.5.2/include/python1.5
-I/dogmatix/wb104/python/Python-1.5.2/include/python1.5 -DHAVE_CONFIG_H -c
./pyexpat.c cc-1081 cc: ERROR File = ./pyexpat.c, Line = 82
  More than one storage class specifier appears in a declaration. 

  extern static struct HandlerInfo handler_info[]; 
         ^

1 error detected in the compilation of "./pyexpat.c". 


I re-arranged the code and used some other forward declarations to
eventually compile the code.

Wayne Boucher