+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/elog.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.vKRahT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf elog-3.1.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/elog-3.1.3-1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd elog-3.1.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (elog-makefile-elogdir.patch):' Patch #0 (elog-makefile-elogdir.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + rm -rf scripts/ckeditor + cd scripts + find . -type f -print0 + xargs -0 chmod a-x + cd .. + chmod a-x COPYING + cd doc + find . -type f -print0 + xargs -0 chmod a-x + cd .. + dos2unix doc/strftime.txt dos2unix: converting file doc/strftime.txt to Unix format... + iconv -f latin1 -t utf-8 doc/strftime.txt + mv -f doc/strftime.txt.conv doc/strftime.txt + chmod -x src/elog.c + chmod -x src/regex.h + chmod -x src/regex.c + chmod -x src/elogd.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VXv7CY + umask 022 + cd /builddir/build/BUILD + cd elog-3.1.3 + make -j4 '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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP' 'LIBS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lssl -lkrb5 -lldap -llber' 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -c -o mxml.o mxml/mxml.c 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -w -c -o crypt.o src/crypt.c 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -w -c -o regex.o src/regex.c 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -c -o strlcpy.o mxml/strlcpy.c type git &> /dev/null; if [ $? -eq 1 ]; then REV="unknown" ;else REV=`git log -n 1 --pretty=format:"%ad - %h"`; fi; echo \#define GIT_REVISION \"$REV\" > src/git-revision.h 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -w -c -o auth.o src/auth.c 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -o elconv src/elconv.c -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lssl -lkrb5 -lldap -llber src/elconv.c: In function 'el_submit': src/elconv.c:635:19: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, buffer[index], buffer_size[index]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:662:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, str, 16); ^~~~~~~~~~~~~~~~~ src/elconv.c:664:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, message, size); ^~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:772:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, start_str, strlen(start_str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:773:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, message, strlen(message)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:774:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, end_str, strlen(end_str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:786:7: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate(fh, TELL(fh)); ^~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:801:13: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, str, 16); ^~~~~~~~~~~~~~~~~ src/elconv.c:807:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, 16); ^~~~~~~~~~~~~~~~~~ src/elconv.c: In function 'el_get_v1': src/elconv.c:881:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, message, size); ^~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c: In function 'scan_messages': src/elconv.c:914:4: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(str, sizeof(str)); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:1003:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, strlen(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:1014:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, strlen(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:1026:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, strlen(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c:1036:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, message, strlen(message)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elconv.c: In function 'main': src/elconv.c:1071:4: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(data_dir, sizeof(data_dir)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -o elog src/elog.c mxml.o crypt.o regex.o strlcpy.o -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lssl -lkrb5 -lldap -llber 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 -Imxml -DHAVE_SSL -DHAVE_KRB5 -DHAVE_LDAP -o elogd src/elogd.c auth.o mxml.o crypt.o regex.o strlcpy.o -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lssl -lkrb5 -lldap -llber src/elog.c: In function 'ssl_connect': src/elog.c:308:4: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] meth = (SSL_METHOD *) TLSv1_method(); ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from src/elog.c:57: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ src/elogd.c: In function 'ssl_connect': src/elogd.c:2448:4: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] meth = (SSL_METHOD *) TLSv1_method(); ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from src/elogd.h:141, from src/elogd.c:38: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ src/elogd.c: In function 'init_ssl': src/elogd.c:29496:4: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] meth = (SSL_METHOD *) TLSv1_method(); ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from src/elogd.h:141, from src/elogd.c:38: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ src/elogd.c: In function 'my_shell': src/elogd.c:953:10: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, result, size-1); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:1009:7: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(str); ^~~~~~~~~~~ src/elogd.c: In function 'setegroup': src/elogd.c:1722:7: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] chown(logbook_dir, -1, gr->gr_gid); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'seteuser': src/elogd.c:1747:7: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] chown(logbook_dir, pw->pw_uid, -1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'ss_daemon_init': src/elogd.c:2691:4: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir("/"); /* change working direcotry (not on NFS!) */ ^~~~~~~~~~ src/elogd.c: In function 'parse_config_file': src/elogd.c:2917:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buffer, length); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'check_language': src/elogd.c:3277:10: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, _locbuffer, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'parse_file': src/elogd.c:3956:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buffer, length); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'el_index_logbooks': src/elogd.c:4243:7: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(cwd, sizeof(cwd)); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:4249:13: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(DIR_SEPARATOR_STR); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:4259:13: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(str); ^~~~~~~~~~ src/elogd.c:4290:16: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(str); ^~~~~~~~~~ src/elogd.c:4296:7: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(cwd); ^~~~~~~~~~ src/elogd.c: In function 'el_submit_attachment': src/elogd.c:4700:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, buffer, buffer_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.c: In function 'el_submit': src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:5127:7: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'el_delete_message': src/elogd.c:5339:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, buffer, tail_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:5344:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'write_logfile': src/elogd.c:5666:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, buf, strlen(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'is_full_html': src/elogd.c:5789:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'is_ascii': src/elogd.c:5828:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_top_text': src/elogd.c:8222:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, size, f); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_bottom_text': src/elogd.c:8261:13: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, size, f); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_bottom_text_login': src/elogd.c:8311:13: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, size, f); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'send_file_direct': src/elogd.c:8494:4: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(dir, sizeof(dir)); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:8552:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, return_buffer + strlen(return_buffer), length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_edit_form': src/elogd.c:11715:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buffer, length); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:12040:34: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), f); ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'load_config_section': src/elogd.c:12636:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, *buffer, length); ^~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'save_admin_config': src/elogd.c:12872:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:12908:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'change_config_line': src/elogd.c:12941:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:13021:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'delete_logbook': src/elogd.c:13056:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:13080:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'rename_logbook': src/elogd.c:13128:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:13165:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'create_logbook': src/elogd.c:13201:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:13258:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'save_config': src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:13300:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'submit_message': src/elogd.c:15969:13: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buffer, size); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'receive_config': src/elogd.c:16430:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(pwd, sizeof(pwd), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'adjust_config': src/elogd.c:16487:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:16549:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'receive_pwdfile': src/elogd.c:16633:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:16674:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'load_md5': src/elogd.c:16761:7: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), f); ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'synchronize_logbook': src/elogd.c:16878:16: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'display_line': src/elogd.c:18479:31: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), f); ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_page_filters': src/elogd.c:19128:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, size, f); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_elog_list': src/elogd.c:21130:13: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, size, f); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'add_attribute_option': src/elogd.c:22725:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:22781:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'set_attributes': src/elogd.c:22816:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buf, length); ^~~~~~~~~~~~~~~~~~~~~ In file included from src/elogd.c:38:0: src/elogd.h:156:22: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] #define TRUNCATE(fh) ftruncate(fh, TELL(fh)) ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:22867:4: note: in expansion of macro 'TRUNCATE' TRUNCATE(fh); ^~~~~~~~ src/elogd.c: In function 'copy_to': src/elogd.c:23924:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buffer, size); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:23952:19: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buffer, size); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:23977:25: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, buffer, size); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_elog_entry': src/elogd.c:24707:13: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, size, f); ^~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:25389:31: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), f); ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'convert_password_file': src/elogd.c:25455:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, buf, len); ^~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'load_password_file': src/elogd.c:25651:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(fh, line, sizeof(line)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'server_loop': src/elogd.c:29665:7: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(str, sizeof(str)); ^~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'create_password': src/elogd.c:30458:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, strlen(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30485:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, cfgbuffer, i); ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30487:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, strlen(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30494:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, p, strlen(p)); ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30510:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, cfgbuffer, i); ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30512:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, strlen(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30515:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, p, strlen(p)); ^~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30523:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, cfgbuffer, strlen(cfgbuffer)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:30525:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, str, strlen(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'main': src/elogd.c:30986:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:31125:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:31166:7: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, sizeof(str), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'el_retrieve': src/elogd.c:4503:26: warning: '%s' directive writing up to 255 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(file_name, "%s%s%s", lbs->data_dir, lbs->el_index[index].subdir, lbs->el_index[index].file_name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 1 and 542 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'el_retrieve_attachment.part.30': src/elogd.c:4764:26: warning: '%s' directive writing up to 255 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(file_name, "%s%s%s", lbs->data_dir, lbs->el_index[index].subdir, lbs->el_index[index].file_name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 1 and 542 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'el_submit': src/elogd.c:4894:29: warning: '%s' directive writing up to 255 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(file_name, "%s%s%s", lbs->data_dir, lbs->el_index[index].subdir, lbs->el_index[index].file_name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 1 and 542 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_download_page': src/elogd.c:14775:32: warning: '%s' directive writing up to 255 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(file_name, "%s%s%s", lbs->data_dir, lbs->el_index[index].subdir, lbs->el_index[index].file_name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 1 and 542 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'display_line': src/elogd.c:17830:33: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] sprintf(ref, "../%s/%s/%s", lbs->name, str, attachment[i] + 14); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 261) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:18190:36: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] sprintf(ref, "../%s/%s/%s", lbs->name, str, attachment[i] + 14); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 261) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:18312:33: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] sprintf(ref, "../%s/%s/%s", lbs->name, str, attachment[i] + 14); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 261) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:18370:30: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] sprintf(ref, "../%s/%s/%s", lbs->name, str, attachment[index] + 14); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 261) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'el_delete_message': src/elogd.c:5242:26: warning: '%s' directive writing up to 255 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(file_name, "%s%s%s", lbs->data_dir, lbs->el_index[index].subdir, lbs->el_index[index].file_name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 1 and 542 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'copy_to': src/elogd.c:24003:28: warning: '%s' directive writing up to 255 bytes into a region of size 252 [-Wformat-overflow=] sprintf(str, "?lb=%s\"", lbs->name_enc); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 6 and 261 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:24007:28: warning: '%s' directive writing up to 255 bytes into a region of size 252 [-Wformat-overflow=] sprintf(str, "?lb=%s&", lbs->name_enc); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 6 and 261 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:24007:28: warning: '%s' directive writing up to 255 bytes into a region of size 252 [-Wformat-overflow=] sprintf(str, "?lb=%s&", lbs->name_enc); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 6 and 261 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'save_user_config': src/elogd.c:13702:30: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] sprintf(str, "../%s/", lbs->name_enc); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_edit_form': src/elogd.c:10042:33: warning: '%s' directive writing up to 255 bytes into a region of size 251 [-Wformat-overflow=] sprintf(page_title, "ELOG %s", lbs->name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 6 and 261 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'do_self_register': src/elogd.c:26822:27: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] sprintf(str, "../%s/", lbs->name_enc); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'show_uploader_finished': src/elogd.c:27063:30: warning: '%s' directive writing up to 255 bytes into a region of size 251 [-Wformat-overflow=] sprintf(ref, "%s/%s?lb=%s", str, file_enc, lbs->name_enc); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 261) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:27064:36: warning: '%s' directive writing up to 255 bytes into a region of size 251 [-Wformat-overflow=] sprintf(ref_thumb, "%s/%s?lb=%s&thumb=1", str, file_enc, lbs->name_enc); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 14 or more bytes (assuming 269) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c: In function 'synchronize_logbook': src/elogd.c:16844:44: warning: '%s' directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=] sprintf(loc_ref, "%s", lbs->name_enc, lbs->name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 20 and 530 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:16846:41: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] sprintf(loc_ref, "%s", lbs->name_enc, lbs->name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 17 and 527 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:16848:45: warning: '%s' directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=] sprintf(loc_ref, "%s", lbs->name); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 17 and 272 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:17168:53: warning: '%s' directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=] sprintf(loc_ref, "%s", lbs->name_enc, message_id, loc("local")); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:17170:50: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] sprintf(loc_ref, "%s", lbs->name_enc, message_id, loc("local")); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 18 or more bytes (assuming 273) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:17243:53: warning: '%s' directive writing up to 255 bytes into a region of size 244 [-Wformat-overflow=] sprintf(loc_ref, "%s", lbs->name_enc, message_id, loc("local")); ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/elogd.c:17245:50: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] sprintf(loc_ref, "%s", lbs->name_enc, message_id, ^~ In file included from /usr/include/stdio.h:862:0, from src/elogd.h:42, from src/elogd.c:38: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output 18 or more bytes (assuming 273) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Ud2ZAu + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64 + cd elog-3.1.3 + make install ROOT=/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64 PREFIX=/usr MANDIR=/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/man ELOGDIR=/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog 'elog' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/bin/elog' 'elconv' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/bin/elconv' 'elogd' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/sbin/elogd' 'man/elog.1' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/man/man1/elog.1' 'man/elconv.1' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/man/man1/elconv.1' 'man/elogd.8' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/man/man8/elogd.8' 'scripts/ckeditor-config.js' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/ckeditor-config.js' 'scripts/dnd.js' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/dnd.js' 'scripts/elcode.js' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/elcode.js' 'scripts/im.js' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/im.js' 'scripts/jquery-1.11.1.min.js' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/jquery-1.11.1.min.js' 'scripts/load-ckeditor.js' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/load-ckeditor.js' Installing CKeditor to /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/ckeditor Installing resources to /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/resources 'ssl/server.crt' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/ssl/server.crt' 'ssl/server.key' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/ssl/server.key' Installing themes to /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/themes Installing example logbook to /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/logbooks/demo 'logbooks/demo/2001/011108a.log' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/logbooks/demo/2001/011108a.log' 'elogd.cfg' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/elogd.cfg' /usr/bin/install: creating directory '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/etc' /usr/bin/install: creating directory '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/etc/rc.d' /usr/bin/install: creating directory '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/etc/rc.d/init.d' 'elogd.init' -> '/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/etc/rc.d/init.d/elogd' + rm /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/etc/rc.d/init.d/elogd + mv /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/elogd.cfg /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/etc/ + mkdir -p /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/lib/systemd/system + cp /builddir/build/SOURCES/elogd.service /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/var/lib/elog/logbooks + ln -s /usr/share/ckeditor /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/elog/scripts/ckeditor + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/elog-3.1.3-4.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 *** WARNING: ./usr/share/elog/themes/default/compact.css is executable but has empty or no shebang, removing executable bit *** WARNING: ./usr/share/elog/themes/default/tiny.css is executable but has empty or no shebang, removing executable bit *** WARNING: ./usr/share/elog/themes/default/elog.css is executable but has empty or no shebang, removing executable bit Processing files: elog-3.1.3-4.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.pej0gg + umask 022 + cd /builddir/build/BUILD + cd elog-3.1.3 + DOCDIR=/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/doc/elog + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/doc/elog + cp -pr README /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/doc/elog + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.oULbLq + umask 022 + cd /builddir/build/BUILD + cd elog-3.1.3 + LICENSEDIR=/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/licenses/elog + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/licenses/elog + cp -pr COPYING /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/licenses/elog + exit 0 Provides: config(elog) = 3.1.3-4.fc28 elog = 3.1.3-4.fc28 elog(riscv-64) = 3.1.3-4.fc28 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh shadow-utils Requires(post): /bin/sh Requires(preun): /bin/sh Requires(postun): /bin/sh Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libkrb5.so.3()(64bit) libkrb5.so.3(krb5_3_MIT)(64bit) liblber-2.4.so.2()(64bit) libldap-2.4.so.2()(64bit) libssl.so.1.1()(64bit) libssl.so.1.1(OPENSSL_1_1_0)(64bit) rtld(GNU_HASH) Processing files: elog-client-3.1.3-4.fc28.riscv64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.JRLhwX + umask 022 + cd /builddir/build/BUILD + cd elog-3.1.3 + LICENSEDIR=/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/licenses/elog-client + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/licenses/elog-client + cp -pr COPYING /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/licenses/elog-client + exit 0 Provides: elog-client = 3.1.3-4.fc28 elog-client(riscv-64) = 3.1.3-4.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) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libkrb5.so.3()(64bit) liblber-2.4.so.2()(64bit) libldap-2.4.so.2()(64bit) libssl.so.1.1()(64bit) libssl.so.1.1(OPENSSL_1_1_0)(64bit) rtld(GNU_HASH) Processing files: elog-doc-3.1.3-4.fc28.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ObiA96 + umask 022 + cd /builddir/build/BUILD + cd elog-3.1.3 + DOCDIR=/builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/doc/elog-doc + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/doc/elog-doc + cp -pr doc/ /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64/usr/share/doc/elog-doc + exit 0 Provides: elog-doc = 3.1.3-4.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/elog-3.1.3-4.fc28.riscv64 Wrote: /builddir/build/SRPMS/elog-3.1.3-4.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/elog-3.1.3-4.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/elog-client-3.1.3-4.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/noarch/elog-doc-3.1.3-4.fc28.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.cFhucH + umask 022 + cd /builddir/build/BUILD + cd elog-3.1.3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/elog-3.1.3-4.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