compiling the RRDtool

I tried to compile the RRDtool on HP-UX (IA56). I have gcc-3.4.3 and perl 5.8.0
I got this:

Writing Makefile for RRDs
cd perl-shared && make
/opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.0/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv RRDs.xsc RRDs.c
gcc -c -I.. -I../src -I../gd1.3 -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -DVERSION=\"1.000491\" -DXS_VERSION=\"1.000491\" -fPIC "-I/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE" -DPERLPATCHLEVEL=8 RRDs.c
In file included from /opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h:3950,
from RRDs.xs:6:
/usr/include/sys/ipc.h:51: error: parse error before "cid_t"
/usr/include/sys/ipc.h:56: error: parse error before '}' token
In file included from /opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h:3951,
from RRDs.xs:6:
/usr/include/sys/sem.h:91: error: field `sem_perm' has incomplete type
In file included from ../src/rrd_tool.h:24,
from RRDs.xs:13:
../config.h:191:1: warning: "VERSION" redefined
<command line>:7:1: warning: this is the location of the previous definition
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Where is the problem now, in the gcc or in the perl...I have no idea..
Thank you.

i dont know the answer, and since you havent gotten a response in a few days, Id say go post this question on the HPUX forums.

http://itrc.hp.com they have many HP gurus who might be able to help.

Thank you.
I'm coming slowly forward with HP-UX, but I find Linux more friendly...