#332 Missing utime.h breaks build of gettext

closed-fixed
2003-03-30
2003-03-30
No

I have tried cross-compiling GNU gettext using MinGW
and have run into a problem. The autoconf script in
gettext checks for the existence of the utime function
using a AC_CHECK_FUNCS that essentially only tests for
the existence of the symbol in the runtime libraries.
After it is satisfied that the library contains the
'utime' symbol, it defines HAVE_UTIME in its config.h
and compiles from there. In its sources, if
HAVE_UTIME is defined it #include's <utime.h> and tries
to use it.

Unfortunately, while MinGW apparently supports the
utime call, it does not have a <utime.h>. There is
instead a <sys/utime.h> in MinGW. My linux glibc
headers have a <utime.h> but no <sys/utime.h>. The
'Linux Programmer's Manual' utime man page says to
include <utime.h>.

I'm not completely sure if this is a MinGW bug, but
everywhere I look it seems that the utime.h header
should not be in the sys subdirectory. Perhaps it
should be moved up in MinGW.

Thanks,
-Jeff

Discussion

  • Danny Smith

    Danny Smith - 2003-03-30
    • status: open --> closed-fixed
     
  • Danny Smith

    Danny Smith - 2003-03-30

    Logged In: YES
    user_id=11494

    This has already been fixed in CVS.
    2003-03-16 Danny Smith
    <dannysmith@users.sourceforge.net>

    \* include/utime.h: New file, forwarding to
    

    sys/utime.h.

    sys/utime.h is kept to retain compatablity with MS
    usage.

    Danny

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks