[MacPorts] #19881: subversion-1.6.2 fails with apr-util 1.3.7 due to bdb library issues

MacPorts noreply at macports.org
Tue Jun 9 01:27:00 PDT 2009


#19881: subversion-1.6.2 fails with apr-util 1.3.7 due to bdb library issues
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  Reporter:  blb@…                                                                                                                                                                     |       Owner:  dluke@…           
      Type:  defect                                                                                                                                                                    |      Status:  closed            
  Priority:  Normal                                                                                                                                                                    |   Milestone:                    
 Component:  ports                                                                                                                                                                     |     Version:  1.8.0             
Resolution:  fixed                                                                                                                                                                     |    Keywords:                    
      Port:  subversion subversion-javahlbindings subversion-perlbindings subversion-python24bindings subversion-python25bindings subversion-python26bindings subversion-rubybindings  |  
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Comment(by karsten@…):

 I have the latest portfile but building still fails.... From config.log:
 {{{
 configure:23416: checking for availability of Berkeley DB
 configure:23499: gcc -o conftest -g -O2    -I/opt/local/include/db46
 -I/opt/local/include/apr-1 -I/opt/local/include    -DDARWIN
 -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include/apr-1
 -I/opt/local/include/apr-1 -I/opt/local/include     -
 L/opt/local/lib -L/opt/local/lib/db46 conftest.c  -L/opt/local/lib
 -ldb-4.6  >&5
 conftest.c: In function 'main':
 conftest.c:41: error: 'DB_VERSION_MAJOR' undeclared (first use in this
 function)
 conftest.c:41: error: (Each undeclared identifier is reported only once
 conftest.c:41: error: for each function it appears in.)
 conftest.c:42: error: 'DB_VERSION_MINOR' undeclared (first use in this
 function)
 conftest.c:42: error: 'DB_VERSION_PATCH' undeclared (first use in this
 function)
 configure:23503: $? = 1
 configure: program exited with status 1
 configure: failed program was:
 | /* confdefs.h.  */
 | #define PACKAGE_NAME "subversion"
 | #define PACKAGE_TARNAME "subversion"
 | #define PACKAGE_VERSION "1.6.2"
 | #define PACKAGE_STRING "subversion 1.6.2"
 | #define PACKAGE_BUGREPORT "http://subversion.tigris.org/"
 | #define SVN_NEON_0_26 1
 | #define SVN_NEON_0_27 1
 | #define SVN_NEON_0_28 1
 | #define SVN_HAVE_NEON 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_SERF_H 1
 | #define SVN_HAVE_SERF 1
 | #define SVN_HAVE_MEMCACHE 1
 | #define SVN_BINDIR "/opt/local/bin"
 | #define SVN_LOCALE_DIR "/opt/local/share/locale"
 | #define HAVE_DLFCN_H 1
 | /* end confdefs.h.  */
 |
 | #include <stdlib.h>
 | #define APU_WANT_DB
 | #include <apu_want.h>
 |
 | int 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);
 | }
 |
 configure:23539: result: no
 configure:23543: error: Berkeley DB 4.0.14 or newer wasn't found.
 }}}
 ----
 My GCC is:
 {{{
 kmac:subversion-1.6.2 karsten$ gcc -v
 Using built-in specs.
 Target: i686-apple-darwin9
 Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable-checking
 -enable-werror --prefix=/usr --mandir=/share/man --enable-
 languages=c,objc,c++,obj-c++ --program-transform-
 name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0
 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple
 --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
 Thread model: posix
 gcc version 4.0.1 (Apple Inc. build 5490)
 }}}
 ----

-- 
Ticket URL: <http://trac.macports.org/ticket/19881#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list