<?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>1106</bug_id>
          
          <creation_ts>2011-05-26 08:22:35 +0000</creation_ts>
          <short_desc>[x86-64] conflict getline declaration cause cvs compile failed</short_desc>
          <delta_ts>2011-05-31 02:01:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="liping Ke">liping.ke</assigned_to>
          <cc>ke.yu</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>liping.ke</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>13996</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-05-26 08:22:35 +0000</bug_when>
    <thetext>tree/branch: poky/1.1_M1
commit: fc55b224caa3eeac4abda099ec9ed505db59fb28
image location: all x86-64 images(sugarbay, jasperforest, qemux86-64) for 1.1_M1 RC1
http://autobuilder03.jf.intel.com/nightly/20110520-1/machines/qemu/qemux86_64/

With Yocto 1.1 M1 RC1 build, do make for cvs project in sdk image will meet conflict getline declaration and return fails.

The error log is as below:
#########
make: Warning: File `config.h&apos; has modification time 31506048 s in the future
make  all-recursive
make[1]: Entering directory `/home/root/cvs-1.11.23&apos;
Making all in lib
make[2]: Entering directory `/home/root/cvs-1.11.23/lib&apos;
make[2]: Warning: File `.deps/yesno.Po&apos; has modification time 31506048 s in the future
gcc -DHAVE_CONFIG_H -I. -I.. -I../src     -g -O2 -MT getline.o -MD -MP -MF .deps/getline.Tpo -c -o getline.o getline.c
In file included from getline.c:25:0:
getline.h:15:3: error: conflicting types for &apos;getline&apos;
/usr/include/stdio.h:671:20: note: previous declaration of &apos;getline&apos; was here
getline.c:158:1: error: conflicting types for &apos;getline&apos;
/usr/include/stdio.h:671:20: note: previous declaration of &apos;getline&apos; was here
make[2]: *** [getline.o] Error 1
make[2]: Leaving directory `/home/root/cvs-1.11.23/lib&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/root/cvs-1.11.23&apos;
make: *** [all] Error 2
#########

To reproduce the bug, you should download cvs from http://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.23/cvs-1.11.23.tar.bz2 and compile it in sdk image.

The issue does not occur in x86 targets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14062</commentid>
    <comment_count>1</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2011-05-29 18:50:31 +0000</bug_when>
    <thetext>This is a known issue. And it should be the test project itself problem. We still leave this project in the previous testing because it&apos;s a typical project which could help us to find potential problems.

If we find a better c project, big enough to find all potential problems, we can replace this project since it always has this error on x86-64

(In reply to comment #0)
&gt; tree/branch: poky/1.1_M1
&gt; commit: fc55b224caa3eeac4abda099ec9ed505db59fb28
&gt; image location: all x86-64 images(sugarbay, jasperforest, qemux86-64) for
&gt; 1.1_M1 RC1
&gt; http://autobuilder03.jf.intel.com/nightly/20110520-1/machines/qemu/qemux86_64/
&gt; 
&gt; With Yocto 1.1 M1 RC1 build, do make for cvs project in sdk image will meet
&gt; conflict getline declaration and return fails.
&gt; 
&gt; The error log is as below:
&gt; #########
&gt; make: Warning: File `config.h&apos; has modification time 31506048 s in the future
&gt; make  all-recursive
&gt; make[1]: Entering directory `/home/root/cvs-1.11.23&apos;
&gt; Making all in lib
&gt; make[2]: Entering directory `/home/root/cvs-1.11.23/lib&apos;
&gt; make[2]: Warning: File `.deps/yesno.Po&apos; has modification time 31506048 s in the
&gt; future
&gt; gcc -DHAVE_CONFIG_H -I. -I.. -I../src     -g -O2 -MT getline.o -MD -MP -MF
&gt; .deps/getline.Tpo -c -o getline.o getline.c
&gt; In file included from getline.c:25:0:
&gt; getline.h:15:3: error: conflicting types for &apos;getline&apos;
&gt; /usr/include/stdio.h:671:20: note: previous declaration of &apos;getline&apos; was here
&gt; getline.c:158:1: error: conflicting types for &apos;getline&apos;
&gt; /usr/include/stdio.h:671:20: note: previous declaration of &apos;getline&apos; was here
&gt; make[2]: *** [getline.o] Error 1
&gt; make[2]: Leaving directory `/home/root/cvs-1.11.23/lib&apos;
&gt; make[1]: *** [all-recursive] Error 1
&gt; make[1]: Leaving directory `/home/root/cvs-1.11.23&apos;
&gt; make: *** [all] Error 2
&gt; #########
&gt; 
&gt; To reproduce the bug, you should download cvs from
&gt; http://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.23/cvs-1.11.23.tar.bz2 and
&gt; compile it in sdk image.
&gt; 
&gt; The issue does not occur in x86 targets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14071</commentid>
    <comment_count>2</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-05-31 02:01:08 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This is a known issue. And it should be the test project itself problem. We
&gt; still leave this project in the previous testing because it&apos;s a typical project
&gt; which could help us to find potential problems.
&gt; 
&gt; If we find a better c project, big enough to find all potential problems, we
&gt; can replace this project since it always has this error on x86-64

Thanks, Liping.
Since it&apos;s an known issue, I think we could mark the bug as INVALID. We will use another version of cvs, which could pass compile on x86-64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14072</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-05-31 02:01:20 +0000</bug_when>
    <thetext>Verify the bug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>