This is the mail archive of the
cygwin
mailing list for the Cygwin project.
conflicting header files VendorSP.h and VendorP.h
- From: Siegmar Gross <Siegmar dot Gross at informatik dot fh-fulda dot de>
- To: cygwin at cygwin dot com
- Date: Thu, 15 Jan 2009 13:32:51 +0100 (CET)
- Subject: conflicting header files VendorSP.h and VendorP.h
- Reply-to: Siegmar Gross <Siegmar dot Gross at informatik dot fh-fulda dot de>
Hi,
I have installed lam-7.1.4 and xmpi-2.2.3b8 on Cygwin-1.5.25.
Everything worked without problems for gcc-3.4.4. I've had smaller
problems with gcc-4.3.2 which I could solve as far as they were
related to lam-mpi/xmpi.
eiger lam-7.1.4 24 gcc-4 -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ...
Thread model: single
gcc version 4.3.2 20080827 (alpha-testing) 1 (GCC)
Unfortunately I couldn't solve a problem with conflicting header files
in the cygwin environment for xmpi.
./configure --prefix=/usr/local/lam-7.1.4-gcc-4 \
--enable-shared --with-cxx=mpic++ \
CFLAGS="" CXXFLAGS="" FFLAGS="" FCFLAGS="" \
LDFLAGS="" CXXLDFLAGS="" \
CPPFLAGS="" C_INCL_PATH="" C_INCLUDE_PATH="" CPLUS_INCLUDE_PATH="" \
OBJC_INCLUDE_PATH="" LAMHOME="" \
|& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV
...
make |& tee log.make.$SYSTEM_ENV.$MACHINE_ENV
...
if mpic++ -DHAVE_CONFIG_H -I. -I. -I. -I../../src
-I/usr/X11R6/include -O -MT xmpi_misc.o -MD -MP -MF
".deps/xmpi_misc.Tpo" \
-c -o xmpi_misc.o `test -f 'xmpi_misc.cc' ||
echo './'`xmpi_misc.cc; \
then mv -f ".deps/xmpi_misc.Tpo" ".deps/xmpi_misc.Po"; \
else rm -f ".deps/xmpi_misc.Tpo"; exit 1; \
fi
In file included from /usr/X11R6/include/Xm/XmP.h:1646,
from /usr/X11R6/include/Xm/PrimitiveP.h:29,
from /usr/X11R6/include/Xm/SashP.h:29,
from xmpi_misc.cc:29:
/usr/X11R6/include/X11/VendorP.h:87: error: previous declaration
of 'VendorShellClassRec vendorShellClassRec' with 'C++' linkage
/usr/X11R6/include/Xm/VendorSP.h:58: error: conflicts with new
declaration with 'C' linkage
mpic++: No such file or directory
make[3]: *** [xmpi_misc.o] Error 1
I temporarily put the conflicting line in file
"/usr/X11R6/include/Xm/VendorSP.h" into a comment and could finish
the installation. Perhaps somebody knows how to fix the problem in
the cygwin distribution. Thank you very much for a fix in one of the
next distributions in advance.
Siegmar
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/