Hi all,
Quick question, I'm compiling 1.2.9rc1 and get an error during compilation:
//////////////////
source='mpicxx.cc' object='mpicxx.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../../../config/depcomp \
/bin/sh ../../../libtool --tag=CXX --mode=compile
/export/home/langston/COMPILER/SUNWspro/bin/CC -DHAVE_CONFIG_H -I.
-I../../../opal/include -I../../../orte/include -I../../../ompi/include
-DOMPI_BUILDING_CXX_BINDINGS_LIBRARY=1 -DOMPI_SKIP_MPICXX=1
-I../../.. -O -DNDEBUG -mt -c -o mpicxx.lo mpicxx.cc
libtool: compile: /export/home/langston/COMPILER/SUNWspro/bin/CC
-DHAVE_CONFIG_H -I. -I../../../opal/include -I../../../orte/include
-I../../../ompi/include -DOMPI_BUILDING_CXX_BINDINGS_LIBRARY=1
-DOMPI_SKIP_MPICXX=1 -I../../.. -O -DNDEBUG -mt -c mpicxx.cc -KPIC
-DPIC -o .libs/mpicxx.o
"mpicxx.cc", line 293: Error: A declaration does not specify a tag or an
identifier.
"mpicxx.cc", line 293: Error: Use ";" to terminate declarations.
"mpicxx.cc", line 293: Error: A declaration was expected instead of "0x01".
3 Error(s) detected.
gmake: *** [mpicxx.lo] Error 1
////////////////////////////
I'm working with OpenSolaris 2008.11 and have found the conflict to be with:
/usr/include/sys/synch.h , which also contains LOCK_SHARED
....
/* Keep the following values in sync with pthread.h */
#define LOCK_NORMAL 0x00 /* same as USYNC_THREAD */
#define LOCK_SHARED 0x01 /* same as USYNC_PROCESS */
#define LOCK_ERRORCHECK 0x02 /* error check lock */
#define LOCK_RECURSIVE 0x04 /* recursive lock */
#define LOCK_PRIO_INHERIT 0x10 /* priority inheritance
lock */
#define LOCK_PRIO_PROTECT 0x20 /* priority ceiling lock */
#define LOCK_ROBUST 0x40 /* robust lock */
......
If I comment out the line in the system include file, everything will finish
compiling, or if I comment out the line in mpicxx.cc, everything will finish
compiling.
Has anyone else found this issue and/or a workaround?
Thanks,
Jim