[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: tarball compile on HP-UX 11 can't find db4 but is installed

From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2002-06-26 16:32:33 CEST

On Wed, Jun 26, 2002 at 02:35:19PM +0100, Philip Martin wrote:
> Alexis Huxley <ahuxley@gmx.net> writes:
>
> > checking for Berkeley DB in /home/ahuxley/opt/HP-UX_B.11.00/db4... no
> > configure: error: Could not find Berkeley DB 4.0.14.
>
> There should be a file called config.log in the directory where you

configure:7768: checking for Berkeley DB in /home/ahuxley/opt/HP-UX_B.11.00/db4
configure:7814: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -I/home/ahuxley/opt/HP-UX_B.11.00/db4/include -L/home/ahuxley/opt/HP-UX_B.11.00/db4/lib -L/var/tmp/20020626/unpacked/subversion-r2291/apr-util/xml/expat/lib conftest.c -lm -lnsl -lpthread -L/home/ahuxley/opt/HP-UX_B.11.00/db4/lib -ldb >&5
configure:7790: warning: return-type defaults to `int'
configure:7790: warning: function declaration isn't a prototype
configure:7817: $? = 0
configure:7819: ./conftest
/usr/lib/dld.sl: Call to mmap() failed - TEXT /home/ahuxley/opt/HP-UX_B.11.00/db4/lib/libdb-4.0.sl
/usr/lib/dld.sl: Permission denied
./configure[7820]: 17069 Abort(coredump)
configure:7822: $? = 134
configure: program exited with status 134
configure: failed program was:
#line 7785 "configure"
#include "confdefs.h"

#include <stdio.h>
[ ... simple example program snipped ... ]

gdb on the example program and core didn't tell me anything 'cos
db4 wasn't compiled with '-g' I guess? I'll recompile it and give
it a go.

> ran configure. That should contain details of the test that failed.
> At a guess I would assume that the db4 library was not found at
> runtime, in which case you need to do whatever is necessary for HPUX
> to find runtime libraries -- perhaps add the directory
> /home/ahuxley/opt/HP-UX_B.11.00/db4/lib to the environment variable
> LD_LIBRARY_PATH.

Yup, that I did; HP-UX uses SHLIB_PATH and LPATH in place of
LD_LIBRARY_PATH; one is for compile-time and one for run-time, but
I set both 'cos I couldn't remember which way round it was :-)

Alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 26 16:33:07 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.