strange mingw32-runtime-3.15.1-1 build error (imho it's a bug)

Farkas Levente lfarkas at lfarkas.org
Mon Nov 10 23:45:40 UTC 2008


hi,
i don't really understand the mingw32-runtime-3.15.1-useconds_t.patch.
on fedora-9 this patch is required since otherwise got this errors:
--------------------------------------------------
i686-pc-mingw32-gcc -c  -I/usr/i686-pc-mingw32/sys-root/mingw/include
-Wall -fomit-frame-pointer -I. -I./.. -I./../include -nostdinc
-iwithprefixbefore include -I ./../../w32api/include  usleep.c -o usleep.o
usleep.c:29: error: expected ')' before 'useconds'
make[1]: *** [usleep.o] Error 1
make[1]: Leaving directory `/tmp/mingwrt-3.15.1-mingw32/mingwex'
make: *** [mingwex] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.50915 (%build)
--------------------------------------------------
while on rhel/centos-5 with this patch i get this error
--------------------------------------------------
i686-pc-mingw32-gcc -c  -I/usr/i686-pc-mingw32/sys-root/mingw/include
-Wall -fomit-frame-pointer -I. -I./.. -I./../include -nostdinc
-iwithprefixbefore include -I ./../../w32api/include  usleep.c -o usleep.o
usleep.c:32: error: redefinition of typedef 'useconds_t'
/usr/i686-pc-mingw32/sys-root/mingw/include/sys/types.h:119: error:
previous declaration of 'useconds_t' was here
make[1]: *** [usleep.o] Error 1
make[1]: Leaving directory
`/home/lfarkas/rpm/BUILD/mingwrt-3.15.1-mingw32/mingwex'
make: *** [mingwex] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.38097 (%build)
--------------------------------------------------
but without this patch it's compile clean!?
also the comment in this patch:
/* RWMJ: This is defined in our local sys/types.h but for some reason
 * isn't picked up.
 */
is also annoying.

what's more i already build exactly the same packages ie.
mingw32-runtime-3.15.1-1 on the same centos-5.2 and build _without_ the
above error!???
so the only thing what can i assume that on fedora and the first time on
centos i use mingw32-runtime-bootstrap-1-4. which means
mingw32-runtime-bootstrap-1-4 not equivalent with mingw32-runtime-3.15.1-1
and imho it's a bug and should have to be fix.

ps. anyway mingw32-runtime-3.14-6 build without this error.

-- 
  Levente                               "Si vis pacem para bellum!"



More information about the mingw mailing list