Operating System - HP-UX
1833871 Members
1773 Online
110063 Solutions
New Discussion

perl, DBI and DBD on Itanium hpux 11.23

 
SOLVED
Go to solution
Morten Kristiansen
Frequent Advisor

perl, DBI and DBD on Itanium hpux 11.23

Hi,
I'm trying to install perl, DBI and DBD to access oracle from perl on an Itanium hpux 11.23, but I have problems to success.

I have installed gcc-3.3.2 depot for 11.23, compiled gnu make and installed dynamic perl, DBI and DBD. Yesterday I finally managed to have a successfull installation without errors, but when we tried to run perl towards oracle, we got the following error:

$ /usr/local/bin/perl test.pl -alias off -user fdb -pwd fdb
/usr/lib/hpux64/dld.so: Unsatisfied code symbol '__divsi3' in load module '/usr. Killed


I've installed perl with these arguments:
./Configure -des -Uinstallusrbinperl -Uusethreads -Uuseithreads -Duse64bitall -Duselargefiles -Dcc=gcc -Darchname=IA64.ARCHREV_0-LP64 -Dprefix=/usr/local -Dlibs='-lcl -lpthread -lnsl -lnm -ldld -lm -lc -lsec -L/app/oracle/product/9.2.0/JRE/lib/IA64 '

I also had to do some modifications on the Makefile.PL on DBD. I added the submodules "hpux_libdir" and "hpux_lib64" in the MY package. And I also changed the following lines from:
EXTRALIBS = -L/app/oracle/product/9.2.0/lib32 -lclntsh -lCsup -lunwind -L$(LIBHOME)
LDLOADLIBS = -L/app/oracle/product/9.2.0/lib32 -lclntsh -lm -lpthread -lCsup -lunwind
to:
EXTRALIBS = -L/app/oracle/product/9.2.0/lib -lclntsh -lCsup -lunwind -L$(LIBHOME)
LDLOADLIBS = -L/app/oracle/product/9.2.0/lib -lclntsh -lm -lpthread -lCsup -lunwind


Does anybody have some clue what could be wrong? Is there anybody who have done this with success on Itanium hpux 11.23 with the gcc compilator?

Thanks in advance
Morten Kristiansen
5 REPLIES 5
Morten Kristiansen
Frequent Advisor

Re: perl, DBI and DBD on Itanium hpux 11.23

The whole errormessage I get when running a perlscript is:

# ./test.pl -alias NNN -user XXX -pwd YYY
/usr/lib/hpux64/dld.so: Unsatisfied code symbol '__divsi3' in load module '/usr/local/lib/perl5/site_perl/5.8.2/IA64.ARCHREV_0-LP64/auto/DBD/Oracle/Oracle.so'.
Killed
H.Merijn Brand (procura
Honored Contributor

Re: perl, DBI and DBD on Itanium hpux 11.23

I neither have Itanium, nor Oracle 8, but you will have to find the library that supplies __divsi3 and add it to the list of -l's in DBD::Oracle's makefile and be sure that it can be found at runtime by setting $SHLIB_PATH

I cannot find divsi3 in HP-UX 11.00 libs

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Morten Kristiansen
Frequent Advisor

Re: perl, DBI and DBD on Itanium hpux 11.23

I searched and I think I found the library in /usr/local/lib/gcc-lib/ia64-hp-hpux11.23/3.3.2/hpux64/libgcc.a. When I run strings and pipe it to grep, I found that __divsi3 was in it. But how can I link it in the compilation in the Makefile?
H.Merijn Brand (procura
Honored Contributor
Solution

Re: perl, DBI and DBD on Itanium hpux 11.23

-L /usr/local/lib/gcc-lib/ia64-hp-hpux11.23/3.3.2/hpux64 -lgcc

good place would bee EXTRALIBS, ut if you want to play sure, add it to EXTRALIBS _and_ LDLOADLIBS :)

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Morten Kristiansen
Frequent Advisor

Re: perl, DBI and DBD on Itanium hpux 11.23

THANKS, your the man. And yes, now we can have some fun.

regards
Morten