- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gcc parse error on HPUX11.11
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
Forums
Discussions
Discussions
Discussions
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
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
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
- 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
- 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
- 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
- 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