[...] PROC) (const GLubyte *procName); ^ In file included from /usr/X11R6/include/GL/glx.h:117:0, from glutint.h:22, from glut_cmap.c:30: /usr/include/GL/glxext.h:212:27: error: expected declaration specifiers or '...' before '*' token typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName); ^ In file included from glutint.h:25:0, from glut_cursor.c:8: ../../include/GL/glut.h:63:0: warning: "APIENTRY" redefined #define APIENTRY In file included from /usr/X11R6/include/GL/glx.h:41:0, from glutint.h:22, from glut_cursor.c:8: /usr/X11R6/include/GL/gl.h:104:0: note: this is the location of the previous definition #define APIENTRY GLAPIENTRY In file included from glutint.h:25:0, from glut_cmap.c:30: ../../include/GL/glut.h:63:0: warning: "APIENTRY" redefined #define APIENTRY In file included from /usr/X11R6/include/GL/glx.h:41:0, from glutint.h:22, from glut_cmap.c:30: /usr/X11R6/include/GL/gl.h:104:0: note: this is the location of the previous definition #define APIENTRY GLAPIENTRY make: *** [Makefile:520: glut_cursor.o] Error 1 make: *** [Makefile:520: glut_cmap.o] Error 1 make: Leaving directory '/tmp/B.KBI829/BUILD/glut-3.7/lib/glut' error: Bad exit status from /tmp/B.KBI829/BUILD/tmp/rpm-tmp.37430 (%build) RPM build errors: Bad exit status from /tmp/B.KBI829/BUILD/tmp/rpm-tmp.37430 (%build) ended at: Mon Jan 22 15:15:16 2018, done in 0:00:16.602444 error: No files produced. mesg: ttyname failed: Inappropriate ioctl for device + chmod -R u+rwX /tmp/B.KBI829/BUILD + rm -rf /tmp/B.KBI829/tmp /tmp/B.KBI829/BUILD mesg: ttyname failed: Inappropriate ioctl for device + rm -rf /tmp/B.KBI829 Begin-TLD-Builder-Info Build-Time: user:12.89s sys:1.85s real:19.17s (faults io:9 non-io:1105898) End-TLD-Builder-Info