bug-gsrc
[Top][All Lists]
Advanced

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

[bug-gsrc] Fwd: Bug in compiling dico


From: carl hansen
Subject: [bug-gsrc] Fwd: Bug in compiling dico
Date: Tue, 26 Apr 2016 00:53:25 -0700

forgot to send this to list
---------- Forwarded message ----------
From: carl hansen <address@hidden>
Date: Tue, Apr 26, 2016 at 12:28 AM
Subject: Re: [bug-gsrc] Bug in compiling dico
To: Jean Louis <address@hidden>




On Mon, Apr 25, 2016 at 10:38 PM, Jean Louis <address@hidden> wrote:
Hello Carl,

I have nothing changed. Compiled over 400+ packages in last 10 days, but
few like dico do not work out of the box.

I have gcc 5.3.0. How would I change settings to warning?

Jean

On Mon, Apr 25, 2016 at 10:15:08PM -0700, carl hansen wrote:
> On Mon, Apr 25, 2016 at 8:14 AM, Jean Louis <address@hidden> wrote:
>
> > Hello,
> >
> > Dico is great dictionary tool, and it is GNU software. I have tried
> > contacting the author but it was problem with email.
> >
> > Dico is part of GSRC. So here is the bug below. I need help to compile
> > it, even with patches as dictionary use will be employed in Tanzania,
> > where people do not have Internet connection.
> >
> > Jean Louis
> >
> >   ---
> > make[4]: Entering directory '/sources/gnu/dico-2.2/gnu'
> >   CC     localcharset.o
> > In file included from localcharset.c:30:0:
> > ./stdio.h:479:1: error: ‘gets’ undeclared here (not in a function)
> >  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
> >  ^
> > Makefile:1207: recipe for target 'localcharset.o' failed
> > make[4]: *** [localcharset.o] Error 1
> >
> >
> > Works for me. My ./stdio.h is a little different. Maybe you have setting
> set to change WARNINGs
> into ERRORs, which stops the compilation.
>
> I'm using gcc 5.3.  Which version of gcc are you using?
>
> You could mess with the source to get around this. "gets()" is now
> deprecated , and it seems
> your problem arises from something having to do with that...

I don't know the answer, but some things to try:
from "man gcc":
  -fpermissive
            Downgrade some diagnostics about nonconformant code from errors to warnings.  Thus, using -fpermissive
            allows some nonconforming code to compile.
   Options to Request or Suppress Warnings
       Warnings are diagnostic messages that report constructions that are not inherently erroneous but that are
       risky or suggest there may have been an error.

try reading > > ./stdio.h:479:1: error: ‘gets’ undeclared here (not in a function)
you could add the missing declaration which is:
 char *gets(char *s);

post your ./stdio.h, maybe we can figure it out




reply via email to

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