Operating System - HP-UX
1833876 Members
1849 Online
110063 Solutions
New Discussion

Re: gcc compiler problem (+DSitanium2)

 
dkkelley
New Member

gcc compiler problem (+DSitanium2)

I'm trying to install the DBD-Oracle-1.23 perl module on an HPUX Itanium server. Started by building it with just the ansi C compiler but then decided to install gcc from a distribution (so a simple swinstall was all I needed to do). I'm rebuilding the DBD perl mod and am getting the following error:

gcc: +DSitanium2: No such file or directory

Any ideas?

Thanks.
Dan ...
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: gcc compiler problem (+DSitanium2)

Hi Dan:

> Started by building it with just the ansi C compiler but then decided to install gcc

Remember that the compiler you choose to use for the requisite Perl module compilation _must_ match the compiler that was used to build the core Perl you are running:

# perl -V:cc

Regards!

...JRF...
dkkelley
New Member

Re: gcc compiler problem (+DSitanium2)

All the more reason I should build this perl mod with gcc ...

Set up gcc environment - 4.2.3
cc='gcc';

So any ideas on the unknown option +DSitanium2 ??
James R. Ferguson
Acclaimed Contributor

Re: gcc compiler problem (+DSitanium2)

Hi (again) Dan:

> So any ideas on the unknown option +DSitanium2 ??

It would appear that it isn't supported for 'gcc':

http://www.mqseries.net/phpBB2/viewtopic.php?t=49628

Regards!

...JRF...
dkkelley
New Member

Re: gcc compiler problem (+DSitanium2)

Thanks for the help James.

I just took out that option from the Makefile, ran make and it did compile (with some warnings). I did a make install also and decided to try some code. I ran a perl
-cw and now am getting this ...

Can't load
'/blah/blah/auto/DBD/Oracle/Oracle.so'
for module DBD::Oracle: No such file or directory at
/opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/DynaLoader.pm line 229.

but when I ls -l ...

-r-xr-xr-x 1 root sys 886688 Sep 21 15:44
/blah/blah/auto/DBD/Oracle/Oracle.so*

so it's there.

Weird ...
Shinji Teragaito_1
Respected Contributor

Re: gcc compiler problem (+DSitanium2)

Can the user accessing Oracle.so have the read permission of the
following directories ?

- /blah/blah/auto
- /blah/blah/auto/DBD
- /blah/blah/auto/DBD/Oracle

What happens if the user performs to invoke ldd ? No errors ?

% ldd /blah/blah/auto/DBD/Oracle/Oracle.so
Dennis Handly
Acclaimed Contributor

Re: gcc compiler problem (+DSitanium2)

>JRF: >> So any ideas on the unknown option +DSitanium2?

>It would appear that it isn't supported for gcc:

You have already lost so much performance using gcc, trying to use +DSitanium2 wouldn't make much of a difference. Just toss the option.

>Shinji: Can the user accessing Oracle.so have the read permission of the following directories?

You would need search permission.