You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Roman Neuhauser <ne...@bellavista.cz> on 2003/08/15 12:26:36 UTC

6740: undefined reference to `db_version'

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

RE: 6740: undefined reference to `db_version'

Posted by Sander Striker <st...@apache.org>.
> From: Roman Neuhauser [mailto:dev-null@bellavista.cz]
> Sent: Friday, August 15, 2003 3:18 PM

> > Can you try the following for me:
> > 
> > LDFLAGS="-R/usr/local/lib"
> > ./configure --without-apache --without-jdk --without-apxs --with-berkeley-db=/usr/local/include/db41:/usr/local/lib
> > 
> > Lemme know if that works.  Thanks,
> 
>     same result :(

Oh duh.  *slaps forehead*  It's a linking problem, not a runtime problem.
Investigating.


Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: 6740: undefined reference to `db_version'

Posted by Roman Neuhauser <de...@bellavista.cz>.
# striker@apache.org / 2003-08-15 14:39:26 +0200:
> > From: Roman Neuhauser [mailto:neuhauser@bellavista.cz]
> > Subject: 6740: undefined reference to `db_version'

> Can you try the following for me:
> 
> LDFLAGS="-R/usr/local/lib"
> ./configure --without-apache --without-jdk --without-apxs --with-berkeley-db=/usr/local/include/db41:/usr/local/lib
> 
> Lemme know if that works.  Thanks,

    same result :(

    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 -R/usr/local/lib    -L/usr/local/lib conftest.c  -L/usr/local/lib  -lexpat  >&5
    /tmp/ccpwWv1u.o: In function `main':
    /usr/home/roman/install/svn-6740/configure:8839: undefined reference to `db_version'

-- 
The From: header's been munged to get rid of unwanted cc's.
My real address: neuhauser@bellavista.cz.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: 6740: undefined reference to `db_version'

Posted by Roman Neuhauser <de...@bellavista.cz>.
# striker@apache.org / 2003-08-15 14:39:26 +0200:
> > From: Roman Neuhauser [mailto:neuhauser@bellavista.cz]
> > Subject: 6740: undefined reference to `db_version'

> Can you try the following for me:
> 
> LDFLAGS="-R/usr/local/lib"
> ./configure --without-apache --without-jdk --without-apxs --with-berkeley-db=/usr/local/include/db41:/usr/local/lib
> 
> Lemme know if that works.  Thanks,

    same result :(

    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 -R/usr/local/lib    -L/usr/local/lib conftest.c  -L/usr/local/lib  -lexpat  >&5
    /tmp/ccpwWv1u.o: In function `main':
    /usr/home/roman/install/svn-6740/configure:8839: undefined reference to `db_version'

-- 
The From: header's been munged to get rid of unwanted cc's.
My real address: neuhauser@bellavista.cz.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: 6740: undefined reference to `db_version'

Posted by Sander Striker <st...@apache.org>.
[moving to dev@]

> -----Original Message-----
> From: Roman Neuhauser [mailto:neuhauser@bellavista.cz]
> Sent: Friday, August 15, 2003 2:27 PM
> To: svn-users
> Subject: 6740: undefined reference to `db_version'

Grmbl, grmbl, grmbl.

> 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"

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

It seems like linking is failing, not the compile.

> how can I get rid of the problem?

Can you try the following for me:

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

Lemme know if that works.  Thanks,

Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: 6740: undefined reference to `db_version'

Posted by Sander Striker <st...@apache.org>.
[moving to dev@]

> -----Original Message-----
> From: Roman Neuhauser [mailto:neuhauser@bellavista.cz]
> Sent: Friday, August 15, 2003 2:27 PM
> To: svn-users
> Subject: 6740: undefined reference to `db_version'

Grmbl, grmbl, grmbl.

> 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"

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

It seems like linking is failing, not the compile.

> how can I get rid of the problem?

Can you try the following for me:

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

Lemme know if that works.  Thanks,

Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org