- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ANSI C / Perl /gcc Problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 10:22 PM
тАО04-24-2005 10:22 PM
Re: ANSI C / Perl /gcc Problem
Again, you need a 64bit gcc.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 10:23 PM
тАО04-24-2005 10:23 PM
Re: ANSI C / Perl /gcc Problem
Again, you need a 64bit gcc.
(This time *with* attachment: sometimes the buttons are just too close for comfort :) )
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 10:34 PM
тАО04-24-2005 10:34 PM
Re: ANSI C / Perl /gcc Problem
gcc -c -I.. -I../src -I../gd1.3 -mlp64 -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -O2 -DVERSION=\"1.000491\" -DXS_VERSION=\"1.000491\" -fPIC "-I/opt/perl_64/lib/5.8.3/IA64.ARCHREV_0-thread-multi-LP64/CORE" -DPERLPATCHLEVEL=8 RRDs.c
In file included from /opt/perl_64/lib/5.8.3/IA64.ARCHREV_0-thread-multi-LP64/CORE/perl.h:4109,
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.3/IA64.ARCHREV_0-thread-multi-LP64/CORE/perl.h:4110,
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
*** Error exit code 1
Stop.
gcc should be 64 bit, because I downloaded it from HP( chose gcc 3.4.3 for IA64)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 10:49 PM
тАО04-24-2005 10:49 PM
Re: ANSI C / Perl /gcc Problem
If I go to the spe176 (hp's testdrive) I see
49 unsigned int seq; /* slot usage sequence number */
50 # ifdef _INCLUDE_HPUX_SOURCE
51 cid_t cid; /* Compartment ID */
52 # else
53 int __cpad; /* pad for non-hp code */
54 # endif /* _INCLUDE_HPUX_SOURCE */
55 char pad[12];/* room for future expansion */
56 };
spe176:/house/procura 103 > find /usr/include | xargs grep cid_t
/usr/include/sys/ioctl.h:#define CMPT_GET_ENDPOINT _IOR('c', 2, cid_t) /* End Point compartment */
/usr/include/sys/ioctl.h:#define CMPT_GET_PEER _IOR('c', 3, cid_t) /* Peer compartment */
/usr/include/sys/ipc.h: cid_t cid; /* Compartment ID */
/usr/include/sys/ki.h: krecid_t rec_id; /* 2 record ident */
/usr/include/sys/ki_defs.h:typedef unsigned short krecid_t;
/usr/include/sys/types.h: typedef int32_t cid_t; /* For compartment IDs */
/usr/include/sys/types.h: typedef cid_t cmpt_t;
Exit 1
spe176:/house/procura 104 >
So, cid_t is a int32_t, defined in sys/types.h
and the sem.h case:
90 struct semid_ds {
91 struct ipc_perm sem_perm; /* operation permission struct *
/
92 struct __sem *sem_base; /* ptr to first semaphore in set
*/
93 __time_t sem_otime; /* last semop time */
You have arrived at the point of a classical dilemma. Either `fix' the sources to find all the missing defines, or start from scratch by building your own gcc from src, at from which point it better adapts to your system.
Both are time consuming and can lead to Yak-shaving ( http://www.ai.mit.edu/lab/gsb/gsb-archive/gsb2000-02-11.html )
If you go down the track of rebuilding gcc from scratch, my scripts /might/ help you ( http://mirrors.develooper.com/hpux/#Gcc ) modify them for IA64
Then of course you could see if you are missing recent system patches in the C development area.
Enjoy, Have FUN! H.Merijn [ who on his own systems loves these problems as they reveal where the developers lost touch with reality ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 10:57 PM
тАО04-24-2005 10:57 PM
Re: ANSI C / Perl /gcc Problem
I already found your page, it's cool :)
Thank you once again!
- « Previous
-
- 1
- 2
- Next »