D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/ttaenc-3.4.1-9.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.E6jJh3 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf ttaenc-3.4.1-src + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/ttaenc-3.4.1-src.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ttaenc-3.4.1-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/ttaenc-3.4.1-mdv-src-shntool.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/ttaenc-3.4.1-mga-Honor-user-C-XX-FLAGS.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Ftwk56 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd ttaenc-3.4.1-src + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + /usr/bin/make -O -j8 V=1 VERBOSE=1 gcc -c -Wall -O3 -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4 -msse -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ttaenc.c In file included from ttaenc.c:12: ttaenc.h:23: warning: "__USE_ISOC99" redefined 23 | #define __USE_ISOC99 | In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from ttaenc.h:19, from ttaenc.c:12: /usr/include/features.h:336: note: this is the location of the previous definition 336 | # define __USE_ISOC99 1 | ttaenc.c: In function 'test_file': ttaenc.c:906:26: warning: variable 'data_size' set but not used [-Wunused-but-set-variable] 906 | unsigned int byte_size, data_size, checksum, errors; | ^~~~~~~~~ ttaenc.c: In function 'main': ttaenc.c:1514:16: warning: variable 'parg' set but not used [-Wunused-but-set-variable] 1514 | int farg = 0, parg = 0, act = 0; | ^~~~ ttaenc.c: At top level: ttaenc.c:386:4: warning: 'bit_count' is static but used in inline function 'put_unary' which is not static 386 | bit_count += value + 1; | ^~~~~~~~~ ttaenc.c:385:36: warning: 'bit_count' is static but used in inline function 'put_unary' which is not static 385 | bit_cache |= bit_mask[value] << bit_count; | ^~~~~~~~~ ttaenc.c:385:4: warning: 'bit_cache' is static but used in inline function 'put_unary' which is not static 385 | bit_cache |= bit_mask[value] << bit_count; | ^~~~~~~~~ ttaenc.c:382:4: warning: 'bit_count' is static but used in inline function 'put_unary' which is not static 382 | bit_count += 23; | ^~~~~~~~~ ttaenc.c:381:33: warning: 'bit_count' is static but used in inline function 'put_unary' which is not static 381 | bit_cache |= bit_mask[23] << bit_count; | ^~~~~~~~~ ttaenc.c:381:4: warning: 'bit_cache' is static but used in inline function 'put_unary' which is not static 381 | bit_cache |= bit_mask[23] << bit_count; | ^~~~~~~~~ ttaenc.c:377:4: warning: 'bitpos' is static but used in inline function 'put_unary' which is not static 377 | bitpos++; | ^~~~~~ ttaenc.c:376:4: warning: 'bit_count' is static but used in inline function 'put_unary' which is not static 376 | bit_count -= 8; | ^~~~~~~~~ ttaenc.c:375:4: warning: 'bit_cache' is static but used in inline function 'put_unary' which is not static 375 | bit_cache >>= 8; | ^~~~~~~~~ ttaenc.c:374:18: warning: 'bitpos' is static but used in inline function 'put_unary' which is not static 374 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~ ttaenc.c:251:46: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^ ttaenc.c:374:26: warning: 'frame_crc32' is static but used in inline function 'put_unary' which is not static 374 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:42: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:374:26: warning: 'frame_crc32' is static but used in inline function 'put_unary' which is not static 374 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:5: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:374:26: warning: 'frame_crc32' is static but used in inline function 'put_unary' which is not static 374 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:250:30: note: in definition of macro 'UPDATE_CRC32' 250 | #define UPDATE_CRC32(x, crc) crc = \ | ^~~ ttaenc.c:373:31: warning: 'bit_cache' is static but used in inline function 'put_unary' which is not static 373 | *bitpos = (unsigned char) (bit_cache & 0xFF); | ^~~~~~~~~ ttaenc.c:373:5: warning: 'bitpos' is static but used in inline function 'put_unary' which is not static 373 | *bitpos = (unsigned char) (bit_cache & 0xFF); | ^~~~~~ ttaenc.c:370:14: warning: 'BIT_BUFFER' is static but used in inline function 'put_unary' which is not static 370 | bitpos = BIT_BUFFER; | ^~~~~~~~~~ ttaenc.c:370:5: warning: 'bitpos' is static but used in inline function 'put_unary' which is not static 370 | bitpos = BIT_BUFFER; | ^~~~~~ ttaenc.c:369:5: warning: 'output_byte_count' is static but used in inline function 'put_unary' which is not static 369 | output_byte_count += res; | ^~~~~~~~~~~~~~~~~ ttaenc.c:364:24: warning: 'fdout' is static but used in inline function 'put_unary' which is not static 364 | BIT_BUFFER_SIZE, fdout); | ^~~~~ ttaenc.c:363:22: warning: 'BIT_BUFFER' is static but used in inline function 'put_unary' which is not static 363 | int res = fwrite(BIT_BUFFER, 1, | ^~~~~~~~~~ ttaenc.c:362:18: warning: 'BIT_BUFFER_END' is static but used in inline function 'put_unary' which is not static 362 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~~~~~~~~~ ttaenc.c:362:8: warning: 'bitpos' is static but used in inline function 'put_unary' which is not static 362 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~ ttaenc.c:361:10: warning: 'bit_count' is static but used in inline function 'put_unary' which is not static 361 | while (bit_count >= 8) { | ^~~~~~~~~ ttaenc.c:356:2: warning: 'bit_count' is static but used in inline function 'put_binary' which is not static 356 | bit_count += bits; | ^~~~~~~~~ ttaenc.c:355:43: warning: 'bit_count' is static but used in inline function 'put_binary' which is not static 355 | bit_cache |= (value & bit_mask[bits]) << bit_count; | ^~~~~~~~~ ttaenc.c:355:2: warning: 'bit_cache' is static but used in inline function 'put_binary' which is not static 355 | bit_cache |= (value & bit_mask[bits]) << bit_count; | ^~~~~~~~~ ttaenc.c:352:3: warning: 'bitpos' is static but used in inline function 'put_binary' which is not static 352 | bitpos++; | ^~~~~~ ttaenc.c:351:3: warning: 'bit_count' is static but used in inline function 'put_binary' which is not static 351 | bit_count -= 8; | ^~~~~~~~~ ttaenc.c:350:3: warning: 'bit_cache' is static but used in inline function 'put_binary' which is not static 350 | bit_cache >>= 8; | ^~~~~~~~~ ttaenc.c:349:17: warning: 'bitpos' is static but used in inline function 'put_binary' which is not static 349 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~ ttaenc.c:251:46: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^ ttaenc.c:349:25: warning: 'frame_crc32' is static but used in inline function 'put_binary' which is not static 349 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:42: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:349:25: warning: 'frame_crc32' is static but used in inline function 'put_binary' which is not static 349 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:5: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:349:25: warning: 'frame_crc32' is static but used in inline function 'put_binary' which is not static 349 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:250:30: note: in definition of macro 'UPDATE_CRC32' 250 | #define UPDATE_CRC32(x, crc) crc = \ | ^~~ ttaenc.c:348:30: warning: 'bit_cache' is static but used in inline function 'put_binary' which is not static 348 | *bitpos = (unsigned char) (bit_cache & 0xFF); | ^~~~~~~~~ ttaenc.c:348:4: warning: 'bitpos' is static but used in inline function 'put_binary' which is not static 348 | *bitpos = (unsigned char) (bit_cache & 0xFF); | ^~~~~~ ttaenc.c:345:13: warning: 'BIT_BUFFER' is static but used in inline function 'put_binary' which is not static 345 | bitpos = BIT_BUFFER; | ^~~~~~~~~~ ttaenc.c:345:4: warning: 'bitpos' is static but used in inline function 'put_binary' which is not static 345 | bitpos = BIT_BUFFER; | ^~~~~~ ttaenc.c:344:4: warning: 'output_byte_count' is static but used in inline function 'put_binary' which is not static 344 | output_byte_count += res; | ^~~~~~~~~~~~~~~~~ ttaenc.c:339:23: warning: 'fdout' is static but used in inline function 'put_binary' which is not static 339 | BIT_BUFFER_SIZE, fdout); | ^~~~~ ttaenc.c:338:21: warning: 'BIT_BUFFER' is static but used in inline function 'put_binary' which is not static 338 | int res = fwrite(BIT_BUFFER, 1, | ^~~~~~~~~~ ttaenc.c:337:17: warning: 'BIT_BUFFER_END' is static but used in inline function 'put_binary' which is not static 337 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~~~~~~~~~ ttaenc.c:337:7: warning: 'bitpos' is static but used in inline function 'put_binary' which is not static 337 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~ ttaenc.c:336:9: warning: 'bit_count' is static but used in inline function 'put_binary' which is not static 336 | while (bit_count >= 8) { | ^~~~~~~~~ ttaenc.c:332:2: warning: 'bit_count' is static but used in inline function 'get_unary' which is not static 332 | bit_count--; | ^~~~~~~~~ ttaenc.c:331:2: warning: 'bit_cache' is static but used in inline function 'get_unary' which is not static 331 | bit_cache >>= 1; | ^~~~~~~~~ ttaenc.c:328:3: warning: 'bit_count' is static but used in inline function 'get_unary' which is not static 328 | bit_count--; | ^~~~~~~~~ ttaenc.c:327:3: warning: 'bit_cache' is static but used in inline function 'get_unary' which is not static 327 | bit_cache >>= 1; | ^~~~~~~~~ ttaenc.c:325:9: warning: 'bit_cache' is static but used in inline function 'get_unary' which is not static 325 | while (bit_cache & 1) { | ^~~~~~~~~ ttaenc.c:322:3: warning: 'bit_count' is static but used in inline function 'get_unary' which is not static 322 | bit_count = 8; | ^~~~~~~~~ ttaenc.c:321:16: warning: 'bit_cache' is static but used in inline function 'get_unary' which is not static 321 | UPDATE_CRC32(bit_cache, frame_crc32); | ^~~~~~~~~ ttaenc.c:251:46: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^ ttaenc.c:321:27: warning: 'frame_crc32' is static but used in inline function 'get_unary' which is not static 321 | UPDATE_CRC32(bit_cache, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:42: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:321:27: warning: 'frame_crc32' is static but used in inline function 'get_unary' which is not static 321 | UPDATE_CRC32(bit_cache, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:5: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:321:27: warning: 'frame_crc32' is static but used in inline function 'get_unary' which is not static 321 | UPDATE_CRC32(bit_cache, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:250:30: note: in definition of macro 'UPDATE_CRC32' 250 | #define UPDATE_CRC32(x, crc) crc = \ | ^~~ ttaenc.c:320:16: warning: 'bitpos' is static but used in inline function 'get_unary' which is not static 320 | bit_cache = *bitpos++; | ^~~~~~ ttaenc.c:320:3: warning: 'bit_cache' is static but used in inline function 'get_unary' which is not static 320 | bit_cache = *bitpos++; | ^~~~~~~~~ ttaenc.c:319:13: warning: 'bit_count' is static but used in inline function 'get_unary' which is not static 319 | *value += bit_count; | ^~~~~~~~~ ttaenc.c:316:13: warning: 'BIT_BUFFER' is static but used in inline function 'get_unary' which is not static 316 | bitpos = BIT_BUFFER; | ^~~~~~~~~~ ttaenc.c:316:4: warning: 'bitpos' is static but used in inline function 'get_unary' which is not static 316 | bitpos = BIT_BUFFER; | ^~~~~~ ttaenc.c:315:4: warning: 'input_byte_count' is static but used in inline function 'get_unary' which is not static 315 | input_byte_count += res; | ^~~~~~~~~~~~~~~~ ttaenc.c:310:23: warning: 'fdin' is static but used in inline function 'get_unary' which is not static 310 | BIT_BUFFER_SIZE, fdin); | ^~~~ ttaenc.c:309:20: warning: 'BIT_BUFFER' is static but used in inline function 'get_unary' which is not static 309 | int res = fread(BIT_BUFFER, 1, | ^~~~~~~~~~ ttaenc.c:308:17: warning: 'BIT_BUFFER_END' is static but used in inline function 'get_unary' which is not static 308 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~~~~~~~~~ ttaenc.c:308:7: warning: 'bitpos' is static but used in inline function 'get_unary' which is not static 308 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~ ttaenc.c:307:32: warning: 'bit_count' is static but used in inline function 'get_unary' which is not static 307 | while (!(bit_cache ^ bit_mask[bit_count])) { | ^~~~~~~~~ ttaenc.c:307:11: warning: 'bit_cache' is static but used in inline function 'get_unary' which is not static 307 | while (!(bit_cache ^ bit_mask[bit_count])) { | ^~~~~~~~~ ttaenc.c:301:24: warning: 'bit_count' is static but used in inline function 'get_binary' which is not static 301 | bit_cache &= bit_mask[bit_count]; | ^~~~~~~~~ ttaenc.c:301:2: warning: 'bit_cache' is static but used in inline function 'get_binary' which is not static 301 | bit_cache &= bit_mask[bit_count]; | ^~~~~~~~~ ttaenc.c:300:2: warning: 'bit_count' is static but used in inline function 'get_binary' which is not static 300 | bit_count -= bits; | ^~~~~~~~~ ttaenc.c:299:2: warning: 'bit_cache' is static but used in inline function 'get_binary' which is not static 299 | bit_cache >>= bits; | ^~~~~~~~~ ttaenc.c:298:11: warning: 'bit_cache' is static but used in inline function 'get_binary' which is not static 298 | *value = bit_cache & bit_mask[bits]; | ^~~~~~~~~ ttaenc.c:295:3: warning: 'bitpos' is static but used in inline function 'get_binary' which is not static 295 | bitpos++; | ^~~~~~ ttaenc.c:294:3: warning: 'bit_count' is static but used in inline function 'get_binary' which is not static 294 | bit_count += 8; | ^~~~~~~~~ ttaenc.c:293:27: warning: 'bit_count' is static but used in inline function 'get_binary' which is not static 293 | bit_cache |= *bitpos << bit_count; | ^~~~~~~~~ ttaenc.c:293:17: warning: 'bitpos' is static but used in inline function 'get_binary' which is not static 293 | bit_cache |= *bitpos << bit_count; | ^~~~~~ ttaenc.c:293:3: warning: 'bit_cache' is static but used in inline function 'get_binary' which is not static 293 | bit_cache |= *bitpos << bit_count; | ^~~~~~~~~ ttaenc.c:292:17: warning: 'bitpos' is static but used in inline function 'get_binary' which is not static 292 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~ ttaenc.c:251:46: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^ ttaenc.c:292:25: warning: 'frame_crc32' is static but used in inline function 'get_binary' which is not static 292 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:42: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:292:25: warning: 'frame_crc32' is static but used in inline function 'get_binary' which is not static 292 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:251:5: note: in definition of macro 'UPDATE_CRC32' 251 | (((crc>>8) & 0x00FFFFFF) ^ crc32_table[(crc^x) & 0xFF]) | ^~~ ttaenc.c:292:25: warning: 'frame_crc32' is static but used in inline function 'get_binary' which is not static 292 | UPDATE_CRC32(*bitpos, frame_crc32); | ^~~~~~~~~~~ ttaenc.c:250:30: note: in definition of macro 'UPDATE_CRC32' 250 | #define UPDATE_CRC32(x, crc) crc = \ | ^~~ ttaenc.c:289:13: warning: 'BIT_BUFFER' is static but used in inline function 'get_binary' which is not static 289 | bitpos = BIT_BUFFER; | ^~~~~~~~~~ ttaenc.c:289:4: warning: 'bitpos' is static but used in inline function 'get_binary' which is not static 289 | bitpos = BIT_BUFFER; | ^~~~~~ ttaenc.c:288:4: warning: 'input_byte_count' is static but used in inline function 'get_binary' which is not static 288 | input_byte_count += res; | ^~~~~~~~~~~~~~~~ ttaenc.c:283:23: warning: 'fdin' is static but used in inline function 'get_binary' which is not static 283 | BIT_BUFFER_SIZE, fdin); | ^~~~ ttaenc.c:282:20: warning: 'BIT_BUFFER' is static but used in inline function 'get_binary' which is not static 282 | int res = fread(BIT_BUFFER, 1, | ^~~~~~~~~~ ttaenc.c:281:17: warning: 'BIT_BUFFER_END' is static but used in inline function 'get_binary' which is not static 281 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~~~~~~~~~ ttaenc.c:281:7: warning: 'bitpos' is static but used in inline function 'get_binary' which is not static 281 | if (bitpos == BIT_BUFFER_END) { | ^~~~~~ ttaenc.c:280:9: warning: 'bit_count' is static but used in inline function 'get_binary' which is not static 280 | while (bit_count < bits) { | ^~~~~~~~~ gcc ttaenc.o -o ttaenc -Wall -O3 -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4 -msse -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables /usr/bin/ld: ttaenc.o: in function `compress': /home/iurt/rpmbuild/BUILD/ttaenc-3.4.1-src/ttaenc.c:838: undefined reference to `hybrid_filter' /usr/bin/ld: ttaenc.o: in function `decompress': /home/iurt/rpmbuild/BUILD/ttaenc-3.4.1-src/ttaenc.c:1248: undefined reference to `hybrid_filter' collect2: error: ld returned 1 exit status make: *** [Makefile:11: ttaenc] Error 1 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.Ftwk56 (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.Ftwk56 (%build) I: [iurt_root_command] ERROR: chroot