1833828 Members
2130 Online
110063 Solutions
New Discussion

Re: Question on Perl

 
SOLVED
Go to solution
HPP
Regular Advisor

Question on Perl

 
Be Teachable
7 REPLIES 7
H.Merijn Brand (procura
Honored Contributor

Re: Question on Perl

Please Re-READ the README.hpux. And again.

Now see if it still fails.

Did you actually read the README's?
And did you set $SHLIB_PATH?

And now that you've done that, does it work?


FWIW A precompiled binary of perl-5.8.0 for 10.20 including DBI and prepared to build DBD-Oracle following the guidelines in above mentioned docs is available on my ITRC site: https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
HPP
Regular Advisor

Re: Question on Perl

Thank you very much for the reply.

Yes, I did download Perl 5.8.0 from https://www.beepz.com/personal/merijn/#Downloads and tried simple DB connect via perl script. I get the following error:

--------------------------------------------------
install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC contains: /opt/TWWfsw/perl561/lib/5.6.1/PA-RISC1.1 /opt/TWWfsw/perl561/lib/5.6.1 /opt/TWWfsw/perl561p/lib/5.6.1/PA-RISC1.1 /opt/TWWfsw/perl561p/lib/5.6.1 /opt/TWWfsw/perl561p/lib /opt/TWWfsw/perl561p/vendor/lib/5.6.1/PA-RISC1.1 /opt/TWWfsw/perl561p/vendor/lib/5.6.1 /opt/TWWfsw/perl561p/vendor/lib .) at (eval 3) line 3.
Perhaps the DBD::Oracle perl module hasn't been fully installed,
or perhaps the capitalisation of 'Oracle' isn't right.
Available drivers: CSV, ExampleP, File, Pg, Proxy.

----------------------------------------

After this attempt i tried to compile DBD::ORACLE on HP-UX 10.20.
I am not good at programming. I am system admin trying to build some perl scripts for DB application.

Thank you.
Be Teachable
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Question on Perl

OK, assuming you're using pth from http://hpux.connect.org.uk/hppd/hpux/Gnu/pth-1.4.1/ you might have forgotten to add -lgcc, which defines _U_Qflt:

d3:/usr/local/pa11_32/lib 113 > nm libgcc.a | grep U_Qflt
_U_Qflt | |undef |code |
_U_Qflt | |undef |code |
_U_Qflt | 0|extern|entry |$CODE$
d3:/usr/local/pa11_32/lib 114 >

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
HPP
Regular Advisor

Re: Question on Perl

Thank you again for the reply.

Can you please tell me how to Include -lgcc?

I tried "perl Makefile.PL LDFLAGS="-lgcc", but i still get unresolved symbol error.

Thank you.

Be Teachable
H.Merijn Brand (procura
Honored Contributor

Re: Question on Perl

# find / -name libgcc.a

should point you to (if you did use my port)

/usr/local/pa11_32/lib/libgcc.a

which is a symlink to even further down, but since there are so many places where we *need* libgcc.a, I've made it a symlink.

No assuming you used my version, and it is located on /usr/local/pa11_32/lib, add these to the Makefile's LDFLAGS:

-L/usr/local/pa11_32/lib -lgcc

And read http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x022718276953d61190040090279cd0f9,00.html to understand why you have to assign points

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
HPP
Regular Advisor

Re: Question on Perl

Thank you for the response.

I tried building statically and it works fine........

I have found out that the all unresolved symbol "make test" complaining about are present in static library /usr/lib/libpthread.a, but not present in shared lib /usr/lib/libpthread.sl.

I got the pthread from http://hpux.connect.org.uk/hppd/hpux/Gnu/pth-1.4.1/

Any suggestions in this regard??

Thank you very much for the help.

I have assigned the points.....I usually do it with out fail.

Be Teachable
H.Merijn Brand (procura
Honored Contributor

Re: Question on Perl

That's a fine solution, and I won't suggest anything else. If this combo works for you, please keep using it, and document for yourself how you got it to work.

Any success is good! :)

Enjoy, have FUN! H.Merijn (Willing to help with almost all Perl issues)
Enjoy, Have FUN! H.Merijn