[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
Sat Jan 23 14:31:24 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
      Port:  libgcrypt  |
------------------------+-------------------------

Comment (by ballapete):

 My idea does not work:

 {{{
 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/cipher'
 /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2
 -DHAVE_CONFIG_H -I. -I..  -I../src -I../src -I../mpi -I../mpi
 -I/opt/local/include -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc
 -fno-delete-null-pointer-checks -Wall -MT cipher.lo -MD -MP -MF
 .deps/cipher.Tpo -c -o cipher.lo cipher.c
 libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I../src
 -I../src -I../mpi -I../mpi -I/opt/local/include -I/opt/local/include -pipe
 -Os -std=gnu89 -arch ppc -fno-delete-null-pointer-checks -Wall -MT
 cipher.lo -MD -MP -MF .deps/cipher.Tpo -c cipher.c  -fno-common -DPIC -o
 .libs/cipher.o
 In file included from ../src/cipher.h:90,
                  from ././poly1305-internal.h:29,
                  from ./cipher-internal.h:23,
                  from cipher.c:30:
 ../src/cipher-proto.h:138: error: expected declaration specifiers or '...'
 before 'cipher_bulk_ops_t'
 cipher.c: In function 'cipher_setkey':
 cipher.c:735: error: too many arguments to function 'c->spec->setkey'
 cipher.c:769: error: too many arguments to function 'c->spec->setkey'
 make[2]: *** [cipher.lo] Error 1
 }}}

 Things like `c->spec->setkey` do not look like ''good old C'' so
 presumingly `libgcrypt` should better be built with `GCC7`… That's my next
 try!

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


More information about the macports-tickets mailing list