On Tue, Mar 15, 2011 at 6:24 PM, Martin Rubey <martin.rubey@math.uni-hannover.de> wrote:
I just tried to compile ecl from cvs, but unfortunately it complained
again:


if test -f ../CROSS-DPP ; then ../CROSS-DPP /cygdrive/d/ecl-cvs/src/c/numbers/co
s.d tmp.c ; else ./dpp.exe /cygdrive/d/ecl-cvs/src/c/numbers/cos.d tmp.c ; fi
dpp: /cygdrive/d/ecl-cvs/src/c/numbers/cos.d -> tmp.c
gcc -DECLDIR="\"/usr/local/lib/ecl-11.1.1\"" -I. -I/cygdrive/d/ecl-cvs/build -I/
cygdrive/d/ecl-cvs/src/c -I../ecl/gc -DECL_API -DECL_NO_LEGACY    -g -O2  -Dcygw
in -c -o numbers/cos.o tmp.c
In file included from /cygdrive/d/ecl-cvs/build/ecl/impl/math_fenv.h:68,
                from /cygdrive/d/ecl-cvs/build/ecl/impl/math_dispatch.h:20,
                from /cygdrive/d/ecl-cvs/src/c/numbers/cos.d:21:
/usr/include/fenv.h:52: error: redefinition of `struct _fenv_t'
/usr/include/fenv.h:53: error: redefinition of `struct _fpu_env_info'

Seems that the new cygwin headers are broken -- they are not protected against double inclusion --. I hope I have managed to fix it properly. I still need to conduct testing of the uploaded patch.

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com