[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
Thu Aug 24 19:10:05 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
Resolution: | Keywords: snowleopard
Port: subversion |
-------------------------+-------------------------
Comment (by ballapete):
It worked to build and install db48 witch Clang 3.7 instead Clang 3.9 (I
wonder why GCC isn't used, is it too reliable?). I then added
{{{
50 configure.cppflags-append -H
51 configure.ldflags-append -t
}}}
to Portfile to see what configure is performing. It is this:
{{{
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 -H
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -L/opt/local/lib
-Wl,-headerpad_max_install_names -t -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
. /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
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_subversion/subversion/work/.tmp
/conftest-e1994d.o
/opt/local/lib/db46/libdb-4.6.dylib
/usr/lib/libSystem.dylib
/usr/lib/system/libmathCommon.A.dylib
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.
}}}
As you can see, on the command line `db48` is visible, but Clang 3.9 is so
clever as some MS Windows tool and includes
`/opt/local/include/db48/db.h`. One more Clang bug, isn't it?
--
Ticket URL: <https://trac.macports.org/ticket/54646#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list