D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/dvbstream-0.5-11.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vABC2B + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf dvbstream-0.5 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/dvbstream-0.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd dvbstream-0.5 + rm -rf /home/pterjan/rpmbuild/BUILD/dvbstream-0.5-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/dvbstream-0.5-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.IXkRsx + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd dvbstream-0.5 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 V=1 VERBOSE=1 INCS=-I/usr/src/linux/include gcc -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNEWSTRUCT -c -o mpegtools/ringbuffy.o mpegtools/ringbuffy.c mpegtools/ringbuffy.c: In function 'ring_write': mpegtools/ringbuffy.c:62:17: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 62 | memcpy (rbuf->buffy+pos, data, rest); | ^~~~~~ mpegtools/ringbuffy.c:22:1: note: include '' or provide a declaration of 'memcpy' 21 | #include "ringbuffy.h" +++ |+#include 22 | mpegtools/ringbuffy.c:62:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 62 | memcpy (rbuf->buffy+pos, data, rest); | ^~~~~~ mpegtools/ringbuffy.c:62:17: note: include '' or provide a declaration of 'memcpy' mpegtools/ringbuffy.c:67:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 67 | memcpy (rbuf->buffy+pos, data, count); | ^~~~~~ mpegtools/ringbuffy.c:67:17: note: include '' or provide a declaration of 'memcpy' mpegtools/ringbuffy.c: In function 'ring_peek': mpegtools/ringbuffy.c:92:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 92 | memcpy(data, rbuf->buffy+pos, count); | ^~~~~~ mpegtools/ringbuffy.c:92:17: note: include '' or provide a declaration of 'memcpy' mpegtools/ringbuffy.c:94:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 94 | memcpy(data, rbuf->buffy+pos, rest); | ^~~~~~ mpegtools/ringbuffy.c:94:17: note: include '' or provide a declaration of 'memcpy' mpegtools/ringbuffy.c: In function 'ring_read': mpegtools/ringbuffy.c:117:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 117 | memcpy(data, rbuf->buffy+pos, count); | ^~~~~~ mpegtools/ringbuffy.c:117:17: note: include '' or provide a declaration of 'memcpy' mpegtools/ringbuffy.c:120:17: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 120 | memcpy(data, rbuf->buffy+pos, rest); | ^~~~~~ mpegtools/ringbuffy.c:120:17: note: include '' or provide a declaration of 'memcpy' mpegtools/ringbuffy.c: In function 'ring_rest': mpegtools/ringbuffy.c:193:30: warning: variable 'rest' set but not used [-Wunused-but-set-variable] 193 | int diff, free, pos, rest; | ^~~~ make: *** [: mpegtools/ringbuffy.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -I/usr/src/linux/include -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNEWSTRUCT -o ts_filter ts_filter.c ts_filter.c: In function 'main': ts_filter.c:37:7: warning: statement with no effect [-Wunused-value] 37 | exit; | ^~~~ ts_filter.c:52:9: warning: statement with no effect [-Wunused-value] 52 | exit; | ^~~~ gcc -I/usr/src/linux/include -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNEWSTRUCT -c -o rtp.o rtp.c gcc -I/usr/src/linux/include -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNEWSTRUCT -c -o tune.o tune.c In file included from tune.h:25, from tune.c:41: dvb_defaults.h:83:2: warning: #warning No DVB-T country defined in dvb_defaults.h [-Wcpp] 83 | #warning No DVB-T country defined in dvb_defaults.h | ^~~~~~~ dvb_defaults.h:84:2: warning: #warning defaulting to UK [-Wcpp] 84 | #warning defaulting to UK | ^~~~~~~ dvb_defaults.h:85:2: warning: #warning Ignore this if using Satellite or Cable [-Wcpp] 85 | #warning Ignore this if using Satellite or Cable | ^~~~~~~ tune.c: In function 'check_status': tune.c:252:21: warning: 'fe_info.type' may be used uninitialized [-Wmaybe-uninitialized] 252 | switch(fe_info.type) { | ~~~~~~~^~~~~ tune.c:219:28: note: 'fe_info' declared here 219 | struct dvb_frontend_info fe_info; | ^~~~~~~ gcc -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNEWSTRUCT -c -o mpegtools/remux.o mpegtools/remux.c mpegtools/remux.c: In function 'write_video_pes': mpegtools/remux.c:748:18: warning: variable 'dts' set but not used [-Wunused-but-set-variable] 748 | uint32_t dts = 0; | ^~~ mpegtools/remux.c: In function 'get_video_info': mpegtools/remux.c:468:26: warning: array subscript 3 is above array bounds of 'uint8_t[3]' {aka 'unsigned char[3]'} [-Warray-bounds=] 468 | && b[3] == 0xb3) found = 4; | ~^~~ mpegtools/remux.c:464:25: note: while referencing 'b' 464 | uint8_t b[3]; | ^ gcc -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNEWSTRUCT -c -o mpegtools/ctools.o mpegtools/ctools.c mpegtools/ctools.c: In function 'find_length': mpegtools/ctools.c:288:18: warning: variable 'p' set but not used [-Wunused-but-set-variable] 288 | uint64_t p = 0; | ^ mpegtools/ctools.c: In function 'filter': mpegtools/ctools.c:1321:12: warning: variable 'flag' set but not used [-Wunused-but-set-variable] 1321 | u8 flag,flags; | ^~~~ mpegtools/ctools.c: In function 'seek_mpg_start': mpegtools/ctools.c:1928:13: warning: variable 'mpeg' set but not used [-Wunused-but-set-variable] 1928 | int mpeg = 0; | ^~~~ mpegtools/ctools.c: In function 'write_mpg': mpegtools/ctools.c:2010:13: warning: pointer targets in assignment from 'char *' to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 2010 | buf = (char *) alloca (buf_size + sizeof (int)); | ^ mpegtools/ctools.c: In function 'url2host': mpegtools/ctools.c:2235:23: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] 2235 | if (!(strncmp(url, "http://", 7))) | ^~~ | | | uint8_t * {aka unsigned char *} In file included from mpegtools/ctools.h:35, from mpegtools/ctools.c:30: /usr/include/string.h:159:33: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ mpegtools/ctools.c:2238:24: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 2238 | *name = strdup(url); | ^~~ | | | uint8_t * {aka unsigned char *} /usr/include/string.h:187:34: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 187 | extern char *strdup (const char *__s) | ~~~~~~~~~~~~^~~ mpegtools/ctools.c:2264:24: warning: pointer targets in returning 'uint8_t *' {aka 'unsigned char *'} from a function with return type 'char *' differ in signedness [-Wpointer-sign] 2264 | return (murl); | ^ mpegtools/ctools.c:2266:22: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] 2266 | *port = atoi(++murl); | ^~~~~~ | | | uint8_t * {aka unsigned char *} In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from mpegtools/ctools.h:30: /usr/include/stdlib.h:481:1: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 481 | __NTH (atoi (const char *__nptr)) | ^~~~~ mpegtools/ctools.c:2270:16: warning: pointer targets in returning 'uint8_t *' {aka 'unsigned char *'} from a function with return type 'char *' differ in signedness [-Wpointer-sign] 2270 | return (murl); | ^ mpegtools/ctools.c: In function 'http_open': mpegtools/ctools.c:2291:39: warning: pointer targets in passing argument 1 of 'url2host' differ in signedness [-Wpointer-sign] 2291 | if (!(sptr = url2host(purl, &host, &ip, &port))) { | ^~~~ | | | char * mpegtools/ctools.c:2228:26: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 2228 | char *url2host (uint8_t *url, char **name, uint32_t *ip, uint32_t *port) | ~~~~~~~~~^~~ mpegtools/ctools.c:2323:34: warning: pointer targets in passing argument 2 of 'write_all' differ in signedness [-Wpointer-sign] 2323 | write_all (sock, req, strlen(req)); | ^~~ | | | char * mpegtools/ctools.c:2193:34: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 2193 | void write_all (int fd, uint8_t *data, int length) | ~~~~~~~~~^~~~ mpegtools/ctools.c:2330:32: warning: pointer targets in passing argument 2 of 'read_all' differ in signedness [-Wpointer-sign] 2330 | read_all (mfd, req, 1023); | ^~~ | | | char * mpegtools/ctools.c:2207:33: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 2207 | void read_all (int fd, uint8_t *data, int length) | ~~~~~~~~~^~~~ mpegtools/ctools.c:2344:39: warning: pointer targets in passing argument 2 of 'read_all' differ in signedness [-Wpointer-sign] 2344 | read_all (mfd,req, 1023); | ^~~ | | | char * mpegtools/ctools.c:2207:33: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 2207 | void read_all (int fd, uint8_t *data, int length) | ~~~~~~~~~^~~~ mpegtools/ctools.c: In function 'break_up_filename': mpegtools/ctools.c:1880:17: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1880 | strncpy(base_name, name+sstart, sstop-sstart); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mpegtools/ctools.c:1871:13: note: length computed here 1871 | l = strlen(name); | ^~~~~~~~~~~~ mpegtools/ctools.c:1880:17: warning: 'strncpy' specified size between 18446744071562067969 and 0 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 1880 | strncpy(base_name, name+sstart, sstop-sstart); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNEWSTRUCT -c -o mpegtools/transform.o mpegtools/transform.c error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.IXkRsx (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.IXkRsx (%build) I: [iurt_root_command] ERROR: chroot