Bug 88334 - does not compile
Summary: does not compile
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Via (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Openchrome development list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-12 18:11 UTC by sam
Modified: 2015-01-13 17:53 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.