Operating System - HP-UX
1758598 Members
1959 Online
108872 Solutions
New Discussion юеВ

DBD::Oracle on HPUX11.11 - problems on installation

 
Amauri Albuquerque
New Member

DBD::Oracle on HPUX11.11 - problems on installation

Hi people.

I downloaded the DBI 1.40 and DBD::Oracle 1.15 from CPAN, but when trying to install I get the following problem:
-----------------------------------------
In file included from /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE/perl.h:722,
from DBIXS.h:19,
from Perl.xs:1:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:485: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:487: error: parse error before "bsize_t"
/usr/include/sys/socket.h:501: error: parse error before "__sendfile64"
/usr/include/sys/socket.h:501: error: parse error before "bsize_t"
/usr/include/sys/socket.h:502: error: parse error before "__sendpath64"
/usr/include/sys/socket.h:502: error: parse error before "bsize_t"
/usr/include/sys/socket.h:504: error: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:504: error: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:505: error: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:505: error: parse error before "bsize_t"
----------------------------------------

The system is HPUX11.11
Gcc 3.3.1
Perl 5.6.1

Should I reinstall gcc? or compile it?

Please help.
5 REPLIES 5
H.Merijn Brand (procura
Honored Contributor

Re: DBD::Oracle on HPUX11.11 - problems on installation

You are using a 11.00 port of both perl and gcc. The explanation is on my site, as where you can also fetch the `correct' versions of both perl-5.8.3 + DBI-1.40 and gcc-3.3.2

Please then use DBD::Oracle-1.15 which should build clean and out-of-the-box on 11i

My HP ITRC site pages can be found at

Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Seattle http://ww.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Amauri Albuquerque
New Member

Re: DBD::Oracle on HPUX11.11 - problems on installation

Hi H. Merijn.

I acessed your page and downloaded some versions os Perl for 11.11/64. But the problem remains when I try to compile it. I read an explanation about updating gcc to solve this problem, but I didn├В┬┤t try yet. Do you think I need to upgrade gcc?
I will try DBI:1.15 first.

Thanks,

your site is very go
Amauri Albuquerque
New Member

Re: DBD::Oracle on HPUX11.11 - problems on installation

Sorry, I will try DBD:oracle 1.15.

But for this should I upgrade perl and Gcc?

Thanks
H.Merijn Brand (procura
Honored Contributor

Re: DBD::Oracle on HPUX11.11 - problems on installation

You will have to update gcc to fit 11.11 (11i). You need this because on almost any OS, but HP-UX specifically, any XS module (like DBI, and DBD::Oracle) that nees a C compiler need the compiler that matches the compiler perl was built with, because the flags used to build perl with are passed to the compiler when building the module

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Wai Kiong Choy
Advisor

Re: DBD::Oracle on HPUX11.11 - problems on installation

I had the some errors. If you are using GCC compiled for HPUX 11.00 then you are out-of-luck.

Use the HPUX 11i version of GCC. Download it from http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html