failure to build cmake - problems with LegacySupport

Riccardo Mottola riccardo.mottola at
Thu Mar 19 17:03:28 UTC 2020


while building cmake on Leopard 10.5, I get this error:

In file included from /usr/include/assert.h:44:
/opt/local/include/LegacySupport/stdlib.h:44:14: error: conflicting asm 
extern char *realpath(const char * __restrict, char * __restrict)
/usr/include/stdlib.h:226:60: note: previous declaration is here
char    *realpath(const char * __restrict, char * __restrict) 
/usr/include/sys/cdefs.h:365:36: note: expanded from macro '__DARWIN_EXTSN'
#define __DARWIN_EXTSN(sym)             __asm("_" __STRING(sym) 
In file included from 

what is actually the issue here? what is __DARWIN_EXTSN ?

As a test, I tried to subsistute in the LegaxySupport

extern char *realpath(const char * __restrict, char * __restrict)


extern char    *realpath(const char * __restrict, char * __restrict) 

but then it doesn't work...

I tried undef'ing


then things "go" and I compiled cmake!


More information about the macports-users mailing list