Bug 88334

Summary: does not compile
Product: DRI Reporter: sam <freedesktop5112>
Component: DRM/ViaAssignee: Openchrome development list <openchrome-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: xavier
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description sam 2015-01-12 18:11:40 UTC
Similar to https://freedesktop.org/patch/34699/:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -MT via_3d.lo -MD -MP -MF .deps/via_3d.Tpo -c via_3d.c  -fPIC -DPIC -o .libs/via_3d.o
In file included from /usr/include/string.h:634:0,
                 from /usr/include/xorg/os.h:53,
                 from /usr/include/xorg/misc.h:115,
                 from /usr/include/xorg/xf86str.h:37,
                 from /usr/include/xorg/xf86.h:44,
                 from via_3d.h:27,
                 from via_3d.c:24:
/usr/include/xorg/os.h:579:1: error: expected identifier or ‘(’ before ‘__extension__’
 strndup(const char *str, size_t n);
 ^
Makefile:585: recipe for target 'via_3d.lo' failed


solution: in via_3d.h add:

#include "xorg-server.h"

before:

#include "xf86.h"
Comment 1 Xavier Bachelot 2015-01-13 17:53:24 UTC
Thanks for the report. Fixed in git master.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.