Operating System - HP-UX
1829750 Members
1385 Online
109992 Solutions
New Discussion

Installing DB1-1.32 module

 
SOLVED
Go to solution
Phil Storer
Advisor

Installing DB1-1.32 module

Any idea what's happening here. See attachment
18 REPLIES 18
Rajeev  Shukla
Honored Contributor

Re: Installing DB1-1.32 module

Hi,
Could be a compiler issue, i once got those error while compiling PHP.
What version of gcc are you using, try using a different version. 2.95.2 or 3.2.3 these 2 version i have seen in my environment works good.

good luck
Rajeev
Phil Storer
Advisor

Re: Installing DB1-1.32 module

Thanks Rajeev, I'll check what version of gcc I'm using and upgrade if necessary and then try again
Garry Ferguson
Frequent Advisor

Re: Installing DB1-1.32 module

Phil,
Not sure but I know you need to use the same compiler that was used to build perl!
The dbi-users list is
useful. Just e-mail a blank message to
dbi-users-subscribe@perl.org .

I attach my recent efforts in this area.

Regards,
Garry
H.Merijn Brand (procura
Honored Contributor

Re: Installing DB1-1.32 module

Sorry for the late dropin, but this is an easy one :)

You are using a gcc compiled for 11.00 on a 11i (11.11) machine. Fetch yourself a compiler built for 11i or recompile gcc from scratch yourself. The solution to do so is somewhere in the forum.

My port of perl-5.8.1 including the most recent DBI can be found on http://www.cmve.net/~merijn, https://www.beepz.com/personal/merijn/, or http://www.hpux.ws/merijn/ where you can also find the gcc-3.3.1 I used to build it including the most recent binutils.

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Paddy_1
Valued Contributor

Re: Installing DB1-1.32 module

I think procura was mentioning about this thread (related to yours) :

http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xbdd191ccb36bd611abdb0090277a778c%2C00.html&admit=716493758+1066405758507+28353475
The sufficiency of my merit is to know that my merit is NOT sufficient
Phil Storer
Advisor

Re: Installing DB1-1.32 module

Still having problems with 'make'. See attachment for details.
ALso thanks to everyone for all the help so far - much appreciated
Garry Ferguson
Frequent Advisor

Re: Installing DB1-1.32 module

What have you done so far?
Have you built yourself a new perl?
Are you then using the same compiler to
build DBD and DBD?
Have you read what people have sent you?

Garry
Phil Storer
Advisor

Re: Installing DB1-1.32 module

Garry,
I have read what people have sent me and followed the advice. I have downloaded and installed the latest version of the perl binary from 'Merijns HP-UX software for ITRC members' which is:-

Perl 5.8.1 prepared for Oracle + DBI 1.38 - built with gcc-3.3.1

I have also downloaded and installed the gcc-3.3.1 compiler.

So I'm able to build the Makefile by running the command perl Makefile.PL but the problem occurs when running the command 'make'. Once again see attachment for details.
Phil Storer
Advisor

Re: Installing DB1-1.32 module

Forgot to attach the output. As an update I have managed to get to the 'make' stage but falls over when I try a make perl as suggested by Garry's document.
Looks like an object file missing.. Help!!!
Garry Ferguson
Frequent Advisor

Re: Installing DB1-1.32 module

Phil,
The exact error you are getting doesn't mean
much to me I'm afraid.
I know that I went thru a similar process
of trying to use pre-built perls.
I just gave up in the end and built the whole
lot from scratch using the HP ANSI-C compiler
B.11.11.04 ( it's latest version is .08 )
I've no experience of using gcc to do this.
I seem to remember gcc having a section in one of the many READMEs in DBD-Oracle.
Cheers,
Garry
H.Merijn Brand (procura
Honored Contributor

Re: Installing DB1-1.32 module

No guarantee that it helps, but try not using DBD-Oracle-1.12, but 1.4 (available from ftp://download.xs4all.nl/pub/mirror/CPAN/modules/by-module/DBD/DBD-Oracle-1.14.tar.gz)

We've gone through major work to improve HP-UX support int the later versions.

It's been only last week that Tim, me and some others tested the upcomming 1.15 and that built plain out of the box (after some patches, that's why we are here) for a gcc built perl (using exactly the one you are using from my site). I have no idea about Tim's plans in releasing 1.15, but it will not be months.

I know there are still some minor (gcc related) problems in 1.14, but I am sure using gcc on HP-UX with 1.12 requires multiple headaches

HTH Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Phil Storer
Advisor

Re: Installing DB1-1.32 module

Well I've finally decided to change tack as I'm still having issues.
What I've done is get hold of the Perl source code v5.6.1 and compile it with a 'C' compiler - gave up on gcc. I then succesfully installed the DBI-1-38 module but when trying to install the DBD-ORACLE-1.14 module I get an error that I'm not sure how to resolve - Any ideas?
H.Merijn Brand (procura
Honored Contributor

Re: Installing DB1-1.32 module

Yes, solved in the upcoming 1.15

Edit Makefile.PL, search for hpux_libdir and change it to main::hpux_libdir

Don't forget the forum etiquette: assign points to *all* above answers. 0 for no help, and 10 for *the solution*

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Phil Storer
Advisor

Re: Installing DB1-1.32 module

Thanks Procura that certainly got me past the 'make' stage. However when I run a make test I get the following error - see attachment. Any thoughts?
H.Merijn Brand (procura
Honored Contributor

Re: Installing DB1-1.32 module

Many :)

Do you *have* /lib/libpthread.1 ?

If not, that's the cause. If you do, it might be the way you compiled Perl. What's

# perl -V | grep libs

telling you? does it include '-lcl -lpthread' ? If not, you will never get this combo to work with Oracle. That one of the reasons why I asked you to go for my 5.8.1 port, because it's built with these options. (See README.hpux)
However, the way README.hpux describes the solution does not work in 5.6.1 (it will in 5.6.2), so you will have to do more work to get those libs in front of the required lib list.

If you however do not have /lib/libpthread.1, (which should be linked to libpthread.sl), but you *do* have libpthread.2 (then you are probably on 11.11), just try to symlink libpthread.2 to libpthread.1 and see how that goes

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Garry Ferguson
Frequent Advisor
Solution

Re: Installing DB1-1.32 module

Phil,
Sorry to keep harking on about it BUT ...
If you are now building your own perl with
an HP C compiler you are doing pretty well what I did. You need to follow my instructions exactly! I spent AGES getting them right.
If you are and it still doesn't work - "oh well"!!
I rememmber getting your testing
errors before I'd sorted things.
Garry
H.Merijn Brand (procura
Honored Contributor

Re: Installing DB1-1.32 module

Coosing HP C-ANSI-C is a good step anyway. perl's build with this C are up to 25% faster than gcc build perls

just FYI

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Phil Storer
Advisor

Re: Installing DB1-1.32 module

Success at last!! Thanks to everone who helped especially Garry and Procura.
I eventually downloaded the perl source for 5.8.0 and followed Gary's instructions very closely this time.
All went well until I tried doing the install for the DBD-Oracle module where an error was displayed following the

'make test FULLPERL=./perl' command

See attachment for details. Basically I edited the ph_type file in the 't' directory. From there on all went smoothly.

Now I can enjoy the weekend in peace...