HI Ceriel,
Earlier there was a report that building vos 6 tp1 had some issues
on mac os x 10.6 (snow leopard): build on Mac os X 10.6 Intel 64-
bit, strfuns.h:77: error: expected declaration specifiers or '...'
before numeric constant
Now I also tried vos-5.0.11, and that returns the same error:
gcc -DHAVE_CONFIG_H -I. -I../../libsrc/Dk -fno-strict-aliasing -O2 -
Wall -DNDEBUG -DPOINTER_64 -I/Users/ceriel/src/virtuoso-
opensource-5.0.11/libsrc/Xml.new -DOPENSSL_NO_KRB5 -D_GNU_SOURCE -
DIN_LIBUTIL -DGLOBALREF=extern -I../../libsrc -I../../libsrc/Dk -
DSUPPORT_UTF8 -O -m64 -mmacosx-version-min=10.5 -MT libutil_la-
buildarg.lo -MD -MP -MF .deps/libutil_la-buildarg.Tpo -c
buildarg.c -fno-common -DPIC -o .libs/libutil_la-buildarg.o
In file included from ../../libsrc/libutil.h:38,
from buildarg.c:29:
../../libsrc/util/strfuns.h:77: error: expected declaration
specifiers or '...' before numeric constant
../../libsrc/util/strfuns.h:77: error: expected ')' before '!=' token
../../libsrc/util/strfuns.h:77: error: expected ')' before '?' token
make[3]: *** [libutil_la-buildarg.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
I get a slight feeling that this is caused by something in my
environment. Also tried another os x 10.6 installation (more
cleanly installed), which also doesn't succeed.
Who can give me a hint on what/how to improve the virtuoso building
on mac os x 10.6?
Just put a comment (//) in front of the offending line 77 of strfuns.h
The problem is that the gcc compiler has an inline for this memmove,
so it tries to rewrite this function prototype which then causes this
bad syntax problem. This line should be guarded by the #ifdef ...
#endif surrounding it, but due to a fault in configure, this does not
happen.
This is all resolved in the upcoming 5.0.12 and 6.0.0 releases of
Virtuoso.
Patrick