<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2836</bug_id>
          
          <creation_ts>2012-07-26 15:46:16 +0000</creation_ts>
          <short_desc>bison-native &apos;gets&apos; failure</short_desc>
          <delta_ts>2012-09-24 22:56:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jack Mitchell">jack</reporter>
          <assigned_to name="Bogdan Marinescu">bogdan.a.marinescu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23532</commentid>
    <comment_count>0</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-07-26 15:46:16 +0000</bug_when>
    <thetext>bison-native is failing due to &apos;gets&apos; function being removed.

| In file included from fseterr.h:20:0,
|                  from fseterr.c:20:
| ./stdio.h:496:1: error: &apos;gets&apos; undeclared here (not in a function)
| gcc -std=gnu99  -I.   -isystem/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/sysroots/x86_64-linux/usr/include  -isystem/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -c -o mbschr.o mbschr.c
| make[4]: *** [fseterr.o] Error 1
| make[4]: *** Waiting for unfinished jobs....
| In file included from localcharset.c:30:0:
| ./stdio.h:496:1: error: &apos;gets&apos; undeclared here (not in a function)
| make[4]: *** [localcharset.o] Error 1
| In file included from mbuiter.h:102:0,
|                  from mbschr.c:23:
| ./stdio.h:496:1: error: &apos;gets&apos; undeclared here (not in a function)
| In file included from mbchar.h:154:0,
|                  from mbchar.c:21:
| ./stdio.h:496:1: error: &apos;gets&apos; undeclared here (not in a function)
| make[4]: *** [mbschr.o] Error 1
| make[4]: *** [mbchar.o] Error 1
| make[4]: Leaving directory `/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/work/x86_64-linux/bison-native-2.5-r2/bison-2.5/lib&apos;
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/work/x86_64-linux/bison-native-2.5-r2/bison-2.5/lib&apos;
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/work/x86_64-linux/bison-native-2.5-r2/bison-2.5/lib&apos;
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/work/x86_64-linux/bison-native-2.5-r2/bison-2.5&apos;
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/work/x86_64-linux/bison-native-2.5-r2/temp/log.do_compile.4627 for further information)
NOTE: package bison-native-2.5-r2: task do_compile: Failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23533</commentid>
    <comment_count>1</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-07-26 15:47:04 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.15.3&quot;
TARGET_ARCH       = &quot;arm&quot;
TARGET_OS         = &quot;linux-gnueabi&quot;
MACHINE           = &quot;qemuarm&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120726&quot;
TUNE_FEATURES     = &quot;armv5 dsp thumb arm926ejs&quot;
TARGET_FPU        = &quot;soft&quot;
meta              
meta-yocto        = &quot;master:5157c85776bb8bd7315ef42e6e622aae27ebc79e&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23573</commentid>
    <comment_count>2</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-07-28 13:27:20 +0000</bug_when>
    <thetext>This patch fixed it for me, I don&apos;t think it&apos;s appropriate globally though - but then again is gets actually used at all in bison.. or is this just a fail safe which is now itself obsolete?

--- bison-2.5-van/bison-2.5/lib/stdio.in.h	2011-05-14 23:23:46.000000000 +0100
+++ bison-2.5/lib/stdio.in.h	2012-07-18 19:10:30.497463377 +0100
@@ -177,12 +177,6 @@
                  &quot;use gnulib module fflush for portable POSIX compliance&quot;);
 #endif
 
-/* 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.  */
-#undef gets
-_GL_WARN_ON_USE (gets, &quot;gets is a security hole - use fgets instead&quot;);
-
 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@
 #  if !(defined __cplusplus &amp;&amp; defined GNULIB_NAMESPACE)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23574</commentid>
    <comment_count>3</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-07-28 21:04:52 +0000</bug_when>
    <thetext>Fixed.

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026781.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25265</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-09-14 14:25:42 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=674e951d088e64834b156f32d592c4bf76ea1b2f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25623</commentid>
    <comment_count>5</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-09-24 22:56:40 +0000</bug_when>
    <thetext>verified on commit id 8b3aa00029e62df6d05710cf166fd5d09bdb29cf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>