From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079072815817.tru64-unix-managers.marc@archive.invalid> From: Andrew Kemp Date: Wed, 01 Sep 1999 03:05:35 +0000 To: tru64-unix-managers Subject: Problems compiling with BerkeleyDB 2.x under Digital Unix 4.0D X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079072815817 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