[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#408850: mksh: FTBFS on experimental/alpha (Re: Log for failed build of mksh_28.9.20070118 (dist=experimental))



I have an idea…

Dixi:

>Martin Zobel-Helas dixit:
>
>>> /usr/include/sys/stat.h:217: error: conflicting types for 'stat'
>>> /usr/include/sys/stat.h:365: error: previous definition of 'stat' was here
>[...]
>
>Sounds like a bug in the header file to me:
>
>    215 extern int __REDIRECT_NTH (stat, (__const char *__restrict __file,
>    216                                   struct stat *__restrict __buf), stat64)
>    217      __nonnull ((1, 2));
>
>    363 extern __inline__ int
>    364 __NTH (stat (__const char *__path, struct stat *__statbuf))
>    365 {
>    366   return __xstat (_STAT_VER, __path, __statbuf);
>    367 }
>
>The second one is missing the restrict qualifier. Could that
>be the cause, possibly induced by invoking the C99 standard
>during compiling with -std=gnu99 ?

Could please someone with access to an alpha try to build the version
of mksh currently in experimental, or even my “current playchild“
at http://users.unixforge.de/~tglaser/mksh_28.9.20070304.dsc, with
HAVE_CAN_STDG99=0 defined in the environment (of Build.sh, i.e. I'd
patch debian/rules appropriately) and show me the build log?

If so, we might at least have a workaround until that's fixed in
the system headers, because I've got a major update to mksh (i.e.
a new formal release) I'd like to get into unstable/testing, and
(thanks to playing around in experimental) only this bug is pre-
venting me from doing so.

@Pierre HABOUZIT: maybe your sample programme compiles fine as
long as you don't use -std=gnu99? Maybe the issue only appears
on alpha because it implies some kind of alignment changes?

Thanks!

bye,
//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.		-- Coywolf Qi Hunt



Reply to: