+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/intrace.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.V23Pec + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf intrace-1.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/intrace-1.5.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd intrace-1.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (disable-Wcast-align.patch):' Patch #0 (disable-Wcast-align.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + sed -i 's|-O3|-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' Makefile + sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|g' config.h + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.x5CLcv + umask 022 + cd /builddir/build/BUILD + cd intrace-1.5 + make -j4 V=1 CC debug.c CC intrace.c CC threads.c CC listener.c In file included from ./intrace.h:72:0, from threads.c:36: threads.c: In function 'threads_resolveIP': ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:88:3: note: in expansion of macro 'debug_printf' debug_printf(dlError, ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:96:4: note: in expansion of macro 'debug_printf' debug_printf(dlError, "IPv6 addr size '%d', instead of '%d\n", hep->h_length, ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:103:4: note: in expansion of macro 'debug_printf' debug_printf(dlError, "IPv4 addr size '%d', instead of '%d\n", hep->h_length, ^~~~~~~~~~~~ threads.c: In function 'threads_process': ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:120:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "threads: Mutex initialization failed\n"); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:124:2: note: in expansion of macro 'debug_printf' debug_printf(dlDebug, "Resolving %s '%s'\n", _IT_IPSTR(intrace), intrace->hostname); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:126:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "Resolving %s address for '%s' failed\n", _IT_IPSTR(intrace), intrace->hostname); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:132:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "Cannot convert IP addr to a text form\n"); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:136:2: note: in expansion of macro 'debug_printf' debug_printf(dlDebug, "IP for '%s' resolved='%s'\n", intrace->hostname, haddr); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:139:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "threads: Listener initialization failed, err=%d'\n", err); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:144:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "threads: Packet sender initialization failed, err=%d\n", err); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:149:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "threads: Couldn't drop privileges, err=%d\n", err); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:156:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "threads: Cannot create listener thread\n"); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ threads.c:163:3: note: in expansion of macro 'debug_printf' debug_printf(dlFatal, "threads: Cannot create sender thread\n"); ^~~~~~~~~~~~ In file included from ./intrace.h:72:0, from intrace.c:34: intrace.c: In function 'main': ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ intrace.c:83:3: note: in expansion of macro 'debug_printf' debug_printf(dlInfo, "Usage: %s <-h hostname> [-p ] [-d ] [-s ] [-6]\n", ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ intrace.c:89:3: note: in expansion of macro 'debug_printf' debug_printf(dlWarn, "Payload size set to 0\n"); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ intrace.c:94:3: note: in expansion of macro 'debug_printf' debug_printf(dlWarn, "Payload size set to %d\n", MAX_PAYL_SZ); ^~~~~~~~~~~~ In file included from ./intrace.h:72:0, from listener.c:37: listener.c: In function 'listener_tcp_sock_ready': ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ listener.c:69:3: note: in expansion of macro 'debug_printf' debug_printf(dlError, "Cannot get TCP packet\n"); ^~~~~~~~~~~~ listener.c: In function 'listener_icmp_sock_ready': ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ listener.c:84:3: note: in expansion of macro 'debug_printf' debug_printf(dlError, "Cannot get ICMP packet\n"); ^~~~~~~~~~~~ listener.c: In function 'listener_init': ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ listener.c:122:3: note: in expansion of macro 'debug_printf' debug_printf(dlError, "listener: Cannot open raw TCP socket, '%s'\n", errbuf); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ listener.c:129:3: note: in expansion of macro 'debug_printf' debug_printf(dlError, "listener: Cannot open raw ICMPv6 socket, '%s'\n", errbuf); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ listener.c:137:3: note: in expansion of macro 'debug_printf' debug_printf(dlError, "listener: Cannot set IPV6_RECVPKTINFO on TCP socket, '%s'\n", errbuf); ^~~~~~~~~~~~ ./debug.h:20:59: error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] #define debug_printf(dl, ...) _debug_printf(dl, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__); ^ listener.c:143:3: note: in expansion of macro 'debug_printf' debug_printf(dlError, "listener: Cannot set IPV6_RECVPKTINFO on ICMP socket, '%s'\n", errbuf); ^~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:37: intrace.o] Error 1 make: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make: *** [Makefile:37: threads.o] Error 1 cc1: all warnings being treated as errors make: *** [Makefile:37: listener.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.x5CLcv (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.x5CLcv (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff