Closed p5pRT closed 20 years ago
Tiny BUILD problem I have Berkeley db-3.0.55 install und the Configure process does NOT install DB_File by default. When forcing it to do\, it passes all tests except test 12 as is currently normal
It SEEMS to fail lib/io_xs and lib/trig but doing (in the t directory)
./perl TEST lib/io_xs.t ./perl TEST lib/trig.t
then all tests are passed.
Doing
./perl -I../lib harness
lib/io_xs.t passes without problems
while
lib/trig.t
gives lib/trig............dubious
Test returned status 0 (wstat 11\, 0xb)
and there is a 'core' file in t but again running it separately causes no problems
What am I missing?
On Thu\, 9 Dec 1999\, Helmut Jarausch wrote:
This is a build failure report for perl from jarausch@igpm.rwth-aachen.de\, generated with the help of perlbug 1.27 running under perl 5.00563.
----------------------------------------------------------------- [Please enter your report here]
Tiny BUILD problem I have Berkeley db-3.0.55 install und the Configure process does NOT install DB_File by default. When forcing it to do\, it passes all tests except test 12 as is currently normal
Hmm. I've never seen db-3\, but the Configure tests are designed to allow any db version \< 2 or >= 2.3.4. It's possible the version detection logic has changed in 3.0.55 or that Configure is finding a mixture of old and new versions.
Try running Configure without the -s switch\, i.e.
rm -f config.sh sh Configure [your usual args] -dE > config.log 2>&1
The db tests ought to print out more information. Edit down the config.log and send along the relevant db parts and I'll see what sense I can make of it.
Thanks\,
Andy Dougherty doughera@lafayette.edu Dept. of Physics Lafayette College\, Easton PA 18042
From: Andy Dougherty [mailto:doughera@lafayette.edu]
On Thu\, 9 Dec 1999\, Helmut Jarausch wrote:
This is a build failure report for perl from jarausch@igpm.rwth-aachen.de\, generated with the help of perlbug 1.27 running under perl 5.00563.
----------------------------------------------------------------- [Please enter your report here]
Tiny BUILD problem I have Berkeley db-3.0.55 install und the Configure process does NOT install DB_File by default. When forcing it to do\, it passes all tests except test 12 as is currently normal
Hmm. I've never seen db-3\, but the Configure tests are designed to allow any db version \< 2 or >= 2.3.4. It's possible the version detection logic has changed in 3.0.55 or that Configure is finding a mixture of old and new versions.
The version logic is unchanged with Berkeley DB 3.x
Paul
On Thu\, 9 Dec 1999\, Andy Dougherty wrote:
On Thu\, 9 Dec 1999\, Helmut Jarausch wrote:
I have Berkeley db-3.0.55 install und the Configure process does NOT install DB_File by default.
Thanks to Helmut's patient experimenting\, we have found the problem:
Helmut> I had forgotten that db-3.0.55 needs to be linked to libpthread.so
My question is -- is this generic? On platforms other than Irix\, does db-3.0.xx need to be linked to libpthread (or equivalent)?
On Irix\, what's the downside of *always* including -lpthread in the list of libraries to use? Specifically\, I'm imagining modifying Configure to magically add -lpthread on Irix if db >=3 and if -lpthread is not already there. I'm concerned this might break something else\, however.
Anybody have any good ideas?
Andy Dougherty doughera@lafayette.edu Dept. of Physics Lafayette College\, Easton PA 18042
From: Andy Dougherty [mailto:doughera@lafayette.edu]
On Thu\, 9 Dec 1999\, Andy Dougherty wrote:
On Thu\, 9 Dec 1999\, Helmut Jarausch wrote:
I have Berkeley db-3.0.55 install und the Configure process does NOT install DB_File by default.
Thanks to Helmut's patient experimenting\, we have found the problem:
Helmut> I had forgotten that db-3.0.55 needs to be linked to libpthread.so
That's a new one on me. Is there something in the Berkeley DB documentation that mentions that?
My question is -- is this generic?
Nope.
On platforms other than Irix\, does db-3.0.xx need to be linked to libpthread (or equivalent)?
Nope\, it isn't needed on Linux or SunOS.
Paul
"A" == Andy Dougherty \doughera@​lafayette\.edu writes:
A> On Irix\, what's the downside of *always* including -lpthread in the A> list of libraries to use? Specifically\, I'm imagining modifying Configure A> to magically add -lpthread on Irix if db >=3 and if -lpthread is not A> already there. I'm concerned this might break something else\, however.
If you include -lpthread\, I haven't figured out how to use perl's malloc. Probably need to define the missing entrypoints that are used by libpthread (which also replaces libcmalloc with a thread-safe one).
-- Scott Henry \scotth@​sgi\.com / Help! My disclaimer is missing! IRIX MTS\, / GIGO *really* means: Garbage in\, Gospel Out Silicon Graphics\, Inc / http://reality.sgi.com/scotth/
On Fri\, 10 Dec 1999\, Scott Henry wrote:
"A" == Andy Dougherty \doughera@​lafayette\.edu writes:
A> On Irix\, what's the downside of *always* including -lpthread in the A> list of libraries to use? Specifically\, I'm imagining modifying Configure A> to magically add -lpthread on Irix if db >=3 and if -lpthread is not A> already there. I'm concerned this might break something else\, however.
If you include -lpthread\, I haven't figured out how to use perl's malloc. Probably need to define the missing entrypoints that are used by libpthread (which also replaces libcmalloc with a thread-safe one).
Hmm. Messier and messier. Maybe it's back to figuring out why this installation of db-3.0.55 wandted -lpthread on Irix but doesn't seem to care on Solaris or Linux.
Thanks for the info.
Hmm further -- I think that this may no longer be true in 5.005_63 -- I vaguely recall perl's malloc is normally no longer supposed to try to replace the system malloc\, but always be called perl_malloc or some such.
Still\, I think it's time to go back to db-3.0.55 and see what's up at that end.
Thanks\,
Andy Dougherty doughera@lafayette.edu Dept. of Physics Lafayette College\, Easton PA 18042
On Thu\, 9 Dec 1999\, Andy Dougherty wrote:
On Thu\, 9 Dec 1999\, Helmut Jarausch wrote:
Tiny BUILD problem I have Berkeley db-3.0.55 install und the Configure process does NOT install DB_File by default. When forcing it to do\, it passes all tests except test 12 as is currently normal
The ultimate difficulty here was that db-3.0.55 was linked against -lpthread\, while the perl being built was not. I don't have a generic solution to that problem yet.
In the meantime\, this tiny Configure patch at least exposes the problem earlier and gives some information about what might be needed:
Andy Dougherty doughera@lafayette.edu Dept. of Physics Lafayette College\, Easton PA 18042
Migrated from rt.perl.org#1868 (status was 'resolved')
Searchable as RT1868$