Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549264 - x11-drivers/xf86-video-omapfb fails to build - /usr/include/xorg/os.h:579:1: error: expected identifier or ‘(’ before ‘__extension__’
Summary: x11-drivers/xf86-video-omapfb fails to build - /usr/include/xorg/os.h:579:1: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ARM Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.20 579266
  Show dependency tree
 
Reported: 2015-05-12 13:32 UTC by marcusd
Modified: 2016-05-29 17:59 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log-emerge info-environment (build_omapfb.tar.bz2,32.64 KB, application/bzip2)
2015-05-12 13:32 UTC, marcusd
Details
0007-always_include_xorg_server.h.patch (0007-always_include_xorg_server.h.patch,2.87 KB, patch)
2015-07-06 05:57 UTC, DogHackit
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description marcusd 2015-05-12 13:32:07 UTC
Created attachment 403128 [details]
build.log-emerge info-environment

fails to build generating this error:

/usr/include/xorg/os.h:579:1: error: expected identifier or ‘(’ before ‘__extension__’

I attach build.log and emerge info files.
Comment 1 DogHackit 2015-07-06 05:57:46 UTC
Created attachment 406224 [details, diff]
0007-always_include_xorg_server.h.patch

I was directed to this patch at https://github.com/openembedded/oe-core/blob/master/meta/recipes-graphics/xorg-driver/xf86-video-omapfb/0007-always_include_xorg_server.h.patch and it fixed this bug for me.
I hope it helps.
Comment 2 calculuspenguin 2015-08-30 03:30:49 UTC
(In reply to DogHackit from comment #1)
> Created attachment 406224 [details, diff] [details, diff]
> 0007-always_include_xorg_server.h.patch
> 
> I was directed to this patch at
> https://github.com/openembedded/oe-core/blob/master/meta/recipes-graphics/
> xorg-driver/xf86-video-omapfb/0007-always_include_xorg_server.h.patch and it
> fixed this bug for me.
> I hope it helps.

I came across this same patch on my own searching before coming here.  It works for me too.

Also, it looks like this is not the first time this occurred.  Same happened with x11-drivers/xf86-input-vmmouse in bug 527190.
Comment 3 Ferdinand Bachmann 2016-02-16 08:44:39 UTC
Can confirm.

Reproduced this issue on the Raspberry Pi B+ when emerging xorg-server.

xf86-video-omapfb fails to build with this exact error. This patch fixed it.
Comment 4 KaZeR 2016-04-01 22:59:36 UTC
Can confirm.

Reproduced this issue on the Raspberry Pi B+ when emerging xorg-server.

xf86-video-omapfb fails to build with this exact error. This patch fixed it.
Comment 5 eye 2016-04-07 13:08:17 UTC
Please include patch  0007-always_include_xorg_server.h.patch
Comment 6 Pacho Ramos gentoo-dev 2016-05-21 10:11:32 UTC
Was it forwarded to upstream?
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-05-29 17:59:27 UTC
commit 1469ff24575a246ca2ec87157358a2544205a46d
Author: Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Date:   Sun May 29 19:58:30 2016 +0200

    x11-drivers/xf86-video-omapfb: fix building against glibc-2.20
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=549264
    
    Package-Manager: portage-2.2.28