Re: [OMPI devel] [OMPI svn-full] svn:open-mpi r20003 (Solaris malloc.h issue)

2009-04-16 Thread George Bosilca
I don't think this is correct. We are not supposed to include anything before the ompi_config.h. Moreover, in the case we redefine what malloc is, this will be the only piece of code that will use the real malloc. I wonder why we need to include malloc.h there? We don't allocate any

Re: [OMPI devel] [OMPI svn-full] svn:open-mpi r20003 (Solaris malloc.h issue)

2009-04-16 Thread Ethan Mallove
Hi, I think I have a better fix for this issue. It is to simply #include *before* ompi_config.h. --- ompi/mca/common/mx/common_mx.c +++ ompi/mca/common/mx/common_mx.c @@ -19,15 +19,16 @@ * $HEADER$ */ +#ifdef HAVE_MALLOC_H +#include +#endif + #include "ompi_config.h"

Re: [OMPI devel] [OMPI svn-full] svn:open-mpi r20003 (Solaris malloc.h issue)

2008-12-10 Thread Ethan Mallove
Hi Patrick, r20003 seems to break MX support on Solaris. $ cd ompi/mca/common/mx $ make ... "/usr/include/malloc.h", line 46: syntax error before or at: ( "/usr/include/malloc.h", line 47: syntax error before or at: ( "/usr/include/malloc.h", line 48: syntax error before or at: (