From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-f47.google.com ([74.125.82.47]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ty4rJ-0000nP-Cv for ptxdist@pengutronix.de; Wed, 23 Jan 2013 19:15:41 +0100 Received: by mail-wg0-f47.google.com with SMTP id dq11so2357458wgb.26 for ; Wed, 23 Jan 2013 10:15:31 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1408264.f3WDjG5Lnz@dabox> References: <1408264.f3WDjG5Lnz@dabox> Date: Wed, 23 Jan 2013 19:15:31 +0100 Message-ID: From: Alexander Aring Subject: Re: [ptxdist] gnutls fails to compile with error: 'gets' undeclared ? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1098621388==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1098621388== Content-Type: multipart/alternative; boundary=f46d0438934f03fe3604d3f8ae0b --f46d0438934f03fe3604d3f8ae0b Content-Type: text/plain; charset=UTF-8 Hi, 2013/1/23 Tim Sander > 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 > --f46d0438934f03fe3604d3f8ae0b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,


2013/1/23 Tim Sander <tim@krieglstein.org>
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex"> Hi

I am again using the OSELAS.Toolchain-2012.12.0 =C2=A0arm-1136jfs-linux-gnu= eabihf-
gcc with the extra linker flags: -Wl,--copy-dt-needed-entries. I get a litt= le
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 =C2=A0-fPIC -DP= IC -o
.libs/read-file.o
In file included from read-file.h:26:0,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from read-fil= e.c:21:
./stdio.h:1030:1: error: 'gets' undeclared here (not in a function)=
Which gnutls version do you use?

There is alre= ady a patch in
patches/gnutls-2.12.20 / 0001-check-if-gets-is-defined-be= fore-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 ad= ding
a --std=3D option but without any success. But as this header is part of th= e
toolchain i guess its a toolchain problem?

Best regards
Tim

--
ptxdist mailing list
ptxdist@pengutronix.de

--f46d0438934f03fe3604d3f8ae0b-- --===============1098621388== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1098621388==--