1821638 Members
2973 Online
109633 Solutions
New Discussion юеВ

Perl module DB_file

 
Lars Ebeling
Frequent Advisor

Perl module DB_file

Trying to install DB_file with Webmin on HPUX 11.11
make test fails with a lot of unresolved symbols to pthread..........

(see attachment)

Could someone help me
8 REPLIES 8
H.Merijn Brand (procura
Honored Contributor

Re: Perl module DB_file

Your problem: You have a BerkeleyDB (libdb) port that expects libpthread, or in other words is built threads-enabled and you have a perl that is not

Your problem is not: that you need a threaded perl

Your solution:
a: Build perl yourseld, and include -lpthread in the list of required libs, even if perl itself does not need it. Modules like this and DBD::Oracle do.
b: Build BerkeleyDB (libdb) again with threads disabled
c: (or maybe a-bis) Fetch yourself a prebuilt perl binary that has libpthread in it
d: IF this works, you're done fast: remove 'PERL_DL_NONLAZY=1' from the Makefile. This very much depends on you perl and the shared libraries were built.

The fact that your perl was not built with libpthread indicates to me that it is a rather old version, since both my perls (see below) and the perl binaries that come from HP's porting center (at least all their recent builds: read that past two years) include this library

Next time, please tell us what your perl version is (perl -v), where you got it, and what the version of the problem stuff is (libdb and DB_File). From your log, I presume

DB_File-1.811
perl5.8.5

My builds include DB_File

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Lars Ebeling
Frequent Advisor

Re: Perl module DB_file

Installed perl 5.8.7 from http://mirrors.develooper.com/hpux/downloads.html

Now I get:

# ./perl -v
sh: ./perl: Execute permission denied.
# pwd
/opt/perl64/bin
# ll perl
-rwxr-xr-x 2 root sys 2490096 Jun 1 12:44 perl
#

Regards
Lars
H.Merijn Brand (procura
Honored Contributor

Re: Perl module DB_file

r3:/opt/perl64/bin 102 > ll perl
38781 -rwxr-xr-x 2 merijn softwr 2490096 Jun 1 12:44 perl
r3:/opt/perl64/bin 103 > sum perl
65334 4864 perl
r3:/opt/perl64/bin 104 > ./perl -v

This is perl, v5.8.7 built for PA-RISC2.0-LP64
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2005, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

r3:/opt/perl64/bin 105 > uname -a
HP-UX r3 B.11.11 U 9000/800 1909236376 unlimited-user license
r3:/opt/perl64/bin 106 > ux
r3 HP-UX 11.11/64 U 9000/800/rp3410/64 PA8800/800(2) pa-2.0 4094 Mb
r3:/opt/perl64/bin 107 > model
9000/800/rp3410
r3:/opt/perl64/bin 108 > file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)
r3:/opt/perl64/bin 109 > getconf KERNEL_BITS
64
r3:/opt/perl64/bin 110 > getconf HW_32_64_CAPABLE
1
r3:/opt/perl64/bin 111 > echo "selclass qualifier cpu;info;wait;infolog" | /usr/
sbin/cstm | grep "CPU Module"
PA 8800 CPU Module 3.1
PA 8800 CPU Module 3.1
PA 8800 CPU Module 3.1
PA 8800 CPU Module 3.1
PA 8800 CPU Module 3.1
PA 8800 CPU Module 3.1
PA 8800 CPU Module 3.1
PA 8800 CPU Module 3.1
r3:/opt/perl64/bin 112 >

Just to be sure. Your machine *is* 64bit capable??

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Lars Ebeling
Frequent Advisor

Re: Perl module DB_file

Of course you are right. I thought so, but not 64-bit.

Try with 32-bit later.

Regards
Lars
Lars Ebeling
Frequent Advisor

Re: Perl module DB_file

32-bit worked.

Lars
Lars Ebeling
Frequent Advisor

Re: Perl module DB_file

Ok
H.Merijn Brand (procura
Honored Contributor

Re: Perl module DB_file

You close the thread with a bunny, saying that my answer was right, and that it now works, but still you give the answer only 1 point.

Isn't that a bit of an insult? Do you know how much time I put in that website?
It solves your problem, but still ...

I'm stunned

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Lars Ebeling
Frequent Advisor

Re: Perl module DB_file

1. I thought I gave it 5 points
2. I am a beginner at this started the other day.

Regards
Lars Ebeling