[MacPorts] #66273: gnutls @3.6.16_4 does not build on PPC Tiger, Mac OS X 10.4.11, because a configure script hangs in an endless loop?

MacPorts noreply at macports.org
Wed Nov 16 13:57:04 UTC 2022


#66273: gnutls @3.6.16_4 does not build on PPC Tiger, Mac OS X 10.4.11, because a
configure script hangs in an endless loop?
------------------------+-----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.0
Resolution:             |   Keywords:  tiger ppc
      Port:  gnutls     |
------------------------+-----------------------

Comment (by ballapete):

 The last tests in `config.log` are:

 {{{
 configure:66234: $? = 0
 configure:66234: result: yes
 configure:66258: checking for nettle_siv_cmac_aes128_set_key
 configure:66258: /opt/local/bin/gcc-mp-7 -o conftest -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -I/opt/local/include
 -D__WORDSIZE=32 -I/opt/local/include/LegacySupport -L/opt/local/lib
 -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch ppc
 conftest.c  -L/opt/local/lib -lnettle >&5
 configure:66258: $? = 0
 configure:66258: result: yes
 configure:66280: checking gmp soname
 configure:66296: /opt/local/bin/gcc-mp-7 -o conftest -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -I/opt/local/include
 -D__WORDSIZE=32 -I/opt/local/include/LegacySupport -L/opt/local/lib
 -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch ppc
 conftest.c  -lgmp >&5
 configure:66296: $? = 0
 }}}

 then follows the section of:

 {{{
 ## ---------------- ##
 ## Cache variables. ##
 ## ---------------- ##
 }}}

 Presumingly these are the corresponding lines in the `configure` script:

 {{{
 66298   # Check for SIV-CMAC
 66299   save_LIBS=$LIBS
 66300   LIBS="$LIBS $NETTLE_LIBS"
 66301   for ac_func in nettle_siv_cmac_aes128_set_key
 66302   do :
 66303     ac_fn_c_check_func "$LINENO" "nettle_siv_cmac_aes128_set_key"
 "ac_cv_func_nettle_siv_cmac_aes128_set_key"
 66304   if test "x$ac_cv_func_nettle_siv_cmac_aes128_set_key" = xyes; then
 :
 66305     cat >>confdefs.h <<_ACEOF
 66306   #define HAVE_NETTLE_SIV_CMAC_AES128_SET_KEY 1
 66307   _ACEOF
 66308
 66309   fi
 66310   done
 66311
 66312   LIBS=$save_LIBS
 66313    if test "$ac_cv_func_nettle_siv_cmac_aes128_set_key" != "yes";
 then
 66314     NEED_SIV_TRUE=
 66315     NEED_SIV_FALSE='#'
 66316   else
 66317     NEED_SIV_TRUE='#'
 66318     NEED_SIV_FALSE=
 66319   fi
 66320
 66321
 66322   # Check sonames of the linked libraries needed for FIPS selftests.
 66323   save_LIBS=$LIBS
 66324   LIBS="$LIBS $GMP_LIBS"
 66325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gmp soname" >&5
 66326   $as_echo_n "checking gmp soname... " >&6; }
 66327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 66328   /* end confdefs.h.  */
 66329
 66330                  #include <gmp.h>
 66331   int
 66332   main ()
 66333   {
 66334
 66335                  mpz_t n;
 66336                  mpz_init(n);
 66337     ;
 66338     return 0;
 66339   }
 66340   _ACEOF
 66341   if ac_fn_c_try_link "$LINENO"; then :
 66342     gmp_so=`(eval "$LDDPROG conftest$EXEEXT $LDDPOSTPROC") | grep
 '^libgmp\.so'`
 66343   else
 66344     gmp_so=none
 66345   fi
 66346   rm -f core conftest.err conftest.$ac_objext \
 66347       conftest$ac_exeext conftest.$ac_ext
 66348   if test -z "$gmp_so"; then
 66349           gmp_so=none
 66350   fi
 66351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_so" >&5
 66352   $as_echo "$gmp_so" >&6; }
 66353
 66354   cat >>confdefs.h <<_ACEOF
 66355   #define GMP_LIBRARY_SONAME "$gmp_so"
 66356   _ACEOF
 }}}

 The problem seems to be that `configure` checks for `.so` files. On Mac OS
 X they use the extension `.dylib`…

-- 
Ticket URL: <https://trac.macports.org/ticket/66273#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list