- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem compiling with gcc on 11i
Operating System - HP-UX
1748219
Members
4241
Online
108759
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
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
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
тАО10-06-2004 03:12 PM
тАО10-06-2004 03:12 PM
Problem compiling with gcc on 11i
I think this is a problem with gcc on HPUX 11i. I'm trying to ultimately compile DBI, DBD-Oracle, Apache 2.0.51, mod_perl2, etc. This is on an rp5470 running 11.11.
I'm using the gcc 3.3.3/binutils 2.15 from the HP DSPP (the depots), and a Perl 5.8.1 from H Merijn's site.
When I try to compile DBD-Oracle, the make produces this output:
gcc -c -I/u01/app/oracle/product/8.1.7/rdbms/demo -I/u01/app/oracle/pro
duct/8.1.7/rdbms/public -I/u01/app/oracle/product/8.1.7/plsql/public -I/u01/app/
oracle/product/8.1.7/network/public -I/u01/app/oracle/product/8.1.7/rdbms/demo -
I/u01/app/oracle/product/8.1.7/rdbms/public -I/u01/app/oracle/product/8.1.7/rdbm
s/demo -I/opt/perl/lib/site_perl/5.8.1/PA-RISC2.0/auto/DBI -mpa-risc-2-0 -D_HPU
X_SOURCE -DDEBUGGING -fno-strict-aliasing -I/pro/local/include -D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -g -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fP
IC "-I/opt/perl/lib/5.8.1/PA-RISC2.0/CORE" -DUTF8_SUPPORT Oracle.c
In file included from /opt/perl/lib/5.8.1/PA-RISC2.0/CORE/perl.h:709,
from /opt/perl/lib/site_perl/5.8.1/PA-RISC2.0/auto/DBI/DBIXS.h:
19,
from Oracle.h:18,
from Oracle.xs:1:
/usr/include/sys/socket.h:64: error: conflicting types for `sbsize_t'
/web/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/include/sys/types.h:196: erro
r: previous declaration of `sbsize_t'
/usr/include/sys/socket.h:65: error: conflicting types for `bsize_t'
/web/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/include/sys/types.h:197: erro
r: previous declaration of `bsize_t'
*** Error exit code 1
Stop.
This also occurred when I tried to rebuild DBI, same type of message indicating previous declaration of bsize_t.
There was an older version of gcc and perl on this machine earlier, but I uninstalled them. Am I using the wrong version of gcc or gmake or something?
Any help would be appreciated.
I'm using the gcc 3.3.3/binutils 2.15 from the HP DSPP (the depots), and a Perl 5.8.1 from H Merijn's site.
When I try to compile DBD-Oracle, the make produces this output:
gcc -c -I/u01/app/oracle/product/8.1.7/rdbms/demo -I/u01/app/oracle/pro
duct/8.1.7/rdbms/public -I/u01/app/oracle/product/8.1.7/plsql/public -I/u01/app/
oracle/product/8.1.7/network/public -I/u01/app/oracle/product/8.1.7/rdbms/demo -
I/u01/app/oracle/product/8.1.7/rdbms/public -I/u01/app/oracle/product/8.1.7/rdbm
s/demo -I/opt/perl/lib/site_perl/5.8.1/PA-RISC2.0/auto/DBI -mpa-risc-2-0 -D_HPU
X_SOURCE -DDEBUGGING -fno-strict-aliasing -I/pro/local/include -D_LARGEFILE_SOUR
CE -D_FILE_OFFSET_BITS=64 -g -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fP
IC "-I/opt/perl/lib/5.8.1/PA-RISC2.0/CORE" -DUTF8_SUPPORT Oracle.c
In file included from /opt/perl/lib/5.8.1/PA-RISC2.0/CORE/perl.h:709,
from /opt/perl/lib/site_perl/5.8.1/PA-RISC2.0/auto/DBI/DBIXS.h:
19,
from Oracle.h:18,
from Oracle.xs:1:
/usr/include/sys/socket.h:64: error: conflicting types for `sbsize_t'
/web/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/include/sys/types.h:196: erro
r: previous declaration of `sbsize_t'
/usr/include/sys/socket.h:65: error: conflicting types for `bsize_t'
/web/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/include/sys/types.h:197: erro
r: previous declaration of `bsize_t'
*** Error exit code 1
Stop.
This also occurred when I tried to rebuild DBI, same type of message indicating previous declaration of bsize_t.
There was an older version of gcc and perl on this machine earlier, but I uninstalled them. Am I using the wrong version of gcc or gmake or something?
Any help would be appreciated.
- Tags:
- gcc
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 06:44 PM
тАО10-06-2004 06:44 PM
Re: Problem compiling with gcc on 11i
It's not the same message tha triggers me to tell people to install the right gcc. You probably did.
FWIW the latest versions you can get from my site are perl-5.8.5 (including DBI-1.43) and gcc-3.4.2.
I more suspect a strange incompatibility with the standard include files, as if the patchlevel of HP-UX is rather old, or you didn't have recent enough include files installed.
I think/suspect you did not use the gcc from that depot to build gcc from scratch again, which is - in most cases) the best way to make gcc adopt to your particular system, and /almost/ guarantees the absence of problems you are facing.
The only thing I can add here for now, is to not even start thinking of compiling DBD-Oracle if DBI still has problems.
Enjoy, Have FUN! H.Merijn
FWIW the latest versions you can get from my site are perl-5.8.5 (including DBI-1.43) and gcc-3.4.2.
I more suspect a strange incompatibility with the standard include files, as if the patchlevel of HP-UX is rather old, or you didn't have recent enough include files installed.
I think/suspect you did not use the gcc from that depot to build gcc from scratch again, which is - in most cases) the best way to make gcc adopt to your particular system, and /almost/ guarantees the absence of problems you are facing.
The only thing I can add here for now, is to not even start thinking of compiling DBD-Oracle if DBI still has problems.
Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 04:49 AM
тАО10-07-2004 04:49 AM
Re: Problem compiling with gcc on 11i
if i remember correctly, someone had the same problem by installing 11.00 gcc on 11.11 or vice versa.
--
ranga
[i work for hpe]
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 11:39 AM
тАО10-07-2004 11:39 AM
Re: Problem compiling with gcc on 11i
Looks like it was a patching issue of some sort. I ran a patch analysis, installed the Gold Bundle and the other dozen patches suggested, then started clean with Procura's Perl 5.8.1 and gcc, then was able to build DBI and DBD again. So far so good.
Thanks for the suggestions. As soon as the system's available again, I'll assign some points. (Crossing my fingers on the Apache installation).
Thanks for the suggestions. As soon as the system's available again, I'll assign some points. (Crossing my fingers on the Apache installation).
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