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

6740: undefined reference to `db_version'

From: Roman Neuhauser <neuhauser_at_bellavista.cz>
Date: 2003-08-15 14:26:36 CEST

I'm trying to build svn rev. 6740, but ./configure fails to detect bdb.
This is on FreeBSD-STABLE, and I have bdb3, bdb40, and bdb41 installed
from the ports:

./configure --without-apache --without-jdk --without-apxs --with-berkeley-db=/usr/local/include/db41:/usr/local/lib

this is in config.log:

configure:8803: checking for availability of Berkeley DB
configure:8865: gcc -o conftest -g -O2 -DNEON_ZLIB -DNEON_SSL -I/usr/home/roman/install/svn-6740/apr-util/include -I/usr/local/include/db41 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -L/usr/local/lib conftest.c -L/usr/local/lib -lexpat >&5
/tmp/ccPK3I5o.o: In function `main':
/usr/home/roman/install/svn-6740/configure:8839: undefined reference to `db_version'
configure:8868: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 8828 "configure"
#include "confdefs.h"

#include <stdio.h>
#include "db.h"
main ()
{
  int major, minor, patch;

  db_version (&major, &minor, &patch);

  /* Sanity check: ensure that db.h constants actually match the db library */
  if (major != DB_VERSION_MAJOR
      || minor != DB_VERSION_MINOR
      || patch != DB_VERSION_PATCH)
    exit (1);

  /* Run-time check: ensure the library claims to be the correct version. */

  if (major < 4)
    exit (1);
  if (major > 4)
    exit (0);

  if (minor < 0)
    exit (1);
  if (minor > 0)
    exit (0);

  if (patch >= 14)
    exit (0);
  else
    exit (1);
}

btw:

grep -F db_version /usr/local/include/db41/db.h
char *db_version __P((int *, int *, int *));

how can I get rid of the problem?

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 15 14:27:32 2003

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