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_at_swin.EDU.AU
Hawthorn, Victoria, Australia 3122 URL: http://opax.swin.edu.au/andrew
Received on Wed Sep 01 1999 - 03:09:42 NZST