Opened 4 years ago
Closed 4 years ago
#60651 closed defect (fixed)
wdsp @20191111-e1926b68: error: redefinition of typedef ‘complex’
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | ra1nb0w |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | snowleopard | Cc: | |
Port: | wdsp |
Description
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.
Change History (1)
comment:1 Changed 4 years ago by Davide Gerhard <ra1nb0w@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In c2f29c31270d13afba23ef8eadb506e8770a10ec/macports-ports (master):