- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How can I resolve "cid_t" and "msg_perm'" error
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
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
тАО10-10-2007 02:49 PM
тАО10-10-2007 02:49 PM
When I compile a pro*c program,It happens errors:
...........
/usr/include/sys/ipc.h:51: error: parse error before "cid_t"
/usr/include/sys/ipc.h:56: error: parse error before '}' token
...........
/usr/include/sys/msg.h:93: error: field `msg_perm' has incomplete type
MY Program s Environment:
machine : ia64 hp server rx4640
OS info:
sysname = HP-UX
release = B.11.23
>gcc -v
Reading specs from /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.2/specs
Configured with: /scratch/njs/pkgbuild/3.3.1/hpux-11/gcc-3.4.2/configure --enable-languages=c,c++ --enable-threads=posix --with-gnu-as --without-gnu-ld --with-as=/usr/local/bin/as --prefix=/usr/local
Thread model: posix
gcc version 3.4.2
I hope somebody can help me.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 03:40 PM
тАО10-10-2007 03:40 PM
Re: How can I resolve "cid_t" and "msg_perm'" error
Does your program work with HP's bundled C compiler after you remove your SQL stuff?
Does it work with gcc?
Can you created a .i file with -E? (Then look at line 51 in ipc.h.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 05:00 PM
тАО10-10-2007 05:00 PM
Solutioninstalled? In some cases, this can cause
problems with the header files. (New header
files for the OS, but old ones for GCC.)
Re-installing GCC should fix the problem (if
that is the problem).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 05:47 PM
тАО10-10-2007 05:47 PM
Re: How can I resolve "cid_t" and "msg_perm'" error
installed?
Rats I thought those errors looked familiar. I was going to search but forgot. Here some threads that show the same errors:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1124801
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1135635
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 06:09 PM
тАО10-10-2007 06:09 PM
Re: How can I resolve "cid_t" and "msg_perm'" error
Actual research? Whoa. I just assume that
any complaints about any header files are
caused by the one thing which bit me once.
If nothing else, rebuilding GCC takes so much
time that you can look into many other
possibilities while it's working on that job.
(As a general rule, wherever I find a GCC
binary kit, I don't trust it any further than
using it to build GCC from a source kit.
Call me skeptical. Then the only problem is
remembering to do it all again after anything
happens to change the system header files.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 08:43 PM
тАО10-10-2007 08:43 PM
Re: How can I resolve "cid_t" and "msg_perm'" error
It makes with gcc,complete error info is:
gcc -g -I. -I/oracle/app/oracle/product/9.2.0/precomp/public -c aa.c
In file included from /usr/include/sys/msg.h:44,
from stdhead.h:29,
from pubfunc.h:20,
from aa.h:27,
from aa.pc:21:
/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 stdhead.h:29,
from pubfunc.h:20,
from aa.h:27,
from aa.pc:21:
/usr/include/sys/msg.h:93: error: field `msg_perm' has incomplete type
aa.pc:596:2: warning: no newline at end of file
*** Error exit code 1
Proc program makes error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 09:36 PM
тАО10-10-2007 09:36 PM
Re: How can I resolve "cid_t" and "msg_perm'" error
# 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 */
};
# define _IPCPERM_T
",
line 51 is:cid_t cid;
line 56 is:};
Thanks all!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2007 11:39 PM
тАО10-10-2007 11:39 PM
Re: How can I resolve "cid_t" and "msg_perm'" error
You have to capture stdout.
>Then I check the ipc.h file
You have to compare the ipc.h file with the fragment in the preprocessed file.
Did you take a look at the links I gave or what Steven suggested?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2007 02:24 PM
тАО10-14-2007 02:24 PM
Re: How can I resolve "cid_t" and "msg_perm'" error
I make this program with "gcc version 4.0.4",then success!
Thanks All!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2007 02:28 PM
тАО10-14-2007 02:28 PM