[MacPorts] #24541: gcc43 failed to compile because of typedef conflict
MacPorts
noreply at macports.org
Tue Nov 9 12:45:11 PST 2010
#24541: gcc43 failed to compile because of typedef conflict
-----------------------------------+----------------------------------------
Reporter: rwilsont1@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: | Port: gcc43
-----------------------------------+----------------------------------------
Comment(by ksnelgrove@…):
Replying to [comment:4 donnie.smith@…]:
> I ran into this error as well. In my case, it was caused by a symlink
from /usr/include/malloc.h to /usr/include/malloc/malloc.h that I had
created to satiate an unrelated program. The existence of this header was
recognized by gcc's configure script, which caused it to be included by
system.h. Unfortunately, malloc/malloc.h includes other type headers that
eventually pull in mach/vm_types.h which contains a pointer_t type that
conflicts with an unrelated type in module.c.
>
> In short, the fix (for me, at least) was to get rid of the
/usr/include/malloc.h I had added.
Thanks, this fixed my problem as well. I had linked to
/usr/include/malloc/malloc.h from /usr/include/malloc.h for an unrelated
problem and had not switched it back. Thanks for posting this! I'm
running OS X 10.6.4 & Xcode 3.2.4. This does not occur in 10.5.8 and the
build proceeds.
--
Ticket URL: <https://trac.macports.org/ticket/24541#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list