This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]