- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compilation using gcc 3.3 on HP-UX Itanium fails
Operating System - HP-UX
1752758
Members
5116
Online
108789
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-09-2009 02:27 AM
12-09-2009 02:27 AM
Compilation using gcc 3.3 on HP-UX Itanium fails
We have a simple c code which includes “time.h” and “pthread.h”.
bash-3.2$ /usr/local/bin/gcc-3.3 -c a.c
In file included from /usr/include/time.h:12,
from a.c:3:
/usr/include/sys/_time.h:56: error: syntax error before "extern"
In file included from /usr/include/time.h:12,
from a.c:3:
/usr/include/sys/_time.h:173: error: parse error before "int"
In file included from a.c:3:
/usr/include/time.h:20: error: parse error before "_BEGIN_EXT_CDECL"
In file included from a.c:3:
/usr/include/time.h:59: error: syntax error before "extern"
In file included from a.c:4:
/usr/local/lib/gcc-lib/ia64-hp-hpux11.22/3.3/include/stdarg.h:105: error: syntax error before "typedef"
In file included from /usr/include/pthread.h:16,
from a.c:5:
/usr/include/sys/pthread.h:591: error: parse error before '*' token
/usr/include/sys/pthread.h:591: error: parse error before ')' token
/usr/include/sys/pthread.h:795: error: parse error before '*' token
bash-3.2$ /usr/local/bin/gcc-3.3 -c a.c
In file included from /usr/include/time.h:12,
from a.c:3:
/usr/include/sys/_time.h:56: error: syntax error before "extern"
In file included from /usr/include/time.h:12,
from a.c:3:
/usr/include/sys/_time.h:173: error: parse error before "int"
In file included from a.c:3:
/usr/include/time.h:20: error: parse error before "_BEGIN_EXT_CDECL"
In file included from a.c:3:
/usr/include/time.h:59: error: syntax error before "extern"
In file included from a.c:4:
/usr/local/lib/gcc-lib/ia64-hp-hpux11.22/3.3/include/stdarg.h:105: error: syntax error before "typedef"
In file included from /usr/include/pthread.h:16,
from a.c:5:
/usr/include/sys/pthread.h:591: error: parse error before '*' token
/usr/include/sys/pthread.h:591: error: parse error before ')' token
/usr/include/sys/pthread.h:795: error: parse error before '*' token
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2009 02:26 PM
12-09-2009 02:26 PM
Re: Compilation using gcc 3.3 on HP-UX Itanium fails
> [...] gcc 3.3 [...]
Not a very complete description of the
compiler, where you got it, how you installed
it, whether it ever worked, ...
> [...] HP-UX Itanium [...]
Not a very complete description of the
system.
> We have a simple c code [...]
Simple, but invisible.
Around here:
dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license
dyi # gcc -v
Using built-in specs.
Target: ia64-hp-hpux11.31
Configured with: ../gcc-4.3.3/configure
Thread model: posix
gcc version 4.3.3 (GCC)
(I built mine from the source.)
dyi # cat a.c
#include
#include
int main( void)
{
}
dyi # gcc -c a.c
dyi #
Knowing nothing, I'd guess that either your
system header files are corrupt (which seems
unlikely) or else there's something wrong
with your GCC installation.
Not a very complete description of the
compiler, where you got it, how you installed
it, whether it ever worked, ...
> [...] HP-UX Itanium [...]
Not a very complete description of the
system.
> We have a simple c code [...]
Simple, but invisible.
Around here:
dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license
dyi # gcc -v
Using built-in specs.
Target: ia64-hp-hpux11.31
Configured with: ../gcc-4.3.3/configure
Thread model: posix
gcc version 4.3.3 (GCC)
(I built mine from the source.)
dyi # cat a.c
#include
#include
int main( void)
{
}
dyi # gcc -c a.c
dyi #
Knowing nothing, I'd guess that either your
system header files are corrupt (which seems
unlikely) or else there's something wrong
with your GCC installation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2009 03:09 PM
12-10-2009 03:09 PM
Re: Compilation using gcc 3.3 on HP-UX Itanium fails
Your GNU headers likely don't match the system headers.
You may try Steve's mkheaders from this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1156581
You may try Steve's mkheaders from this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1156581
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP