mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] gnutls fails to compile with error: 'gets' undeclared ?
@ 2013-01-23 15:21 Tim Sander
  2013-01-23 18:15 ` Alexander Aring
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Sander @ 2013-01-23 15:21 UTC (permalink / raw)
  To: ptxdist

Hi

I am again using the OSELAS.Toolchain-2012.12.0  arm-1136jfs-linux-gnueabihf-
gcc with the extra linker flags: -Wl,--copy-dt-needed-entries. I get a little 
further to the gnutls package. It fails to compile with:
arm-1136jfs-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -g -O2 -MT 
read-file.lo -MD -MP -MF .deps/read-file.Tpo -c read-file.c  -fPIC -DPIC -o 
.libs/read-file.o
In file included from read-file.h:26:0,
                 from read-file.c:21:
./stdio.h:1030:1: error: 'gets' undeclared here (not in a function)

The gets is defined in the header with some cxx exeption flag so i tried adding 
a --std= option but without any success. But as this header is part of the 
toolchain i guess its a toolchain problem?

Best regards
Tim

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] gnutls fails to compile with error: 'gets' undeclared ?
  2013-01-23 15:21 [ptxdist] gnutls fails to compile with error: 'gets' undeclared ? Tim Sander
@ 2013-01-23 18:15 ` Alexander Aring
  2013-01-23 22:51   ` [ptxdist] gnutls fails to compile with error: 'gets' undeclared? Tim Sander
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Aring @ 2013-01-23 18:15 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1083 bytes --]

Hi,


2013/1/23 Tim Sander <tim@krieglstein.org>

> Hi
>
> I am again using the OSELAS.Toolchain-2012.12.0
>  arm-1136jfs-linux-gnueabihf-
> gcc with the extra linker flags: -Wl,--copy-dt-needed-entries. I get a
> little
> further to the gnutls package. It fails to compile with:
> arm-1136jfs-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -g -O2
> -MT
> read-file.lo -MD -MP -MF .deps/read-file.Tpo -c read-file.c  -fPIC -DPIC -o
> .libs/read-file.o
> In file included from read-file.h:26:0,
>                  from read-file.c:21:
> ./stdio.h:1030:1: error: 'gets' undeclared here (not in a function)
>
Which gnutls version do you use?

There is already a patch in
patches/gnutls-2.12.20 /
0001-check-if-gets-is-defined-before-doing-something-with.patch
to handle this kind of error.


> The gets is defined in the header with some cxx exeption flag so i tried
> adding
> a --std= option but without any success. But as this header is part of the
> toolchain i guess its a toolchain problem?
>
> Best regards
> Tim
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>

[-- Attachment #1.2: Type: text/html, Size: 1743 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] gnutls fails to compile with error: 'gets' undeclared?
  2013-01-23 18:15 ` Alexander Aring
@ 2013-01-23 22:51   ` Tim Sander
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Sander @ 2013-01-23 22:51 UTC (permalink / raw)
  To: ptxdist

Hi Alexander
> Which gnutls version do you use?
Ah you are right, it seems as if a stale version has been luring in my rules 
dir, which i somehow overlooked.

Thanks for the hint.
Tim

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-23 22:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23 15:21 [ptxdist] gnutls fails to compile with error: 'gets' undeclared ? Tim Sander
2013-01-23 18:15 ` Alexander Aring
2013-01-23 22:51   ` [ptxdist] gnutls fails to compile with error: 'gets' undeclared? Tim Sander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox