Build problem: error: ‘size_t’ does not name a type

Bug #1331435 reported by Cemil Azizoglu on 2014-06-18
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
android-headers (Ubuntu)
High
Unassigned

Bug Description

We started getting this error in the CI building Mir for landing-016, and can repro locally using cross-compile, also.

"...
In file included from /home/camako/work/partial-armhf-chroot/usr/include/android/hardware/hardware.h:24:0,
                 from /home/camako/workspace/03-land/src/platform/graphics/android/android_graphic_buffer_allocator.h:23,
                 from /home/camako/workspace/03-land/tests/unit-tests/graphics/android/test_android_buffer_allocator.cpp:19:
/home/camako/work/partial-armhf-chroot/usr/include/android/system/graphics.h:269:5: error: ‘size_t’ does not name a type
     size_t ystride;
     ^
/home/camako/work/partial-armhf-chroot/usr/include/android/system/graphics.h:270:5: error: ‘size_t’ does not name a type
     size_t cstride;
     ^
/home/camako/work/partial-armhf-chroot/usr/include/android/system/graphics.h:271:5: error: ‘size_t’ does not name a type
     size_t chroma_step;
..."

Changed in gcc-4.9 (Ubuntu):
assignee: nobody → Cemil Azizoglu (cemil-azizoglu)
assignee: Cemil Azizoglu (cemil-azizoglu) → nobody
Matthias Klose (doko) wrote :

graphics.h should include stddef.h to use size_t

affects: gcc-4.9 (Ubuntu) → android-headers (Ubuntu)
Changed in android-headers (Ubuntu):
importance: Undecided → High
status: New → Triaged
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package android-headers - 4.4.2-1-0ubuntu2

---------------
android-headers (4.4.2-1-0ubuntu2) utopic; urgency=medium

  * graphics_h_include_missing_stddef_h.patch:
    - Include missing stddef.h to avoid issues with size_t (LP: #1331435)
 -- Ricardo Salveti de Araujo <email address hidden> Wed, 18 Jun 2014 11:14:10 -0300

Changed in android-headers (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers