tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Problems compiling with BerkeleyDB 2.x under Digital Unix 4.0D
@ 1999-09-01  3:05 Andrew Kemp
  0 siblings, 0 replies; only message in thread
From: Andrew Kemp @ 1999-09-01  3:05 UTC (permalink / raw)
  To: tru64-unix-managers


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-01  3:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-01  3:05 Problems compiling with BerkeleyDB 2.x under Digital Unix 4.0D Andrew Kemp

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