+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/driftnet.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wRG8J0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf driftnet-0.1.6-20040426cvs + /usr/bin/gzip -dc /builddir/build/SOURCES/driftnet-0.1.6-20040426cvs.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd driftnet-0.1.6-20040426cvs + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (driftnet-dont-use-tmpnam.patch):' Patch #1 (driftnet-dont-use-tmpnam.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .tmpnam --fuzz=0 patching file driftnet.c Hunk #1 succeeded at 635 (offset 50 lines). + echo 'Patch #2 (driftnet-0.1.6-no-makedepend.patch):' Patch #2 (driftnet-0.1.6-no-makedepend.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .makedep --fuzz=0 patching file img.h patching file Makefile + echo 'Patch #3 (driftnet-0.1.6-libpng.patch):' Patch #3 (driftnet-0.1.6-libpng.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .libpng --fuzz=0 patching file png.c + sed -i 's#LDLIBS += -ljpeg -lungif -lpng `pkg-config --libs gtk+-2.0`#LDLIBS += -ljpeg -lungif -lpng -lgif `pkg-config --libs gtk+-2.0`#g' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Skv2Rh + umask 022 + cd /builddir/build/BUILD + cd driftnet-0.1.6-20040426cvs + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + make -j4 cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o audio.o audio.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o mpeghdr.o mpeghdr.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o gif.o gif.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o img.o img.c In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdio.h:27, from mpeghdr.c:12: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdio.h:27, from img.c:14: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/string.h:26, from audio.c:16: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdint.h:26, from /usr/lib64/gcc/riscv64-unknown-linux-gnu/7/include/stdint.h:9, from img.h:20, from gif.c:16: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ mpeghdr.c:10:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: mpeghdr.c,v 1.4 2002/06/10 21:25:48 chris Exp $"; ^~~~~ audio.c:14:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: audio.c,v 1.3 2002/06/10 21:25:48 chris Exp $"; ^~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o jpeg.o jpeg.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o png.o png.c gif.c:12:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: gif.c,v 1.4 2002/07/08 20:57:17 chris Exp $"; ^~~~~ In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdio.h:27, from jpeg.c:14: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/limits.h:26, from /usr/lib64/gcc/riscv64-unknown-linux-gnu/7/include-fixed/limits.h:194, from /usr/lib64/gcc/riscv64-unknown-linux-gnu/7/include-fixed/syslimits.h:7, from /usr/lib64/gcc/riscv64-unknown-linux-gnu/7/include-fixed/limits.h:34, from /usr/include/libpng16/pngconf.h:30, from /usr/include/libpng16/png.h:366, from png.c:12: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ img.c:12:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: img.c,v 1.11 2003/08/25 12:23:43 chris Exp $"; ^~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o driftnet.o driftnet.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o image.o image.c In file included from /usr/include/assert.h:35:0, from driftnet.c:14: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdio.h:27, from image.c:12: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ png.c:16:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: png.c,v 1.4 2003/08/25 12:23:43 chris Exp $"; ^~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o display.o display.c jpeg.c:12:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: jpeg.c,v 1.6 2003/08/12 14:09:57 chris Exp $"; ^~~~~ In file included from /usr/include/sys/types.h:25:0, from display.c:14: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o playaudio.o playaudio.c In file included from /usr/include/sys/types.h:25:0, from playaudio.c:18: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ image.c: In function 'find_gif_image': image.c:34:32: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] gifhdr = memstr(data, len, "GIF89a", 6); ^~~~~~~~ In file included from image.c:19:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ image.c:35:45: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!gifhdr) gifhdr = memstr(data, len, "GIF87a", 6); ^~~~~~~~ In file included from image.c:19:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ image.c:27:9: warning: variable 'gotimgblock' set but not used [-Wunused-but-set-variable] int gotimgblock = 0; ^~~~~~~~~~~ image.c: In function 'find_jpeg_image': image.c:171:33: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] jpeghdr = memstr(data, len, "\xff\xd8", 2); /* JPEG SOI marker */ ^~~~~~~~~~ In file included from image.c:19:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ image.c:193:57: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] block = memstr(block, len - (block - data), "\xff\xd9", 2); ^~~~~~~~~~ In file included from image.c:19:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ image.c: In function 'find_png_eoi': image.c:225:26: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if (!strncasecmp(chunk_code, "iend", PNG_CODE_LEN)) ^~~~~~~~~~ In file included from /usr/include/string.h:431:0, from image.c:14: /usr/include/strings.h:120:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^~~~~~~~~~~ image.c: In function 'find_png_image': image.c:248:32: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] pnghdr = memstr(data, len, "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a", PNG_SIG_LEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from image.c:19:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ At top level: image.c:10:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: image.c,v 1.13 2003/08/25 12:23:43 chris Exp $"; ^~~~~ driftnet.c: In function 'main': driftnet.c:641:12: warning: implicit declaration of function 'g_get_tmp_dir'; did you mean 'P_tmpdir'? [-Wimplicit-function-declaration] tmp = g_get_tmp_dir(); ^~~~~~~~~~~~~ P_tmpdir driftnet.c:641:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] tmp = g_get_tmp_dir(); ^ driftnet.c:642:17: warning: implicit declaration of function 'g_build_filename'; did you mean '__builtin_nan'? [-Wimplicit-function-declaration] template = g_build_filename(tmp, "drifnet-XXXXXX", NULL); ^~~~~~~~~~~~~~~~ __builtin_nan driftnet.c:642:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion] template = g_build_filename(tmp, "drifnet-XXXXXX", NULL); ^ driftnet.c:699:9: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe(pfd); ^~~~~~~~~ At top level: driftnet.c:10:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: driftnet.c,v 1.32 2003/10/16 11:56:37 chris Exp $"; ^~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o connection.o connection.c In file included from /usr/include/sys/types.h:25:0, from connection.c:12: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from playaudio.c:31:0: playaudio.c: In function 'mpeg_submit_chunk': driftnet.h:15:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] #define PROGNAME "driftnet" ^ playaudio.c:114:29: note: in expansion of macro 'PROGNAME' fprintf(stderr, PROGNAME": MPEG buffer full with %d bytes\n", buffered); ^~~~~~~~ playaudio.c:114:63: note: format string is defined here fprintf(stderr, PROGNAME": MPEG buffer full with %d bytes\n", buffered); ~^ %ld playaudio.c: In function 'mpeg_play': playaudio.c:133:16: warning: variable 'A' set but not used [-Wunused-but-set-variable] audiochunk A; ^ playaudio.c: In function 'do_mpeg_player': playaudio.c:236:5: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe(pp); ^~~~~~~~ At top level: playaudio.c:16:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: playaudio.c,v 1.5 2003/08/12 14:12:29 chris Exp $"; ^~~~~ driftnet.c: In function 'main': driftnet.c:742:13: warning: 'filterexpr' may be used uninitialized in this function [-Wmaybe-uninitialized] if (pcap_compile(pc, &filter, (char*)filterexpr, 1, 0) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o media.o media.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o util.o util.c In file included from /usr/include/assert.h:35:0, from media.c:12: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ connection.c:10:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: connection.c,v 1.7 2003/10/16 11:56:37 chris Exp $"; ^~~~~ In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdlib.h:25, from util.c:12: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `pkg-config --cflags gtk+-2.0` -DDRIFTNET_VERSION='"0.1.6"' -c -o http.o http.c In file included from /usr/include/sys/types.h:25:0, from http.c:15: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ media.c: In function 'dispatch_image': media.c:78:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd, data, len); ^~~~~~~~~~~~~~~~~~~~ media.c:85:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(dpychld_fd, name, sizeof name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: media.c:10:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: media.c,v 1.9 2003/08/25 12:23:43 chris Exp $"; ^~~~~ util.c: In function 'memstr': util.c:67:27: warning: pointer targets in return differ in signedness [-Wpointer-sign] if (nlen == 0) return (char*)haystack; ^~~~~~~~~~~~~~~ At top level: util.c:10:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: util.c,v 1.2 2003/08/25 12:24:35 chris Exp $"; ^~~~~ ( echo '.\" DO NOT EDIT THIS FILE-- edit driftnet.1.in instead' ; sed s/@@@VERSION@@@/0.1.6/ ) < driftnet.1.in > driftnet.1 http.c: In function 'find_http_req': http.c:45:35: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!(req = memstr(data, len, "GET ", 4))) ^~~~~~ In file included from http.c:20:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ http.c:49:52: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!(le = memstr(req + 4, remaining(req + 4), "\r\n", 2))) { ^~~~~~ In file included from http.c:20:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ http.c:65:57: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!(blankline = memstr(le + 2, remaining(le + 2), "\r\n\r\n", 4))) { ^~~~~~~~~~ In file included from http.c:20:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ http.c:77:52: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!(hosthdr = memstr(le, blankline - le + 2, "\r\nHost: ", 8))) { ^~~~~~~~~~~~ In file included from http.c:20:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ http.c: In function 'dispatch_http_req': http.c:95:33: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!(p = memstr(data, len, "\r\n", 2))) ^~~~~~ In file included from http.c:20:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ http.c:106:47: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!(p = memstr(p, len - (p - data), "\r\nHost: ", 8))) ^~~~~~~~~~~~ In file included from http.c:20:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ http.c:111:55: warning: pointer targets in passing argument 3 of 'memstr' differ in signedness [-Wpointer-sign] if (!(p = memstr(p + 8, len - (p + 8 - data), "\r\n", 2))) ^~~~~~ In file included from http.c:20:0: driftnet.h:91:16: note: expected 'const unsigned char *' but argument is of type 'char *' unsigned char *memstr(const unsigned char *haystack, const size_t hlen, const unsigned char *needle, const size_t nlen); ^~~~~~ At top level: http.c:13:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: http.c,v 1.1 2003/08/12 14:14:15 chris Exp $"; ^~~~~ display.c: In function 'pipe_event': display.c:358:29: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, "\a", 1); ^~~~~~~~~~~~~~~~~ At top level: display.c:12:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static const char rcsid[] = "$Id: display.c,v 1.19 2004/04/26 14:42:36 chris Exp $"; ^~~~~ cc -o driftnet audio.o mpeghdr.o gif.o img.o jpeg.o png.o driftnet.o image.o display.o playaudio.o connection.o media.o util.o http.o -g -lpcap -lpthread -ljpeg -lungif -lpng -lgif `pkg-config --libs gtk+-2.0` + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.l6AkQQ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64 + cd driftnet-0.1.6-20040426cvs + rm -rf /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/bin + install -Dpm 0755 driftnet /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/sbin/driftnet + install -Dpm 0644 driftnet.1 /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64//usr/share/man/man1/driftnet.1 + ln -sf consolehelper /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/bin/driftnet + install -Dpm 644 /builddir/build/SOURCES/driftnet-0.1.6-pam.config /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/etc/pam.d/driftnet + install -Dpm 644 /builddir/build/SOURCES/driftnet-0.1.6-security.config /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/etc/security/console.apps/driftnet + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: driftnet-0.1.6-36.20040426cvs.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.JmQXNw + umask 022 + cd /builddir/build/BUILD + cd driftnet-0.1.6-20040426cvs + DOCDIR=/builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/share/doc/driftnet + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/share/doc/driftnet + cp -pr CHANGES /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/share/doc/driftnet + cp -pr COPYING /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/share/doc/driftnet + cp -pr CREDITS /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/share/doc/driftnet + cp -pr README /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/share/doc/driftnet + cp -pr TODO /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64/usr/share/doc/driftnet + exit 0 Provides: config(driftnet) = 0.1.6-36.20040426cvs.fc28 driftnet = 0.1.6-36.20040426cvs.fc28 driftnet(riscv-64) = 0.1.6-36.20040426cvs.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libatk-1.0.so.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libcairo.so.2()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libgdk-x11-2.0.so.0()(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgif.so.4()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgtk-x11-2.0.so.0()(64bit) libjpeg.so.62()(64bit) libjpeg.so.62(LIBJPEG_6.2)(64bit) libpango-1.0.so.0()(64bit) libpangocairo-1.0.so.0()(64bit) libpangoft2-1.0.so.0()(64bit) libpcap.so.1()(64bit) libpng16.so.16()(64bit) libpng16.so.16(PNG16_0)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) libungif.so.4()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64 Wrote: /builddir/build/SRPMS/driftnet-0.1.6-36.20040426cvs.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/driftnet-0.1.6-36.20040426cvs.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CBmu3C + umask 022 + cd /builddir/build/BUILD + cd driftnet-0.1.6-20040426cvs + rm -rf /builddir/build/BUILDROOT/driftnet-0.1.6-36.20040426cvs.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff