[MacPorts] #48330: unbound 1.5.4 does not build on Mac OS X 10.6.8 (Snow Leopard) because it can't find a suitable and modern OpenSSL version

MacPorts noreply at macports.org
Sun Jul 12 10:38:38 PDT 2015


#48330: unbound 1.5.4 does not build on Mac OS X 10.6.8 (Snow Leopard) because it
can't find a suitable and modern OpenSSL version
-----------------------------+--------------------------------
 Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.3.3
 Keywords:                   |       Port:  unbound
-----------------------------+--------------------------------
 {{{
 checking for SSL... found in /opt/local
 checking for HMAC_CTX_init in -lcrypto... no
 checking if -lcrypto needs -lgdi32... no
 checking if -lcrypto needs -ldl... no
 configure: error: OpenSSL found in /opt/local, but version 0.9.7 or higher
 is required
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_unbound/unbound/work/unbound-1.5.4"
 && ./configure --prefix=/opt/local --with-
 pidfile=/opt/local/var/run/unbound/unbound.pid --with-rootkey-
 file=/opt/local/var/run/unbound/root.key
 Exit code: 1
 Error: Failed to configure unbound, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_unbound/unbound/work/unbound-1.5.4/config.log
 Error: org.macports.configure for port unbound returned: configure
 failure: command execution failed
 DEBUG: Error code: NONE
 }}}

 although I get:

 {{{
 port installed | grep openssl
   openssl @1.0.2d_0 (active)
 }}}

 config.log contains:

 {{{
 configure:15442: checking for pthread-config
 configure:15470: result: no
 configure:16337: checking for SSL
 configure:16361: result: found in /opt/local
 configure:16376: checking for HMAC_CTX_init in -lcrypto
 configure:16394: /usr/bin/llvm-gcc-4.2 -o conftest -pipe -Os -arch x86_64
 -flto -I/opt/local/include -I/opt/local/include -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -L/opt/local/lib conftest.c
 -lcrypto >&5
 ld: lto: could not merge in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_unbound/unbound/work/.tmp/ccYrP6Cm.o
 because Unknown instruction for architecture x86_64
 collect2: ld returned 1 exit status
 configure:16394: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "unbound"
 | #define PACKAGE_TARNAME "unbound"
 | #define PACKAGE_VERSION "1.5.4"
 | #define PACKAGE_STRING "unbound 1.5.4"
 | #define PACKAGE_BUGREPORT "unbound-bugs at nlnetlabs.nl"
 | #define PACKAGE_URL ""
 | #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 __EXTENSIONS__ 1
 | #define _ALL_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define _TANDEM_SOURCE 1
 | #define CONFIGFILE "/opt/local/etc/unbound/unbound.conf"
 | #define RUN_DIR "/opt/local/etc/unbound"
 | #define CHROOT_DIR "/opt/local/etc/unbound"
 | #define SHARE_DIR "/opt/local/etc/unbound"
 | #define PIDFILE "/opt/local/var/run/unbound/unbound.pid"
 | #define ROOT_ANCHOR_FILE "/opt/local/var/run/unbound/root.key"
 | #define ROOT_CERT_FILE "/opt/local/etc/unbound/icannbundle.pem"
 | #define UB_USERNAME "unbound"
 | #define WINVER 0x0502
 | #define RSRC_PACKAGE_VERSION 1,5,4,0
 | #define HAVE_GETOPT_H 1
 | #define HAVE_TIME_H 1
 | #define HAVE_ATTR_FORMAT 1
 | #define HAVE_ATTR_UNUSED 1
 | #define LEX_HAS_YYLEX_DESTROY 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | #define HAVE_STDARG_H 1
 | #define HAVE_STDBOOL_H 1
 | #define HAVE_NETINET_IN_H 1
 | #define HAVE_SYS_PARAM_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_SYS_UN_H 1
 | #define HAVE_SYS_UIO_H 1
 | #define HAVE_SYS_RESOURCE_H 1
 | #define HAVE_ARPA_INET_H 1
 | #define HAVE_SYSLOG_H 1
 | #define HAVE_NETDB_H 1
 | #define HAVE_SYS_WAIT_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_GLOB_H 1
 | #define HAVE_GRP_H 1
 | #define SIZEOF_TIME_T 0
 | #define HAVE_UNISTD_H 1
 | #define vfork fork
 | #define RETSIGTYPE void
 | #define NONBLOCKING_IS_BROKEN 1
 | #define HAVE_MALLOC 1
 | #define HAVE_SSL /**/
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |                 int HMAC_CTX_init(void);
 |                 (void)HMAC_CTX_init();
 |
 |   ;
 |   return 0;
 | }
 configure:16404: result: no
 …
 configure:16459: /usr/bin/llvm-gcc-4.2 -o conftest -pipe -Os -arch x86_64
 -flto -I/opt/local/include -I/opt/local/include -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -L/opt/local/lib conftest.c
 -lcrypto -ldl >&5
 ld: lto: could not merge in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_unbound/unbound/work/.tmp/ccpgjMhl.o
 because Unknown instruction for architecture x86_64
 collect2: ld returned 1 exit status
 configure:16459: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "unbound"
 | #define PACKAGE_TARNAME "unbound"
 | #define PACKAGE_VERSION "1.5.4"
 | #define PACKAGE_STRING "unbound 1.5.4"
 | #define PACKAGE_BUGREPORT "unbound-bugs at nlnetlabs.nl"
 | #define PACKAGE_URL ""
 | #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 __EXTENSIONS__ 1
 | #define _ALL_SOURCE 1
 | #define _GNU_SOURCE 1
 | #define _POSIX_PTHREAD_SEMANTICS 1
 | #define _TANDEM_SOURCE 1
 | #define CONFIGFILE "/opt/local/etc/unbound/unbound.conf"
 | #define RUN_DIR "/opt/local/etc/unbound"
 | #define CHROOT_DIR "/opt/local/etc/unbound"
 | #define SHARE_DIR "/opt/local/etc/unbound"
 | #define PIDFILE "/opt/local/var/run/unbound/unbound.pid"
 | #define ROOT_ANCHOR_FILE "/opt/local/var/run/unbound/root.key"
 | #define ROOT_CERT_FILE "/opt/local/etc/unbound/icannbundle.pem"
 | #define UB_USERNAME "unbound"
 | #define WINVER 0x0502
 | #define RSRC_PACKAGE_VERSION 1,5,4,0
 | #define HAVE_GETOPT_H 1
 | #define HAVE_TIME_H 1
 | #define HAVE_ATTR_FORMAT 1
 | #define HAVE_ATTR_UNUSED 1
 | #define LEX_HAS_YYLEX_DESTROY 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | #define HAVE_STDARG_H 1
 | #define HAVE_STDBOOL_H 1
 | #define HAVE_NETINET_IN_H 1
 | #define HAVE_SYS_PARAM_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_SYS_UN_H 1
 | #define HAVE_SYS_UIO_H 1
 | #define HAVE_SYS_RESOURCE_H 1
 | #define HAVE_ARPA_INET_H 1
 | #define HAVE_SYSLOG_H 1
 | #define HAVE_NETDB_H 1
 | #define HAVE_SYS_WAIT_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_GLOB_H 1
 | #define HAVE_GRP_H 1
 | #define SIZEOF_TIME_T 0
 | #define HAVE_UNISTD_H 1
 | #define vfork fork
 | #define RETSIGTYPE void
 | #define NONBLOCKING_IS_BROKEN 1
 | #define HAVE_MALLOC 1
 | #define HAVE_SSL /**/
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |                         int HMAC_CTX_init(void);
 |                         (void)HMAC_CTX_init();
 |
 |   ;
 |   return 0;
 | }
 configure:16469: result: no
 configure:16471: error: OpenSSL found in /opt/local, but version 0.9.7 or
 higher is required
 }}}

 This error `because Unknown instruction for architecture x86_64` comes
 quite often in config.log…

-- 
Ticket URL: <https://trac.macports.org/ticket/48330>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list