Re: DBD- Oracle installation on HP-UX machine

2009-10-06 Thread Jonathan Leffler
On Tue, Oct 6, 2009 at 9:30 PM, Umaparvathy Krishnan <
umaparvathy.krish...@oracle.com> wrote:

> Need a favour from you.I am trying to install DBD::Oracle module in the
> machine of HP-UX. Facing the error as below.Please help me
>
>
>
> $ make
>
> rm -f blib/arch/auto/DBD/Oracle/Oracle.so
>
> /usr/bin/ld -Wl,+b"/oracle/ora10g/OraHome/lib32:/usr/lib/hpux32"
> -b +vnocompatwarnings -L/usr/lib/hpux32 Oracle.o  dbdimp.o  oci8.o  -o
> blib/arch/auto/DBD/Oracle/Oracle.so   -L/oracle/ora10g/OraHome/lib32
> -lclntsh -lm -lpthread -lunwind -lnsl
>
> ld: Unrecognized argument:
> -Wl,+b/oracle/ora10g/OraHome/lib32:/usr/lib/hpux32
>
> Fatal error.
>
> *** Error exit code 1
>
> Stop.
>


This strongly suggests to me that you are using a pre-built Perl that was
not built with the toolchain (C compiler, assembler and loader) you have
installed.  So, where did you get Perl from?  Did you build it yourself?
(I'm 99% positive the answer to that is no.  And for the residual 1%, almost
all of that says "Yes, I built it on machine A but I'm now building
DBD::Oracle on machine B".)

You need to look at the output from 'perl -V' and look at the compiler and
linker sections.  Since Perl was built with a loader (linker) that should
recognize the -Wl,+b... notation - or with a C compiler which knows how to
translate that into a '+b/oracle/ora10g/...' argument for the loader - what
you've got is not the same as what was used to build Perl.

Your choices are simple:

* Build Perl with what you've got.
* Get the tools used to build Perl and build the DBD::Oracle module with
them.


And, in future, please ask the list the question - not me directly.  I might
still answer...

-- 
Jonathan Leffler   #include 
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."


Re: dbi installation fail

2009-10-06 Thread F.A.I.Z.A.L
hi Leffer..

thanks for your mail..

gcc version output

*andd141# perl -V:gccversion*
gccversion='3.4.6';
*andd141# gcc --version*
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I was try to upgrade this version using gcc-3.4.6 but its not updating.. any
idea?

Best Regards
Faizal S
GSM : 9840118673
Blog: http://oradbapro.blogspot.com


On Tue, Oct 6, 2009 at 2:21 AM, Jonathan Leffler  wrote:

> Look at the 'perl -V' output.
> Compare the version of GCC used there with the version you have.
>
> It is likely that Perl was built with a much newer version of GCC, and your
> older version apparently does not support the C99-related warning about
> '-Wdeclaration-after-statement'.
>
> Your options are to upgrade GCC to at least the version used to build Perl,
> or to build Perl with the version of GCC you have.
>
>
> On Mon, Oct 5, 2009 at 9:06 AM, F.A.I.Z.A.L  wrote:
>
>> Hi Greg.
>>
>> thanks for your reply...
>>
>> gcc version is 3.3.2
>> perl version is 5.8.8.
>> solaris sparc 8 64b
>>
>> is there any document for upgrading gcc version. i have tried with
>> gcc3.4.6
>> but its says no changes made, still in the pervious version.. any
>> suggesstion and advice please..
>>
>> thanks in advance...
>>
>> Best Regards
>> Faizal S
>> GSM : 9840118673
>> Blog: http://oradbapro.blogspot.com
>>
>>
>> On Mon, Oct 5, 2009 at 6:33 PM, Greg Sabino Mullane > >wrote:
>> > > please help to install. dbi module under solaris 8 os
>> >
>> > Solaris 8 is pretty darn old.
>> >
>> > > cc1: error: unrecognized option `-Wdeclaration-after-statement'
>> > > make: *** [Perl.o] Error 1
>> >
>> > What does gcc --version output? I think that exact option was
>> > introduced in gcc version 3.0, so if your compiler is older than that,
>> > you should get a newer compiler. You should also get a newer/better OS,
>> > but that's beyond the scope of this list. :)
>>
>
>
>
> --
> Jonathan Leffler   #include 
> Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
> "Blessed are we who can laugh at ourselves, for we shall never cease to be
> amused."
>


DBD- Oracle installation on HP-UX machine

2009-10-06 Thread Umaparvathy Krishnan
 


Re: dbi installation fail

2009-10-06 Thread Jonathan Leffler
On Mon, Oct 5, 2009 at 10:09 PM, F.A.I.Z.A.L  wrote:

> hi Leffer..
>

Hi Faial...names look funny with missing letters, don't they?


> gcc version output
>
> *andd141# perl -V:gccversion*
> gccversion='3.4.6';
> *andd141# gcc --version*
> gcc (GCC) 3.3.2
> Copyright (C) 2003 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> I was try to upgrade this version using gcc-3.4.6 but its not updating..
> any idea?


Ummm... what does "trying to upgrade but it is not updating" mean?

When I try to upgrade GCC, one of two things happens:

(1) I download the source and build it, install it, and then make sure I use
the new version instead of the old.
(2) I download a pre-built version, install it, and then make sure I use the
new version instead of the old.

In case of doubt, I remove the old version too - but I don't often have
doubts and the old versions are not on my PATH and hence are not findable
(because they aren't in easily predictable places like under /usr/local/).
In fact, I have versions 3.4.6, 4.2.3, 4.3.3 and 4.4.1 on my Solaris box at
the moment - and other people have a stray copy of 3.4.6 and a 3.4.3 on
there too (what fun; I didn't know about those two until I went looking).

Clearly, you have to ensure that your PATH is set up to pull in the correct
version of GCC once it is installed.

-- 
Jonathan Leffler   #include 
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."