Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] building the 1.4.1 rpm under RHEL 5
From: Matthias Jurenz (matthias.jurenz_at_[hidden])
Date: 2010-01-20 11:00:45

Hello Dave,

unfortunately, we have no such platform for trying to reproduce this error,
but we would be pleased, if you could help us to identify the problem.

We guess that the following will fix the problem:

Could you please insert the line
        #undef fprintf
in the file ompi/contrib/vt/vt/vtlib/vt_iowrap.c at line 1241 (right before the
function definition of fprintf) and try building again?

Thanks for your help!


> From: Dave Love <d.love_at_[hidden]>
> Date: January 20, 2010 9:22:28 AM EST
> To: users_at_[hidden]
> Subject: [OMPI users] building the 1.4.1 rpm under RHEL 5
> Reply-To: Open MPI Users <users_at_[hidden]>
> Before I take time investigating, is anyone aware of problems/solutions
> to building the rpm with gcc on current RedHat 5? Just an `rpmbuild
> --rebuild' fails as follows, and I'm surprised if it's specific to here.
> (I looked for a previous problem report, of course.)
> make[5]: Entering directory
> gcc -DHAVE_CONFIG_H -I. -I.. -I../tools/opari/lib -I../extlib/otf/otflib -
I../extlib/otf/otflib -D_GNU_SOURCE -DBINDIR=\"/usr/bin\" -
DDATADIR=\"/usr/share\" -DRFG -DVT_BFD -DVT_MEMHOOK -DVT_IOWRAP -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -MT vt_iowrap.o -MD -MP -MF .deps/vt_iowrap.Tpo -c
-o vt_iowrap.o vt_iowrap.c
> vt_iowrap.c:1242: error: expected declaration specifiers or ‘...’
before numeric constant
> vt_iowrap.c:1243: error: conflicting types for ‘__fprintf_chk’