[MacPorts] #62132: libgcrypt @1.9.0 does not build on PPC Leopard, Mac OS X 10.5.8, because of "error: redefinition of typedef 'cipher_bulk_ops_t'"

MacPorts noreply at macports.org
Sun Jan 24 09:51:38 UTC 2021


#62132: libgcrypt @1.9.0 does not build on PPC Leopard, Mac OS X 10.5.8, because of
"error: redefinition of typedef 'cipher_bulk_ops_t'"
------------------------+----------------------------
  Reporter:  ballapete  |      Owner:  Schamschula
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.4
Resolution:             |   Keywords:  leopard, tiger
      Port:  libgcrypt  |
------------------------+----------------------------

Comment (by ballapete):

 Changing the original

 {{{
 #ifdef USE_POSIX_SPAWN_FOR_TESTS
 #include <spawn.h>
 extern char **environ;
 }}}

 to

 {{{
 #ifdef USE_POSIX_SPAWN_FOR_TESTS
 #include <sys/spawn.h>
 extern char **environ;
 }}}

 leads to a new error:

 {{{
 Making all in tests
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.9.0/tests'
 /opt/local/bin/gcc-mp-7 -DHAVE_CONFIG_H -I. -I..  -I../src -I../src
 -I/opt/local/include -I/opt/local/include/LegacySupport
 -I/opt/local/include -pipe -Os -std=gnu89
 -I/opt/local/include/LegacySupport -arch ppc -fno-delete-null-pointer-
 checks -Wall -MT random.o -MD -MP -MF .deps/random.Tpo -c -o random.o
 random.c
 random.c: In function 'run_all_rng_tests':
 random.c:551:11: warning: implicit declaration of function 'posix_spawn';
 did you mean 'posix_openpt'? [-Wimplicit-function-declaration]
        if (posix_spawn (&pid, program, NULL, NULL, argv, environ))
            ^~~~~~~~~~~
            posix_openpt
 mv -f .deps/random.Tpo .deps/random.Po
 /bin/sh ../libtool  --tag=CC   --mode=link /opt/local/bin/gcc-mp-7
 -I/opt/local/include -pipe -Os -std=gnu89
 -I/opt/local/include/LegacySupport -arch ppc -fno-delete-null-pointer-
 checks -Wall -no-install -L/opt/local/lib -Wl,-headerpad_max_install_names
 -lMacportsLegacySupport -arch ppc -o random random.o ../src/libgcrypt.la
 ../compat/libcompat.la -L/opt/local/lib -lgpg-error
 libtool: link: warning: `-no-install' is ignored for powerpc-apple-
 darwin8.11.0
 libtool: link: warning: assuming `-no-fast-install' instead
 libtool: link: /opt/local/bin/gcc-mp-7 -I/opt/local/include -pipe -Os
 -std=gnu89 -I/opt/local/include/LegacySupport -arch ppc -fno-delete-null-
 pointer-checks -Wall -Wl,-headerpad_max_install_names -arch ppc -o
 .libs/random random.o  -L/opt/local/lib ../src/.libs/libgcrypt.dylib
 ../compat/.libs/libcompat.a -lMacportsLegacySupport /opt/local/lib/libgpg-
 error.dylib
 Undefined symbols:
   "_posix_spawn", referenced from:
       _main in random.o
 ld: symbol(s) not found
 collect2: error: ld returned 1 exit status
 make[2]: *** [random] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libgcrypt/libgcrypt/work/libgcrypt-1.9.0/tests'
 make[1]: *** [all-recursive] Error 1
 }}}


 So it seems that the Legacy Support version 1.0 is not prepared for this?

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


More information about the macports-tickets mailing list