[Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well

coudert at clipper dot ens dot fr gcc-bugzilla@gcc.gnu.org
Mon Jan 17 17:10:00 GMT 2005


------- Additional Comments From coudert at clipper dot ens dot fr  2005-01-17 17:09 -------
I worked around this bug, commenting a line in /mingw/include/math.h (I quote it
here for reference):
//_CRTIMP double __cdecl cabs (struct _complex);

The end of the compilation runs smoothly, but when I try to use gfortran, it
complains at link-time about missing symbol _ftruncate. Indeed, mingw doesn't
have a ftruncate (it has a chsize which has the same prototype and all), but the
libgfortran.a needs one (originally in unix.o). This can be worked around
(create an object file for ftruncate which call chsize directly and "ar -rv" it
into libgortran.a), but it should get fixed nonetheless.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19481



More information about the Gcc-bugs mailing list