D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/t-engine4-1.5.10-1.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.xI1uoK + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf t-engine4-1.5.10 + /usr/bin/xz -dc /home/pterjan/rpmbuild/SOURCES/t-engine4-1.5.10.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd t-engine4-1.5.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/t-engine4-1.3.1-mga-include-sdl2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/t-engine4-1.4.1-mga-no-stripping.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Im9IKm + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd t-engine4-1.5.10 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + premake4 --lua=jit2 gmake Building configurations... Running action 'gmake'... Generating Makefile... Generating build/TEngine.make... Generating build/physfs.make... Generating build/minilua.make... Generating build/buildvm.make... Generating build/luajit2.make... Generating build/luasocket.make... Generating build/fov.make... Generating build/lpeg.make... Generating build/luaprofiler.make... Generating build/tcodimport.make... Generating build/expatstatic.make... Generating build/lxp.make... Generating build/luamd5.make... Generating build/luazlib.make... Generating build/luabitop.make... Generating build/te4-bzip.make... Done. + make config=release ==== Building physfs (release) ==== Creating ../bin/Release Creating ../obj/Release/physfs physfs_unicode.c physfs_byteorder.c physfsrwops.c physfs.c ../src/physfs/physfs.c:76:5: warning: initialization of 'const PHYSFS_ArchiveInfo *' {aka 'const struct PHYSFS_ArchiveInfo *'} from incompatible pointer type 'const PHYSFS_Archiver *' {aka 'const struct *'} [-Wincompatible-pointer-types] &__PHYSFS_Archiver_BIND_PHYSFS, ^ ../src/physfs/physfs.c:76:5: note: (near initialization for 'supported_types[0]') adler32.c mzip.c gzread.c ../src/zlib/gzread.c: In function 'gz_load': ../src/zlib/gzread.c:35:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] ret = read(state->fd, buf + *have, get); ^~~~ fread ../src/zlib/gzread.c: In function 'gzclose_r': ../src/zlib/gzread.c:651:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] ret = close(state->fd); ^~~~~ pclose trees.c uncompr.c inffast.c gzwrite.c ../src/zlib/gzwrite.c: In function 'gz_comp': ../src/zlib/gzwrite.c:89:20: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] writ = write(state->fd, strm->next_in, put); ^~~~~ fwrite ../src/zlib/gzwrite.c: In function 'gzclose_w': ../src/zlib/gzwrite.c:661:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] if (close(state->fd) == -1) ^~~~~ pclose gzclose.c inftrees.c crc32.c zutil.c ioapi.c deflate.c infback.c gzlib.c ../src/zlib/gzlib.c: In function 'gz_open': ../src/zlib/gzlib.c:14:17: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] # define LSEEK lseek ^~~~~ ../src/zlib/gzlib.c:252:9: note: in expansion of macro 'LSEEK' LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */ ^~~~~ compress.c inflate.c bind_physfs.c ../src/physfs/archivers/bind_physfs.c: In function 'BIND_PHYSFS_openRead': ../src/physfs/archivers/bind_physfs.c:225:29: warning: passing argument 3 of 'doOpen' from incompatible pointer type [-Wincompatible-pointer-types] return(doOpen(opaque, fnm, PHYSFS_openRead, exist)); ^~~~~~~~~~~~~~~ ../src/physfs/archivers/bind_physfs.c:198:30: note: expected 'void * (*)(const char *)' but argument is of type 'PHYSFS_File * (*)(const char *)' {aka 'struct PHYSFS_File * (*)(const char *)'} void *(*openFunc)(const char *filename), ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ zip.c subzip.c ../src/physfs/archivers/subzip.c: In function 'SUBZIP_openArchive': ../src/physfs/archivers/subzip.c:112:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *base = name; ^~~~ dir.c unix.c posix.c Linking physfs ==== Building minilua (release) ==== Creating ../obj/Release/minilua minilua.c Linking minilua Running post-build commands cp ../bin/Release/minilua ../src/luajit2/src/host/ ==== Building buildvm (release) ==== Creating ../obj/Release/buildvm Running pre-build commands ../src/luajit2/src/host/minilua ../src/luajit2/dynasm/dynasm.lua -D VER= -D P64 -D JIT -D FFI -D FPU -D HFABI -o ../src/luajit2/src/host/buildvm_arch.h ../src/luajit2/src/vm_x86.dasc buildvm_asm.c buildvm_lib.c buildvm.c buildvm_fold.c buildvm_peobj.c Linking buildvm Running post-build commands cp ../bin/Release/buildvm ../src/luajit2/src/ ==== Building luajit2 (release) ==== Creating ../obj/Release/luajit2 Running pre-build commands ../src/luajit2/src/buildvm -m elfasm -o ../src/luajit2/src/lj_vm.s ../src/luajit2/src/buildvm -m bcdef -o ../src/luajit2/src/lj_bcdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m ffdef -o ../src/luajit2/src/lj_ffdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m libdef -o ../src/luajit2/src/lj_libdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m recdef -o ../src/luajit2/src/lj_recdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m vmdef -o ../src/luajit2/vmdef.lua ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m folddef -o ../src/luajit2/src/lj_folddef.h ../src/luajit2/src/lj_opt_fold.c lj_func.c lib_os.c lj_ir.c lj_udata.c lj_tab.c lj_alloc.c lib_debug.c lib_base.c lj_char.c lj_gc.c lj_bc.c lib_aux.c lib_ffi.c lj_opt_loop.c lj_ctype.c lj_opt_mem.c lj_bcwrite.c lib_jit.c lj_crecord.c lj_ccallback.c lj_opt_narrow.c lj_obj.c lj_api.c lj_ccall.c lj_vmevent.c lj_snap.c lj_lex.c lj_state.c lj_parse.c lj_clib.c lib_package.c lj_asm.c lj_opt_fold.c lj_trace.c lj_bcread.c lj_err.c lj_carith.c lib_table.c lib_string.c lj_ffrecord.c lj_opt_sink.c lib_io.c lj_opt_dce.c lib_init.c lj_lib.c lj_cparse.c lj_record.c lib_math.c lj_gdbjit.c lj_debug.c lj_opt_split.c lj_load.c lj_vmmath.c lj_dispatch.c lj_meta.c lj_cdata.c lj_cconv.c lib_bit.c lj_str.c lj_strscan.c lj_mcode.c lj_vm.s Linking luajit2 ==== Building fov (release) ==== Creating ../obj/Release/fov fov.c Linking fov ==== Building luasocket (release) ==== Creating ../obj/Release/luasocket auxiliar.c buffer.c except.c inet.c io.c luasocket.c options.c select.c tcp.c timeout.c udp.c usocket.c mime.c Linking luasocket ==== Building luaprofiler (release) ==== Creating ../obj/Release/luaprofiler clocks.c lua50_profiler.c core_profiler.c function_meter.c stack.c Linking luaprofiler ==== Building lpeg (release) ==== Creating ../obj/Release/lpeg lpprint.c In file included from ../src/lpeg/lpprint.c:9: ../src/lpeg/lptypes.h:13: warning: "NDEBUG" redefined #define NDEBUG : note: this is the location of the previous definition lptree.c In file included from ../src/lpeg/lptree.c:12: ../src/lpeg/lptypes.h:13: warning: "NDEBUG" redefined #define NDEBUG : note: this is the location of the previous definition lpvm.c In file included from ../src/lpeg/lpcap.h:9, from ../src/lpeg/lpvm.c:11: ../src/lpeg/lptypes.h:13: warning: "NDEBUG" redefined #define NDEBUG : note: this is the location of the previous definition lpcap.c In file included from ../src/lpeg/lpcap.h:9, from ../src/lpeg/lpcap.c:9: ../src/lpeg/lptypes.h:13: warning: "NDEBUG" redefined #define NDEBUG : note: this is the location of the previous definition lpcode.c In file included from ../src/lpeg/lpcode.c:9: ../src/lpeg/lptypes.h:13: warning: "NDEBUG" redefined #define NDEBUG : note: this is the location of the previous definition Linking lpeg ==== Building tcodimport (release) ==== Creating ../obj/Release/tcodimport noise_c.c In file included from ../src/libtcod_import/noise_c.c:32: ../src/SFMT.h:74:6: warning: inline function 'fill_array64' declared but never defined void fill_array64(uint64_t array[], int size); ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function 'fill_array32' declared but never defined void fill_array32(uint32_t array[], int size); ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function 'gen_rand64' declared but never defined uint64_t gen_rand64(void); ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function 'gen_rand32' declared but never defined uint32_t gen_rand32(void); ^~~~~~~~~~ Linking tcodimport ==== Building lxp (release) ==== Creating ../obj/Release/lxp lxplib.c Linking lxp ==== Building expatstatic (release) ==== Creating ../obj/Release/expatstatic xmlrole.c xmltok_impl.c xmltok_ns.c xmlparse.c xmltok.c Linking expatstatic ==== Building luamd5 (release) ==== Creating ../obj/Release/luamd5 des56.c ldes56.c md5lib.c md5.c Linking luamd5 ==== Building luazlib (release) ==== Creating ../obj/Release/luazlib lgzip.c lzlib.c Linking luazlib ==== Building luabitop (release) ==== Creating ../obj/Release/luabitop bit.c Linking luabitop ==== Building te4-bzip (release) ==== Creating ../obj/Release/te4-bzip huffman.c decompress.c bzlib.c crctable.c randtable.c compress.c blocksort.c Linking te4-bzip ==== Building TEngine (release) ==== Creating ../obj/Release/TEngine profile.c dmnd_square.c In file included from ../src/tgl.h:12, from ../src/display_sdl.h:26, from ../src/display.h:23, from ../src/dmnd_square.c:30: /usr/include/GL/glext.h:12066:25: error: conflicting types for 'PFNGLFRAGMENTLIGHTFVSGIXPROC' typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/display_sdl.h:25, from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/glew.h:13602:28: note: previous declaration of 'PFNGLFRAGMENTLIGHTFVSGIXPROC' was here typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat* params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/tgl.h:12, from ../src/display_sdl.h:26, from ../src/display.h:23, from ../src/dmnd_square.c:30: /usr/include/GL/glext.h:12068:25: error: conflicting types for 'PFNGLFRAGMENTLIGHTIVSGIXPROC' typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/display_sdl.h:25, from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/glew.h:13604:28: note: previous declaration of 'PFNGLFRAGMENTLIGHTIVSGIXPROC' was here typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint* params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/tgl.h:12, from ../src/display_sdl.h:26, from ../src/display.h:23, from ../src/dmnd_square.c:30: /usr/include/GL/glext.h:12070:25: error: conflicting types for 'PFNGLFRAGMENTLIGHTMODELFVSGIXPROC' typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/display_sdl.h:25, from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/glew.h:13598:28: note: previous declaration of 'PFNGLFRAGMENTLIGHTMODELFVSGIXPROC' was here typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, GLfloat* params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/tgl.h:12, from ../src/display_sdl.h:26, from ../src/display.h:23, from ../src/dmnd_square.c:30: /usr/include/GL/glext.h:12072:25: error: conflicting types for 'PFNGLFRAGMENTLIGHTMODELIVSGIXPROC' typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/display_sdl.h:25, from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/glew.h:13600:28: note: previous declaration of 'PFNGLFRAGMENTLIGHTMODELIVSGIXPROC' was here typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, GLint* params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/tgl.h:12, from ../src/display_sdl.h:26, from ../src/display.h:23, from ../src/dmnd_square.c:30: /usr/include/GL/glext.h:12079:25: error: conflicting types for 'PFNGLGETFRAGMENTMATERIALFVSGIXPROC' typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/display_sdl.h:25, from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/glew.h:13611:28: note: previous declaration of 'PFNGLGETFRAGMENTMATERIALFVSGIXPROC' was here typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat* data); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/tgl.h:12, from ../src/display_sdl.h:26, from ../src/display.h:23, from ../src/dmnd_square.c:30: /usr/include/GL/glext.h:12080:25: error: conflicting types for 'PFNGLGETFRAGMENTMATERIALIVSGIXPROC' typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/display_sdl.h:25, from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/glew.h:13612:28: note: previous declaration of 'PFNGLGETFRAGMENTMATERIALIVSGIXPROC' was here typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint* data); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/dmnd_square.c:36: ../src/SFMT.h:74:6: warning: inline function 'fill_array64' declared but never defined void fill_array64(uint64_t array[], int size); ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function 'fill_array32' declared but never defined void fill_array32(uint32_t array[], int size); ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function 'gen_rand64' declared but never defined uint64_t gen_rand64(void); ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function 'gen_rand32' declared but never defined uint32_t gen_rand32(void); ^~~~~~~~~~ In file included from ../src/display.h:23, from ../src/dmnd_square.c:30: ../src/display_sdl.h:46:6: warning: inline function 'sdlDrawImage' declared but never defined void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); ^~~~~~~~~~~~ make[1]: *** [TEngine.make:159: ../obj/Release/TEngine/dmnd_square.o] Error 1 make: *** [Makefile:17: TEngine] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Im9IKm (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Im9IKm (%build) I: [iurt_root_command] ERROR: chroot