src/framework/System/CType.h conflicts with /usr/include/ctype.h.
To preproduce:
$ cd <opencity_svn_trunk>/src && /opt/local/bin/x86_64-apple-darwin10-c++-mp-4.6 -v framework/System/AValueType.cpp -c -Iframework -Iframework/System 2>log.txt
replace "/opt/local/bin/x86_64-apple-darwin10-c++-mp-4.6" with whatever compiler you are using.
To get rid of the problem:
remove "-Iframework/System".
To solve:
a) rename CType.h
b) change make system so that it does not include src/framework/System
I had to remove the directory manually from the Makefile as i dont have experience with automake.
---------------------------------
system: Darwin mike.fritz.box 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386.
Case sensitivity is disabled on the volume (default install mode).
Please see log attached for more information
the patch to the makefile, after ../configure, before make
diff -u src/framework/System/Makefile.prev src/framework/System/Makefile
--- src/framework/System/Makefile.prev 2011-07-03 19:25:08.000000000 +0200
+++ src/framework/System/Makefile 2011-07-03 19:25:33.000000000 +0200
@@ -54,7 +54,7 @@
am_libSystem_la_OBJECTS = AValueType.lo CConsole.lo CNullValue.lo \
CObject.lo CString.lo CType.lo
libSystem_la_OBJECTS = $(am_libSystem_la_OBJECTS)
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+DEFAULT_INCLUDES = -I. -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f