Open amps211 opened 9 years ago
same problem on Ubuntu 15.10. Any workaround?
+1 this, 15.10 trying to build a newer version of the preinstalled driver. Same error.
Same issue in 15.10 under Gnome 3.16.4
Same issue in 15.10-gnome
The workaround is to add
to the top of synproto.h
This let make finish without errors (but with warnings).
Check your error message for file name and line number. In your case -
/usr/include/xorg/os.h:541:1:....
File - os.h File Path - /usr/include/xorg/os.h Line No - 541
Use your favourite text editor to open the file -
sudo vim /usr/include/xorg/os.h
So 541
is the line which is causing issue, comment it. Now you have to comment out line 540
too, why? The reason is it's a combined logic inside the if block as you can see in below:
#ifndef HAVE_STRNDUP <----- If block starts
extrn _X_EXPORT char * <----------- Comment out this line using // in front
strndup(const char *str, size_t n); <----------- Comment out this line using // in front
#endif <------ If blocks ends
Looks like os.h duplicates prototypes for some system functions unless xorg-server.h is included first, according to this discussion http://lists.x.org/archives/xorg-devel/2014-July/043067.html