bug-gnulib
[Top][All Lists]
Advanced

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

Some problems with GNU-lib


From: Joachim Schmitz
Subject: Some problems with GNU-lib
Date: Mon, 11 Jul 2011 12:22:29 +0200

Hi folks

While trying to port coreutils-8.12 to HP NonStop I found a couple problems.

Coreutils uses C99 features at many places, so I had to use c99 as my compiler, 
that in turn showed some problems with what I believe is part of gnulib:

In yesno.c the C99 compiler complains about not having seen a prototype for 
rpmatch(), so I added that right after the #include <stdlib.h>, which should 
have provided that prototype, but apparently did not (and our 
/usr/include/stdlib.h indeed does not, so it should be the one from gnulib, 
shouldn't it?

In regcomp.c the compiler complains about not having seen a prototype for 
strcasecmp() so I've added an #include <strings.h>, which does fix the issue 
for me (as our /usr/include/strings.h has that prototype)

Here I only have the choice to use a pretty strict C89 or an equally strict C99 
compiler, the later prohibits implicit declarations and the former doesn't 
support all the C99 extensions used by coreutils (mainly defining variables in 
the middle of a block, but also some struct initalizations)

I am fully aware that these are hacks, so please advise on what the proper fix 
might be. 

Bye, Jojo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]