bug-gnulib
[Top][All Lists]
Advanced

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

Re: build failure on cross build


From: Pádraig Brady
Subject: Re: build failure on cross build
Date: Thu, 29 Mar 2012 09:15:57 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

On 03/28/2012 09:22 PM, Christer Solskogen wrote:
> Hi!
> 
> I've created my "own" cross compiler for powerpc (gcc, binutils and eglibc) 
> and 
> I'm having trouble cross compiling coreutils with that compiler. I do not 
> have 
> any 
> trouble compiling both binutils, eglibc and bash with the same compiler but I 
> know 
> that does not mean that the cross compiler works perfectly. 
> The build error I get is this, and I have not found a single place on google 
> where 
> this error is mentioned:
> 
> make[3]: Entering directory `/home/solskogen/obj/coreutils.ppc/lib'
>   CC       set-mode-acl.o
>   CC       copy-acl.o
>   CC       file-has-acl.o
>   CC       allocator.o
>   CC       areadlink.o
>   CC       areadlink-with-size.o
>   CC       areadlinkat.o
>   CC       argmatch.o
> In file included from /home/solskogen/src/coreutils/lib/argmatch.c:28:0:
> ./stdio.h:1029:1: error: 'gets' undeclared here (not in a function)

This is the bit triggering from gnulib (CC'd) says it's assuming 'gets'
is declared. Can you see why this isn't the case for you?

/* It is very rare that the developer ever has full control of stdin,
   so any use of gets warrants an unconditional warning.  Assume it is
   always declared, since it is required by C89.  */
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");


cheers,
Pádraig.



reply via email to

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