Operating System - HP-UX
1833056 Members
2630 Online
110049 Solutions
New Discussion

Re: understand C messages

 
Kalin Evtimov
Regular Advisor

understand C messages

Hello!

Could anybody tell me what my Problem is:

I get this:

gcc -c -I.. -I../src -I../gd1.3 -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -mlp64 -fPIC -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -O -DVERSION=\"1.000501\" -DXS_VERSION=\"1.000501\" -fPIC "-I/opt/perl_64/lib/5.8.0/IA64.ARCHREV_0-thread-multi-LP64/CORE" -DPERLPATCHLEVEL=8 RRDs.c
In file included from /opt/perl_64/lib/5.8.0/IA64.ARCHREV_0-thread-multi-LP64/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_64/lib/5.8.0/IA64.ARCHREV_0-thread-multi-LP64/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
:7:1: warning: this is the location of the previous definition
*** Error exit code 1

Stop.

__________________________

If I look at the ipc.h, lines 51-56 I can see:

# ifdef _INCLUDE_HPUX_SOURCE
cid_t cid; /* Compartment ID */
# else
int __cpad; /* pad for non-hp code */
# endif /* _INCLUDE_HPUX_SOURCE */
char pad[12];/* room for future expansion */

I dont't understand, why the "parse error" message comes.

Thanks an advance for all answers!


1 REPLY 1
Muthukumar_5
Honored Contributor

Re: understand C messages

May be a compiler problem. Look at this, http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943284
Same problem for perl build.

hth.
Easy to suggest when don't know about the problem!