- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- Languages and Scripting
- >
- Re: gcc parse error on HPUX11.11
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
05-23-2002 04:44 AM
05-23-2002 04:44 AM
gcc parse error on HPUX11.11
#include
I use the precompiled gcc from HPUX Porting Archive
gcc version 3.0.4
hppa2.0n-hp-hpux11.00
Im runing this gcc on a system with HPUX11.11(64bit).
Compiling this one line gives:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:484: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:486: parse error before "bsize_t"
If i add a -I/usr/include option things compile without any error.
It seems that the sys/types.h which was fixed for the gcc 11.0 version (in /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.4/include) is broken for 11.11.
Seems to be a FAQ but found no solution so far. Most helpful (but also no solution) was
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbbc9996c5988d5118ff10090279cd0f9,00.html
Any suggestions. Would i need a special fixed sys/types.h for HPUX11.11 or could it be save to just delete the fixed file and use the normal one (which is /usr/include/sys/types.h)?
Hartmut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2002 09:44 PM
05-23-2002 09:44 PM
Re: gcc parse error on HPUX11.11
Now the problem is how to build the hppa1.1-hp-hpux11.11 version. I only have the precompiled hppa2.0n-hp-hpux11.00 version from the HPUX Porting archive.
Using it the build of gcc will fail with parse error around size_t in file libiberty/floatformat.c
So i compiled this file adding a -I/usr/include option by hand. Now the rest of the build works without any problems.
The newly build gcc is a "gcc version 3.0.4 Configured with: ./configure --host=hppa1.1-hp-hpux11.11".
Using this gcc my socket.h parse error problem is solved.
Another way propably would have been to download the precompiled hpux11.11 version of gcc 3.0.2 from HP developer portal:
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html
(But i prefer the /opt/gcc installations from the HPUX Porting and Archive Centre:
http://hpux.cs.utah.edu/)
Any further comments on this are very welcome!
Hartmut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-24-2002 12:58 AM
05-24-2002 12:58 AM
Re: gcc parse error on HPUX11.11
have you tried the "official" gcc from HP? It's located in the Linux Porting Kit. Originally designed for porting programs from linux to HP-UX. You will find here any userfull linux tool like bash, tcpwrapper ...
Look at http://devresource.hp.com/LPK/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-24-2002 01:18 AM
05-24-2002 01:18 AM
Re: gcc parse error on HPUX11.11
thanks, i will look into it!
Hartmut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-22-2003 04:50 AM
12-22-2003 04:50 AM
Re: gcc parse error on HPUX11.11
/usr/include/sys/socket.h:484: syntax error before "sendfile"
/usr/include/sys/socket.h:485: syntax error before "bsize_t"
/usr/include/sys/socket.h:486: syntax error before "sendpath"
/usr/include/sys/socket.h:487: syntax error before "bsize_t"
...
The 11i Version from the Linux Porting Kit taken from the above link worked perfectly for me.
Thanks a lot.
Regards Michael
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP