+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/sslogger.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 warning: Macro expanded in comment on line 15: %{name}/%{name}-%{version}.tar.gz warning: Macro expanded in comment on line 87: %{_bindir}/rslog Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dERLOJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sslogger-0.96 + /usr/bin/gzip -dc /builddir/build/SOURCES/sslogger-0.96.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sslogger-0.96 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (sslogger-0.96-nogcrypt.patch):' Patch #1 (sslogger-0.96-nogcrypt.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nogcrypt --fuzz=0 patching file Makefile patching file slogd-server-fork.c patching file sslogger.c patching file tlstools.h + echo 'Patch #2 (sslogger-0.96-formatsecurity.patch):' Patch #2 (sslogger-0.96-formatsecurity.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .formatsecurity --fuzz=0 patching file slogd-server-fork.c patching file sslogger.c + make clean rm -f sslogger slog sreplay slogd + sed -i -e 's|/usr/share/doc/sslogger-\$(VERSION)|/usr/share/doc/sslogger|g' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.RxzL2K + umask 022 + cd /builddir/build/BUILD + cd sslogger-0.96 + export '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 -DLOG_DIR=/var/log/slog -DCONF_FILE=/etc/sslogger.d/sslogger.conf' + 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 -DLOG_DIR=/var/log/slog -DCONF_FILE=/etc/sslogger.d/sslogger.conf' + make -j4 gcc -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 -DLOG_DIR=/var/log/slog -DCONF_FILE=/etc/sslogger.d/sslogger.conf -D LC_ALL -D LC_NUMERIC -DHAVE_LIBUTIL -lutil -lgnutls tlstools_client1.c sslogger.c -o sslogger gcc -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 -DLOG_DIR=/var/log/slog -DCONF_FILE=/etc/sslogger.d/sslogger.conf sreplay.c -o sreplay gcc -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 -DLOG_DIR=/var/log/slog -DCONF_FILE=/etc/sslogger.d/sslogger.conf slog.c -o slog gcc -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 -DLOG_DIR=/var/log/slog -DCONF_FILE=/etc/sslogger.d/sslogger.conf slogd-server-fork.c -lgnutls -o slogd slog.c: In function 'main': slog.c:144:13: warning: value computed is not used [-Wunused-value] *p_sudoOpts++; ^~~~~~~~~~~~~ slog.c:152:13: warning: value computed is not used [-Wunused-value] *p_sloggerOpts++; ^~~~~~~~~~~~~~~~ slog.c:165:9: warning: value computed is not used [-Wunused-value] *p_sudoOpts++; ^~~~~~~~~~~~~ slog.c:170:9: warning: value computed is not used [-Wunused-value] *p_sloggerOpts++; ^~~~~~~~~~~~~~~~ slog.c:180:9: warning: value computed is not used [-Wunused-value] *p_cmd++; ^~~~~~~~ slog.c:181:2: warning: value computed is not used [-Wunused-value] *p_sudoOpts++; ^~~~~~~~~~~~~ slog.c:187:9: warning: value computed is not used [-Wunused-value] *p_cmd++; ^~~~~~~~ slog.c:188:2: warning: value computed is not used [-Wunused-value] *p_sloggerOpts++; ^~~~~~~~~~~~~~~~ slog.c:198:6: warning: value computed is not used [-Wunused-value] *p_cmd++; ^~~~~~~~ sreplay.c: In function 'help': sreplay.c:92:11: warning: variable 'answer' set but not used [-Wunused-but-set-variable] int c,answer; ^~~~~~ sreplay.c: In function 'replay': sreplay.c:276:9: warning: implicit declaration of function 'tty_get_state'; did you mean 'setstate'? [-Wimplicit-function-declaration] if (tty_get_state(&tty_saved, fdtty) < 0) { ^~~~~~~~~~~~~ setstate sreplay.c:289:9: warning: implicit declaration of function 'tty_set_state'; did you mean 'setstate'? [-Wimplicit-function-declaration] if (tty_set_state(&tty_current, fdtty) < 0) { ^~~~~~~~~~~~~ setstate sreplay.c: In function 'help': sreplay.c:74:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&a,1); ^~~~~~~~~~~~~~~~~ sreplay.c:75:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&b,1); ^~~~~~~~~~~~~~~~~ sreplay.c: In function 'gotoLine': sreplay.c:149:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&a,1); ^~~~~~~~~~~~~~~~~ sreplay.c:150:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&b,1); ^~~~~~~~~~~~~~~~~ sreplay.c: In function 'gotoPos': sreplay.c:166:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&a,1); ^~~~~~~~~~~~~~~~~ sreplay.c:167:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&b,1); ^~~~~~~~~~~~~~~~~ sreplay.c: In function 'replayAtSpeed': sreplay.c:190:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&a,1); //print the char ^~~~~~~~~~~~~~~~~ sreplay.c: In function 'printNextLine': sreplay.c:227:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&a,1); //print the char ^~~~~~~~~~~~~~~~~ sreplay.c: In function 'printNextChar': sreplay.c:251:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&a,1); ^~~~~~~~~~~~~~~~~ sreplay.c: In function 'myrestore_tty': sreplay.c:354:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&a,1); ^~~~~~~~~~~~~~~~~ sreplay.c:355:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fdtty,&b,1); ^~~~~~~~~~~~~~~~~ tlstools_client1.c:18:29: error: unknown type name 'gnutls_retr_st'; did you mean 'gnutls_retr2_st'? int sign_algos_length, gnutls_retr_st * st); ^~~~~~~~~~~~~~ gnutls_retr2_st tlstools_client1.c: In function 'nosigpipe_push_function': tlstools_client1.c:29:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] sd=(int)sd_ptr; ^ tlstools_client1.c: At top level: tlstools_client1.c:44:1: warning: 'gnutls_datum' is deprecated [-Wdeprecated-declarations] { ^ In file included from tlstools.h:14:0, from tlstools_client1.c:1: /usr/include/gnutls/gnutls.h:944:9: note: declared here typedef struct { ^~~~~~ tlstools_client1.c: In function 'load_file': tlstools_client1.c:46:3: warning: 'gnutls_datum' is deprecated [-Wdeprecated-declarations] gnutls_datum loaded_file = { NULL, 0 }; ^~~~~~~~~~~~ In file included from tlstools.h:14:0, from tlstools_client1.c:1: /usr/include/gnutls/gnutls.h:944:9: note: declared here typedef struct { ^~~~~~ tlstools_client1.c: At top level: tlstools_client1.c:65:1: warning: 'gnutls_datum' is deprecated [-Wdeprecated-declarations] static void unload_file(gnutls_datum data) ^~~~~~ In file included from tlstools.h:14:0, from tlstools_client1.c:1: /usr/include/gnutls/gnutls.h:944:9: note: declared here typedef struct { ^~~~~~ tlstools_client1.c:240:1: warning: 'gnutls_session' is deprecated [-Wdeprecated-declarations] tlstools_recv (gnutls_session session,char *msg,int msglen) { ^~~~~~~~~~~~~ tlstools_client1.c: In function 'tlstools_recv': tlstools_client1.c:246:22: warning: too many arguments for format [-Wformat-extra-args] fprintf(stderr,"Peer has closed the GNUTLS connection\n",gnutls_strerror(err)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tlstools_client1.c: In function 'tlstools_init_xcred': tlstools_client1.c:306:5: warning: implicit declaration of function 'gnutls_certificate_client_set_retrieve_function'; did you mean 'gnutls_certificate_set_retrieve_function'? [-Wimplicit-function-declaration] gnutls_certificate_client_set_retrieve_function (xcred, cert_callback); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gnutls_certificate_set_retrieve_function slogd-server-fork.c: In function 'logCmd': slogd-server-fork.c:155:9: warning: unused variable 'p' [-Wunused-variable] int p=getpid(); //get the pid ^ tlstools_client1.c:306:61: error: 'cert_callback' undeclared (first use in this function) gnutls_certificate_client_set_retrieve_function (xcred, cert_callback); ^~~~~~~~~~~~~ tlstools_client1.c:306:61: note: each undeclared identifier is reported only once for each function it appears in slogd-server-fork.c: In function 'initialize_tls_session': slogd-server-fork.c:199:13: warning: implicit declaration of function 'gnutls_kx_set_priority'; did you mean 'gnutls_dh_set_prime_bits'? [-Wimplicit-function-declaration] err = gnutls_kx_set_priority (session, kx_prio); ^~~~~~~~~~~~~~~~~~~~~~ gnutls_dh_set_prime_bits slogd-server-fork.c:173:9: warning: unused variable 'message' [-Wunused-variable] char *message; ^~~~~~~ tlstools_client1.c: In function 'tlstools_init_anon': tlstools_client1.c:374:7: warning: implicit declaration of function 'gnutls_kx_set_priority'; did you mean 'gnutls_dh_set_prime_bits'? [-Wimplicit-function-declaration] err=gnutls_kx_set_priority (session, kx_prio); ^~~~~~~~~~~~~~~~~~~~~~ gnutls_dh_set_prime_bits slogd-server-fork.c: In function 'remoteCheckCertificate': slogd-server-fork.c:281:9: warning: implicit declaration of function 'gnutls_x509_crt_init'; did you mean 'gnutls_tdb_deinit'? [-Wimplicit-function-declaration] if (gnutls_x509_crt_init (&cert) < 0) { ^~~~~~~~~~~~~~~~~~~~ gnutls_tdb_deinit tlstools_client1.c: At top level: tlstools_client1.c:532:32: error: unknown type name 'gnutls_retr_st'; did you mean 'gnutls_retr2_st'? int sign_algos_length, gnutls_retr_st * st) ^~~~~~~~~~~~~~ gnutls_retr2_st slogd-server-fork.c:286:9: warning: implicit declaration of function 'gnutls_x509_crt_import'; did you mean 'gnutls_db_get_ptr'? [-Wimplicit-function-declaration] if (gnutls_x509_crt_import(cert, &certs[i], GNUTLS_X509_FMT_DER) < 0) { ^~~~~~~~~~~~~~~~~~~~~~ gnutls_db_get_ptr slogd-server-fork.c:287:7: warning: implicit declaration of function 'gnutls_x509_crt_deinit'; did you mean 'gnutls_packet_deinit'? [-Wimplicit-function-declaration] gnutls_x509_crt_deinit (cert); ^~~~~~~~~~~~~~~~~~~~~~ gnutls_packet_deinit slogd-server-fork.c:291:9: warning: implicit declaration of function 'gnutls_x509_crt_get_expiration_time'; did you mean 'gnutls_openpgp_key_get_expiration_time'? [-Wimplicit-function-declaration] if (gnutls_x509_crt_get_expiration_time (cert) < now) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gnutls_openpgp_key_get_expiration_time slogd-server-fork.c:299:9: warning: implicit declaration of function 'gnutls_x509_crt_get_activation_time'; did you mean 'gnutls_openpgp_key_get_expiration_time'? [-Wimplicit-function-declaration] if (gnutls_x509_crt_get_activation_time (cert) > now) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gnutls_openpgp_key_get_expiration_time slogd-server-fork.c:312:15: warning: implicit declaration of function 'gnutls_x509_crt_get_dn'; did you mean 'gnutls_transport_get_int'? [-Wimplicit-function-declaration] err = gnutls_x509_crt_get_dn (cert, name, &namesize); ^~~~~~~~~~~~~~~~~~~~~~ gnutls_transport_get_int slogd-server-fork.c: In function 'proccess_connection_fork': slogd-server-fork.c:642:4: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(&logfname,"%s/%s",log_dir,log_file); ^~~~~~~~ vsprintf slogd-server-fork.c:743:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (debug>2) ^~ slogd-server-fork.c:747:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' time_t tvec; ^~~~~~ slogd-server-fork.c:760:9: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] gettimeofday(&tv,NULL); ^~~~~~~~~~~~ slogd-server-fork.c:781:39: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long int' [-Wformat=] sprintf(ldate,"%s.%s.%s-%s.%.6d.log",year,month,day,time,millisec); ~~~^ %.6ld slogd-server-fork.c:747:16: warning: variable 'tvec' set but not used [-Wunused-but-set-variable] time_t tvec; ^~~~ slogd-server-fork.c:648:9: warning: unused variable 'd' [-Wunused-variable] int d=worker->socket; ^ slogd-server-fork.c: In function 'read_conf': slogd-server-fork.c:997:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (line[end-1] == '\n') ^~ slogd-server-fork.c:999:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' *value = strdup(line+keyLen+1); //add equal to key=val ^ slogd-server-fork.c: In function 'readConfigFile': slogd-server-fork.c:1104:11: warning: unused variable 'listenIP_str' [-Wunused-variable] char *listenIP_str; ^~~~~~~~~~~~ slogd-server-fork.c: In function 'main': slogd-server-fork.c:1291:50: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] sd = accept (listen_sd, (SA *) & sa_cli, &client_len); ^ In file included from /usr/include/netinet/in.h:23:0, from /usr/include/netdb.h:27, from slogd-server-fork.c:30: /usr/include/sys/socket.h:232:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^~~~~~ slogd-server-fork.c:1164:9: warning: unused variable 'err' [-Wunused-variable] int err; ^~~ slogd-server-fork.c: In function 'termination_handler': slogd-server-fork.c:1045:5: warning: statement will never be executed [-Wswitch-unreachable] log_info(1024,"Debug: in termination_handler\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: slogd-server-fork.c:121:1: warning: 'my_strftime' defined but not used [-Wunused-function] my_strftime(char *buf, size_t len, const char *fmt, const struct tm *tm) { ^~~~~~~~~~~ slogd-server-fork.c: In function 'main': slogd-server-fork.c:703:11: warning: array subscript is above array bounds [-Warray-bounds] header[HEADER_LABEL_LEN+1]='\0'; ~~~~~~^~~~~~~~~~~~~~~~~~~~ sslogger.c: In function 'logCmd2': sslogger.c:224:5: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(&logfname,"%s/%s",log_dir,log_file); ^~~~~~~~ vsprintf sslogger.c:273:26: warning: implicit declaration of function 'slogdConnect'; did you mean 'slogdSend'? [-Wimplicit-function-declaration] slogdIsConnected=slogdConnect(slogMsg); /* connect to slog server and set flag */ ^~~~~~~~~~~~ slogdSend sslogger.c:287:11: warning: the address of 'remote_logfile' will always evaluate as 'true' [-Waddress] if (remote_logfile) ^~~~~~~~~~~~~~ sslogger.c:347:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] printf("reason-length:%d syslogCommentSize:%d minCommentSize:%d\n",strlen(reason),commentSize,minCommentSize); ~^ ~~~~~~~~~~~~~~ %ld sslogger.c: In function 'createSlog': sslogger.c:529:9: warning: implicit declaration of function 'euidaccess'; did you mean 'access'? [-Wimplicit-function-declaration] if (euidaccess(yeardir,W_OK)==-1) { ^~~~~~~~~~ access sslogger.c: In function 'slogdSend': sslogger.c:616:14: warning: implicit declaration of function 'tlstools_send' [-Wimplicit-function-declaration] sent=tlstools_send(session,slogMsg,size); ^~~~~~~~~~~~~ sslogger.c: At top level: sslogger.c:654:1: warning: return type defaults to 'int' [-Wimplicit-int] slogdConnect (char *slogMsg) { ^~~~~~~~~~~~ sslogger.c: In function 'slogdConnect': sslogger.c:663:31: warning: implicit declaration of function 'tlstools_init'; did you mean 'gnutls_init'? [-Wimplicit-function-declaration] session=(gnutls_session_t)tlstools_init(); ^~~~~~~~~~~~~ gnutls_init sslogger.c:663:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] session=(gnutls_session_t)tlstools_init(); ^ sslogger.c:676:9: warning: implicit declaration of function 'tlstools_connect'; did you mean 'slogdConnect'? [-Wimplicit-function-declaration] err=tlstools_connect(tlstools_client_server,tlstools_client_serverport,socket_sd,session,hi,remote_logfile,MAX_REMOTE_LOGFILE_LEN); ^~~~~~~~~~~~~~~~ slogdConnect sslogger.c:688:7: warning: implicit declaration of function 'tlstools_end_session' [-Wimplicit-function-declaration] tlstools_end_session(socket_sd,session); ^~~~~~~~~~~~~~~~~~~~ sslogger.c: In function 'main': sslogger.c:905:30: warning: passing argument 2 of 'getline' from incompatible pointer type [-Wincompatible-pointer-types] getline(&comment,&commentLen,stdin); ^ In file included from sslogger.c:47:0: /usr/include/stdio.h:610:18: note: expected 'size_t * restrict {aka long unsigned int * restrict}' but argument is of type 'int *' extern __ssize_t getline (char **__restrict __lineptr, ^~~~~~~ sslogger.c:906:53: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] if (debug) printf ("DEBUG: comment len=%d len=%d\n",strlen(comment),commentLen); ~^ ~~~~~~~~~~~~~~~ %ld sslogger.c: In function 'finish': sslogger.c:1058:32: warning: unused variable 'newtime' [-Wunused-variable] double oldtime=time(NULL), newtime; ^~~~~~~ sslogger.c:1058:12: warning: unused variable 'oldtime' [-Wunused-variable] double oldtime=time(NULL), newtime; ^~~~~~~ sslogger.c:1057:20: warning: unused variable 'tv' [-Wunused-variable] struct timeval tv; ^~ sslogger.c:1056:10: warning: unused variable 'obuf' [-Wunused-variable] char obuf[BUFSIZ]; ^~~~ sslogger.c:1055:12: warning: variable 'tvec' set but not used [-Wunused-but-set-variable] time_t tvec; ^~~~ sslogger.c:1054:18: warning: unused variable 'cc' [-Wunused-variable] register int cc; ^~ sslogger.c: In function 'done': sslogger.c:1222:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if (!qflg) ^ sslogger.c: In function 'slogdSend': sslogger.c:619:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, errmsg, strlen(errmsg)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sslogger.c:636:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, errmsg, strlen(errmsg)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sslogger.c: In function 'main': sslogger.c:905:13: warning: ignoring return value of 'getline', declared with attribute warn_unused_result [-Wunused-result] getline(&comment,&commentLen,stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sslogger.c: In function 'doinput': sslogger.c:1042:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(master, ibuf, cc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sslogger.c: In function 'dooutput': sslogger.c:1117:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(1, obuf, cc); ^~~~~~~~~~~~~~~~~~~~~~~~~ At top level: sslogger.c:198:1: warning: 'die_if_link' defined but not used [-Wunused-function] die_if_link(char *fn) { ^~~~~~~~~~~ slogd-server-fork.c:591:13: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] log_info(1000,"Error: could not initalize Diffie Hellman parameters: %s\n",gnutls_strerror (err)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slogd-server-fork.c:490:9: note: 'err' was declared here int err; ^~~ slogd-server-fork.c:1313:13: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] log_info(1000, "*** TLS session has failed (%s)\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gnutls_strerror (ret)); ~~~~~~~~~~~~~~~~~~~~~~ /tmp/ccFAqUSj.o: In function `main': /builddir/build/BUILD/sslogger-0.96/slogd-server-fork.c:1243: undefined reference to `gnutls_kx_set_priority' collect2: error: ld returned 1 exit status make: *** [Makefile:22: slogd] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:25: sslogger] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.RxzL2K (%build) RPM build errors: Macro expanded in comment on line 15: %{name}/%{name}-%{version}.tar.gz Macro expanded in comment on line 87: %{_bindir}/rslog Bad exit status from /var/tmp/rpm-tmp.RxzL2K (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff