[MacPorts] #60651: wdsp @20191111-e1926b68: error: redefinition of typedef ‘complex’

MacPorts noreply at macports.org
Sun Jun 14 14:53:38 UTC 2020


#60651: wdsp @20191111-e1926b68: error: redefinition of typedef ‘complex’
-------------------------+----------------------
 Reporter:  ryandesign   |      Owner:  ra1nb0w
     Type:  defect       |     Status:  assigned
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.6.2
 Keywords:  snowleopard  |       Port:  wdsp
-------------------------+----------------------
 [https://build.macports.org/builders/ports-10.6_i386-builder/builds/12823/steps
 /install-port/logs/stdio wdsp doesn't build], at least not on Snow
 Leopard:

 {{{
 gcc -I /include -I /include/linux  -g -fPIC -O3 -D _GNU_SOURCE  -c -o
 linux_port.o linux_port.c
 gcc -I /include -I /include/linux  -g -fPIC -O3 -D _GNU_SOURCE  -c -o
 amd.o amd.c
 gcc -I /include -I /include/linux  -g -fPIC -O3 -D _GNU_SOURCE  -c -o
 ammod.o ammod.c
 gcc -I /include -I /include/linux  -g -fPIC -O3 -D _GNU_SOURCE  -c -o
 amsq.o amsq.c
 In file included from syncbuffs.h:29,
                  from comm.h:100,
                  from RXA.h:29,
                  from comm.h:94,
                  from iobuffs.h:29,
                  from comm.h:81,
                  from channel.h:29,
                  from comm.h:62,
                  from analyzer.h:29,
                  from comm.h:54,
                  from amsq.c:27:
 comm.h:143: error: redefinition of typedef ‘complex’
 comm.h:143: error: previous declaration of ‘complex’ was here
 }}}

 This log shows that there are several other problems as well: it isn't
 UsingTheRightCompiler nor `-arch` (the makefile 1.0 portgroup might be
 used to fix that) and it's including nonexistent directories /include and
 /include/linux which it should not do.

 Type redefinitions aren't permitted by the old gcc 4 on Snow Leopard and
 ideally projects wouldn't redefine types. But the log shows MacPorts
 wanted the port to build with clang 9. Once the port is fixed so that it
 is UsingTheRightCompiler the type redefinition complaint should go away.

-- 
Ticket URL: <https://trac.macports.org/ticket/60651>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list