Hi!

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 label
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) __DARWIN_EXTSN(realpath);
                                                              ^
/usr/include/sys/cdefs.h:365:36: note: expanded from macro '__DARWIN_EXTSN'
#define __DARWIN_EXTSN(sym) __asm("_" __STRING(sym) __DARWIN_SUF_EXTSN)
                                              ^
In file included from /opt/local/var/macports/build/_Users_multix_code_kencu-LeopardPorts_devel_cmake/cmake/work/cmake-3.15.5/Source/cmAddCustomCommandCommand.cxx:9:


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)

with

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

but then it doesn't work...

I tried undef'ing

__ENABLE_MP_LEGACY_SUPPORT_REALPATH_WRAP__


then things "go" and I compiled cmake!

Riccardo

Reply via email to