tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Andrew Kemp <andrew () larry ! cc ! swin ! edu ! au>
To: tru64-unix-managers
Subject: Problems compiling with BerkeleyDB 2.x under Digital Unix 4.0D
Date: Wed, 01 Sep 1999 03:05:35 +0000	[thread overview]
Message-ID: <96079072815817.tru64-unix-managers.marc@archive.invalid> (raw)


Greetings,

I am trying to install various packages that require BerkeleyDB 2.x

I have installed DB2.x into the standard location (/usr/local/BerkeleyDB/)
and when I supply the required compiler flags, I encounter the following
error :

configure:956: checking for bison
configure:989: checking for flex
configure:1023: checking for yywrap in -lfl
configure:1042: gcc -o conftest -O3 -Wall   conftest.c -lfl   1>&5
configure:1067: checking for lynx
configure:1103: checking for perl
configure:1222: checking for db_version in -ldb
configure:1241: gcc -o conftest -O3 -Wall -I/usr/local/BerekelyDB/include  -I/usr/local/BerekelyDB/include  -L/usr/local/BerekelyDB/lib conftest.c -ldb   1>&5
collect2: ld returned 1 exit status
/usr/bin/ld:
Unresolved:
db_version
configure: failed program was:
#line 1230 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char db_version();

int main() {
db_version()
; return 0; }

This same error occurs for all such packages that I am trying to install.

Clearly, the compiler is picking up the old libdb.a which was installed with
the OS (1.85) even though the -L flag should supply the path to the
correct library.

Any suggestions how I can correct this problem ? Thanks.

Regards,

Andrew Kemp

-- 
Unix,WWW,Proxy,News,DNS,LDAP,... Administrator	Phone	: 61 +3 9214-8252
Information Technology Services			Fax	: 61 +3 9214-8944
Swinburne University of Technology		E-Mail: andrew@swin.EDU.AU
Hawthorn, Victoria, Australia 3122 	URL: http://opax.swin.edu.au/andrew

                 reply	other threads:[~1999-09-01  3:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox