<?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>4245</bug_id>
          
          <creation_ts>2013-04-11 08:09:27 +0000</creation_ts>
          <short_desc>wayland fails to compile on Centos 5.x</short_desc>
          <delta_ts>2013-04-15 15:19:29 +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>graphics</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="chnarius">chnarius</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>31873</commentid>
    <comment_count>0</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-04-11 08:09:27 +0000</bug_when>
    <thetext>Sevaral macros are not available on Centos 5.x which has older kernel and glibc.

-bash-3.2$ lsb_release -ri
Distributor ID:	CentOS
Release:	5.5
-bash-3.2$ uname -r
2.6.18-194.el5PAE
-bash-3.2$ /lib/libc.so.6 
GNU C Library stable release version 2.5, by Roland McGrath et al.

Log:
| wayland-1.0.6/src/wayland-shm.c: In function &apos;shm_pool_create_buffer&apos;:
| wayland-1.0.6/src/wayland-shm.c:134: warning: dereferencing type-punned pointer will break strict-aliasing rules
| wayland-1.0.6/src/wayland-server.c: In function &apos;get_socket_lock&apos;:
| wayland-1.0.6/src/wayland-server.c:1245: error: &apos;O_CLOEXEC&apos; undeclared (first use in this function)
| wayland-1.0.6/src/wayland-server.c:1245: error: (Each undeclared identifier is reported only oncewayland-1.0.6/src/event-loop.c:33:26: error: sys/signalfd.h: No such file or directory
| wayland-1.0.6/src/event-loop.c:34:25: error: sys/timerfd.h: No such file or directory
| wayland-1.0.6/src/wayland-shm.c: In function &apos;shm_create_pool&apos;:
| wayland-1.0.6/src/wayland-shm.c:217: warning: dereferencing type-punned pointer will break strict-aliasing rules
| 
| wayland-1.0.6/src/wayland-server.c:1245: error: for each function it appears in.)
| wayland-1.0.6/src/wayland-shm.c: In function &apos;wl_shm_buffer_create&apos;:
| wayland-1.0.6/src/wayland-shm.c:289: warning: dereferencing type-punned pointer will break strict-aliasing rules
| wayland-1.0.6/src/wayland-shm.c: In function &apos;wl_buffer_is_shm&apos;:
| wayland-1.0.6/src/wayland-shm.c:304: warning: dereferencing type-punned pointer will break strict-aliasing rules
| wayland-1.0.6/src/data-device.c: In function &apos;wl_data_source_send_offer&apos;:
| wayland-1.0.6/src/data-device.c:105: warning: dereferencing type-punned pointer will break strict-aliasing rules
| wayland-1.0.6/src/data-device.c: In function &apos;create_data_source&apos;:
| wayland-1.0.6/src/data-device.c:466: warning: dereferencing type-punned pointer will break strict-aliasing rules
| make[3]: *** [wayland-server.lo] Error 1
| make[3]: *** Waiting for unfinished jobs....
| wayland-1.0.6/src/wayland-client.c: In function &apos;wl_display_connect_to_fd&apos;:
| wayland-1.0.6/src/wayland-client.c:529: warning: dereferencing type-punned pointer will break strict-aliasing rules
| wayland-1.0.6/src/event-loop.c: In function &apos;wl_event_loop_add_timer&apos;:
| wayland-1.0.6/src/event-loop.c:199: warning: implicit declaration of function &apos;timerfd_create&apos;
| wayland-1.0.6/src/event-loop.c:199: error: &apos;CLOCK_MONOTONIC&apos; undeclared (first use in this function)
| wayland-1.0.6/src/event-loop.c:199: error: (Each undeclared identifier is reported only once
| wayland-1.0.6/src/event-loop.c:199: error: for each function it appears in.)
| wayland-1.0.6/src/event-loop.c:199: error: &apos;TFD_CLOEXEC&apos; undeclared (first use in this function)
| wayland-1.0.6/src/event-loop.c: In function &apos;wl_event_source_timer_update&apos;:
| wayland-1.0.6/src/event-loop.c:208: error: storage size of &apos;its&apos; isn&apos;t known
| wayland-1.0.6/src/event-loop.c:214: warning: implicit declaration of function &apos;timerfd_settime&apos;
| wayland-1.0.6/src/event-loop.c:208: warning: unused variable &apos;its&apos;
| wayland-1.0.6/src/event-loop.c: In function &apos;wl_event_source_signal_dispatch&apos;:
| wayland-1.0.6/src/event-loop.c:234: error: storage size of &apos;signal_info&apos; isn&apos;t known
| wayland-1.0.6/src/event-loop.c:234: warning: unused variable &apos;signal_info&apos;
| wayland-1.0.6/src/event-loop.c: In function &apos;wl_event_loop_add_signal&apos;:
| wayland-1.0.6/src/event-loop.c:268: warning: implicit declaration of function &apos;signalfd&apos;
| wayland-1.0.6/src/event-loop.c:268: error: &apos;SFD_CLOEXEC&apos; undeclared (first use in this function)
| make[3]: *** [event-loop.lo] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31874</commentid>
    <comment_count>1</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-04-11 08:11:52 +0000</bug_when>
    <thetext>Same issue on Centos 5.8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31912</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-11 11:30:56 +0000</bug_when>
    <thetext>This is wayland-native, right? Not wayland itself for the target?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31959</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-04-11 13:55:26 +0000</bug_when>
    <thetext>Presuming this is wayland-native we don&apos;t need to build all of it, just the scanner.  Changing the recipe to just build the scanner should speed the build and might fix the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32002</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-04-11 17:10:58 +0000</bug_when>
    <thetext>I think I&apos;ve got a fix:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/wayland-native&amp;id=350195f7c6ac5e3b9edc82f8e1f7fa0a8ba56346

Can you please test this, I don&apos;t have a centos machine to hand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32012</commentid>
    <comment_count>5</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-04-12 05:09:47 +0000</bug_when>
    <thetext>That fixes the issue. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32024</commentid>
    <comment_count>6</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-04-12 06:49:49 +0000</bug_when>
    <thetext>Fixed by Ross&apos;s commit. Closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32029</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-04-12 07:41:02 +0000</bug_when>
    <thetext>This hasn&apos;t landed in master yet, reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32165</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-15 15:19:29 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=06cce092ec2a424dae7c0152443fb191306ba892</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>