[MacPorts] #54646: subversion @1.9.7 does not build on Snow Leopard, Mac OS X 10.6.8, because "Berkeley DB 4.0.14 or 5.x wasn't found"
MacPorts
noreply at macports.org
Sun Aug 20 19:43:28 UTC 2017
#54646: subversion @1.9.7 does not build on Snow Leopard, Mac OS X 10.6.8, because
"Berkeley DB 4.0.14 or 5.x wasn't found"
-------------------------+------------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Keywords: snowleopard | Port: subversion
-------------------------+------------------------
{{{
checking whether libtool needs -no-undefined... no
checking for trang... none
checking for doxygen... /opt/local/bin/doxygen
checking for Expat... yes
checking for socket in -lsocket... no
checking for availability of Berkeley DB... no
configure: error: Berkeley DB 4.0.14 or 5.x wasn't found.
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_subversion/subversion/work/subversion-1.9.7"
&& ./configure --prefix=/opt/local --with-berkeley-
db=:/opt/local/include/db46:/opt/local/lib/db46:db-4.6 --with-
apr=/opt/local/bin/apr-1-config --with-apr-
util=/opt/local/bin/apu-1-config --without-apxs
--mandir=\${prefix}/share/man --with-serf=/opt/local --with-
sasl=/opt/local --with-libmagic=/opt/local --without-gnome-keyring
Exit code: 1
Error: Failed to configure subversion, consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_subversion/subversion/work/subversion-1.9.7/config.log
Error: Failed to configure subversion: configure failure: command
execution failed
}}}
{{{
configure:18891: checking for availability of Berkeley DB
configure:18992: /opt/local/bin/clang-mp-3.9 -o conftest -Werror=unknown-
warning-option -pipe -Os -arch x86_64 -I/opt/local/include/db46
-I/opt/local/include/apr-1 -I/opt/local/include -I/opt/local/include
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch x86_64 -L/opt/local/lib/db46
-L/opt/local/lib -L/opt/local/lib -L/opt/local/lib/db46 conftest.c
-L/opt/local/lib/db46 -L/opt/local/lib -ldb-4.6 >&5
configure:18992: $? = 0
configure:18992: ./conftest
configure:18992: $? = 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.9.7"
| #define PACKAGE_STRING "subversion 1.9.7"
| #define PACKAGE_BUGREPORT "http://subversion.apache.org/"
| #define PACKAGE_URL ""
| #define SVN_SOVERSION 0
| #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 SVN_HAVE_SERF 1
| #define SVN_HAVE_MEMCACHE 1
| #define SVN_HAS_ATOMIC_BUILTINS 1
| #define SVN_BINDIR "/opt/local/bin"
| #define SVN_LOCALE_DIR "/opt/local/share/locale"
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
|
| #include <string.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);
|
| /* Block Berkeley DB 6, because (a) we haven't tested with it, (b)
6.0.20
| and newer are under the AGPL, and we want use of AGPL dependencies
to be
| opt-in. */
| if (major >= 6 && strcmp("unspecified", "yes"))
| exit(2);
|
| /* 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:19020: result: no
configure:19025: error: Berkeley DB 4.0.14 or 5.x wasn't found.
}}}
Well, this is the *truth*. I do have installed Berkeley DB 4.8.30. And
4.6.21…
Port decided at some time to install db48, although no port needs it,
according to `port echo depof:db48` (only clang-3.9 is listed, but it's
also listed with db46). So the actual problem is that `db_version ()` in
`conftest` returns 4.6.21, but Clang includes`..
/opt/local/include/db48/db.h` although its invocation is:
{{{
/opt/local/bin/clang-mp-3.9 -o conftest -Werror=unknown-warning-option
-pipe -Os -arch x86_64 -I/opt/local/include/db46
-I/opt/local/include/apr-1 -I/opt/local/include -I/opt/local/include
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch x86_64 -L/opt/local/lib/db46
-L/opt/local/lib -L/opt/local/lib -L/opt/local/lib/db46 conftest.c
-L/opt/local/lib/db46 -L/opt/local/lib -ldb-4.6
}}}
At least when I run – in my private environment – this command with `-H
-Wl,-t` added I get:
{{{
. /usr/include/string.h
.. /usr/include/_types.h
... /usr/include/sys/_types.h
.... /usr/include/sys/cdefs.h
.... /usr/include/machine/_types.h
..... /usr/include/i386/_types.h
.. /usr/include/secure/_string.h
... /usr/include/secure/_common.h
. /usr/include/stdlib.h
.. /usr/include/Availability.h
... /usr/include/AvailabilityInternal.h
.. /usr/include/sys/wait.h
... /usr/include/sys/signal.h
.... /usr/include/sys/appleapiopts.h
.... /usr/include/machine/signal.h
..... /usr/include/i386/signal.h
...... /usr/include/i386/_structs.h
.... /usr/include/sys/_structs.h
..... /usr/include/machine/_structs.h
...... /usr/include/i386/_structs.h
....... /usr/include/mach/i386/_structs.h
... /usr/include/sys/resource.h
.... /usr/include/sys/_structs.h
... /usr/include/machine/endian.h
.... /usr/include/i386/endian.h
..... /usr/include/sys/_endian.h
...... /usr/include/libkern/_OSByteOrder.h
....... /usr/include/libkern/i386/_OSByteOrder.h
.. /usr/include/alloca.h
.. /usr/include/machine/types.h
... /usr/include/i386/types.h
. /opt/local/include/apr-1/apu_want.h
.. /opt/local/include/apr-1/apu.h
.. /opt/local/include/db48/db.h
... /usr/include/sys/types.h
.... /usr/include/sys/_structs.h
... /opt/local/libexec/llvm-3.9/bin/../lib/clang/3.9.1/include/inttypes.h
.... /usr/include/inttypes.h
..... /opt/local/libexec/llvm-3.9/bin/../lib/clang/3.9.1/include/stdint.h
...... /usr/include/stdint.h
... /opt/local/libexec/llvm-3.9/bin/../lib/clang/3.9.1/include/stddef.h
....
/opt/local/libexec/llvm-3.9/bin/../lib/clang/3.9.1/include/__stddef_max_align_t.h
... /usr/include/stdio.h
.... /usr/include/secure/_stdio.h
... /usr/include/unistd.h
.... /usr/include/sys/unistd.h
.... /usr/include/sys/select.h
..... /usr/include/sys/_structs.h
..... /usr/include/sys/_select.h
... /usr/include/pthread.h
.... /usr/include/pthread_impl.h
.... /usr/include/sched.h
.... /usr/include/time.h
..... /usr/include/_structs.h
...... /usr/include/sys/_structs.h
/usr/lib/crt1.10.6.o
/var/folders/PR/PR9ZvjydEAmPxO7U5PFnBk+++TM/-Tmp-/conftest-fd40fa.o
/opt/local/lib/db46/libdb-4.6.dylib
/usr/lib/libSystem.dylib
/usr/lib/system/libmathCommon.A.dylib
}}}
Another Clang bug found?
BTW:
{{{
pete 123 /\ port select --summary
Name Selected Options
==== ======== =======
awscli none py27-awscli none
clang mp-clang-4.0 mp-clang-3.7 mp-clang-3.9 mp-clang-4.0 none
cython cython27 cython27 none
db db48 db48 none
gcc mp-gcc6 gcc40 gcc42 llvm-gcc42 mp-gcc5 mp-gcc6 none
llvm mp-llvm-4.0 mp-llvm-3.7 mp-llvm-3.9 mp-llvm-4.0 none
pip pip27 pip27 none
python python27 python25-apple python26-apple python27 python36
none
python2 python27 python25-apple python26-apple python27 none
python3 python36 python36 none
}}}
db_select obviously is defective:
{{{
port select --set db db46
Selecting 'db46' for 'db' failed: The specified version 'db46' is not
valid.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/54646>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list