Subject: | Solaris-Procfs 0.21 build failure with perl 5.8.0 |
Hi,
Getting build error for Solaris-Procfs 0.21 on Solaris 2.6 with perl 5.8.0 and gcc 3.1
Operating System:
SunOS 5.6 Generic_105181-30 sun4u sparc SUNW,Ultra-Enterprise
Compiler:
gcc -v
Reading specs from /sbcimp/run/pd/gcc/3.1/lib/gcc-lib/sparc-sun-solaris2.6/3.1/specs
Configured with: /sbcimp/build/pd/gcc/gcc-3.1/configure --prefix=/sbcimp/run/pd/gcc/3.1 --enable-languages=c++ --enable-threads=solaris
Thread model: solaris
gcc version 3.1
Perl:
perl -v
This is perl, v5.8.0 built for sun4-solaris
Make failure:
/sbcimp/run/pd/perl/5.8.0/bin/perl /sbcimp/run/pd/perl/5.8.0/lib/ExtUtils/xsubpp
-typemap /sbcimp/run/pd/perl/5.8.0/lib/ExtUtils/typemap Procfs.xs > Procfs.xsc && mv Procfs.xsc Procfs.c
gcc -c -Iinclude -fno-strict-aliasing
-I/sbcimp/run/pd/gdbm/1.8.0/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.21\" -DXS_VERSION=\"
0.21\" -fPIC "-I/sbcimp/run/pd/perl/5.8.0/lib/CORE" -D__SunOS_5_6 -D_FILE_OFFSET_BITS=32 Procfs.c
<command line>:1:1: warning: "_FILE_OFFSET_BITS" redefined
<command line>:1:1: warning: this is the location of the previous definition
Procfs.c: In function `XS_Solaris__Procfs__hello':
Procfs.c:937: `SP' undeclared (first use in this function)
Procfs.c:937: (Each undeclared identifier is reported only once
Procfs.c:937: for each function it appears in.)
Procfs.c: In function `XS_Solaris__Procfs__sigact':
Procfs.c:953: `SP' undeclared (first use in this function)
Procfs.c: In function `XS_Solaris__Procfs__status':
Procfs.c:979: `SP' undeclared (first use in this function)
Procfs.c: In function `XS_Solaris__Procfs__prcred':
Procfs.c:1005: `SP' undeclared (first use in this function)
Procfs.c: In function `XS_Solaris__Procfs__psinfo':
... lots
Any tips on how to fix much appreciated.
Thanks