D: [iurt_root_command] chroot warning: Macro expanded in comment on line 212: %{_var}/spool/fax/outgoing/locks Installing /home/pterjan/rpmbuild/SRPMS/mgetty-1.1.37-1.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FS017y + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf mgetty-1.1.37 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/mgetty1.1.37-Jun05.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mgetty-1.1.37 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp policy.h-dist policy.h + echo 'Patch #0 (mgetty-1.1.14-config.patch):' Patch #0 (mgetty-1.1.14-config.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .config --fuzz=0 patching file Makefile Hunk #1 succeeded at 109 (offset 7 lines). Hunk #2 succeeded at 171 (offset 7 lines). Hunk #3 succeeded at 179 (offset 7 lines). Hunk #4 succeeded at 199 (offset 7 lines). + echo 'Patch #1 (mgetty-1.1.5-makekvg.patch):' Patch #1 (mgetty-1.1.5-makekvg.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .makekvg --fuzz=0 patching file Makefile Hunk #1 succeeded at 658 (offset 57 lines). + echo 'Patch #2 (mgetty-1.1.14-policy.patch):' Patch #2 (mgetty-1.1.14-policy.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .policy --fuzz=0 patching file policy.h + echo 'Patch #3 (mgetty-1.1.5-strip.patch):' Patch #3 (mgetty-1.1.5-strip.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .strip --fuzz=0 patching file voice/Makefile Hunk #1 succeeded at 83 (offset 2 lines). + echo 'Patch #4 (mgetty-1.1.14-echo.patch):' Patch #4 (mgetty-1.1.14-echo.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .echo --fuzz=0 patching file Makefile Hunk #1 succeeded at 282 (offset 21 lines). + echo 'Patch #5 (mgetty-1.1.14-logrotate.patch):' Patch #5 (mgetty-1.1.14-logrotate.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file logrotate.mgetty patching file logrotate.sendfax + echo 'Patch #8 (mgetty-1.1.35-noroot.patch):' Patch #8 (mgetty-1.1.35-noroot.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .noroot --fuzz=0 patching file callback/Makefile Hunk #1 succeeded at 37 (offset -3 lines). patching file contrib/next-login/Makefile patching file fax/Makefile Hunk #1 succeeded at 58 (offset -3 lines). patching file frontends/www/Makefile Hunk #1 succeeded at 96 (offset 1 line). patching file Makefile Hunk #1 succeeded at 171 (offset 7 lines). Hunk #2 succeeded at 611 (offset 9 lines). Hunk #3 succeeded at 637 (offset 9 lines). + echo 'Patch #9 (mgetty-1.1.21-linkman.patch):' Patch #9 (mgetty-1.1.21-linkman.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file voice/Makefile Hunk #1 succeeded at 95 (offset 2 lines). + echo 'Patch #13 (mgetty-1.1.35-force_detect.patch):' Patch #13 (mgetty-1.1.35-force_detect.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .force_detect --fuzz=0 patching file voice/contrib/Pat_Deegan/README patching file voice/contrib/Pat_Deegan/vgetty-test.pl patching file voice/include/default.h patching file voice/include/version.h patching file voice/libvoice/detect.c patching file voice/voice.conf-dist + echo 'Patch #14 (mgetty-1.1.30-mktemp.patch):' Patch #14 (mgetty-1.1.30-mktemp.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .mktemp --fuzz=0 patching file fax/faxspool.in Hunk #1 succeeded at 693 (offset 56 lines). + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.cPA6Hk + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd mgetty-1.1.37 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -DVARRUNDIR=\"/var/run\" -c mgetty.c mgetty.c: In function 'main': mgetty.c:421:5: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] chown( devname, uid, gid ); ^~~~~~~~~~~~~~~~~~~~~~~~~~ mgetty.c:1017:17: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system( c_string(issue_file)+1 ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o logfile.o logfile.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o do_chat.o do_chat.c do_chat.c: In function 'do_chat_send': do_chat.c:55:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( fd, p, 1 ); ^~~~~~~~~~~~~~~~~ do_chat.c:73:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( fd, MODEM_CMD_SUFFIX, sizeof(MODEM_CMD_SUFFIX)-1 ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o locks.o locks.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o utmp.o utmp.c utmp.c: In function 'make_utmp_wtmp': utmp.c:113:8: warning: unused variable 'fp' [-Wunused-variable] FILE * fp; ^~ utmp.c:112:13: warning: unused variable 'st' [-Wunused-variable] struct stat st; ^~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o logname.o logname.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -DCONFDIR=\"/etc/mgetty+sendfax\" -c login.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o mg_m_init.o mg_m_init.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o modem.o modem.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o faxrec.o faxrec.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o ring.o ring.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o faxlib.o faxlib.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o faxsend.o faxsend.c faxsend.c: In function 'fax_send_page': faxsend.c:214:19: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( r >= 64 && strcmp( buf+1, ^~~~~~ faxsend.c: In function 'fax_send_ppm': faxsend.c:381:11: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if ( strncmp( ppm_r, "+FHS:", 5 ) == 0 ) ^~~~~~~ faxsend.c: In function 'fax_send_page': faxsend.c:194:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( fd, nbuf, sizeof(nbuf) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faxsend.c: In function 'fax_send_panic_exit': faxsend.c:65:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] alarm( 5 ); write( fd, fax_end_of_page, sizeof( fax_end_of_page ) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faxsend.c:67:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] alarm( 5 ); write( fd, fax_end_of_page, sizeof( fax_end_of_page ) ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ faxsend.c:70:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] alarm( 5 ); write( fd, "AT+FK\r\n", 7 ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ faxsend.c:71:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] alarm( 5 ); write( fd, "ATH0\r\n", 6 ); ^~~~~~~~~~~~~~~~~~~~~~~~~~ faxsend.c:81:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] alarm( 5 ); write( fd, "ATH0Z\r\n", 7 ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ faxsend.c: In function 'fax_send_ppm': faxsend.c:408:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( fd, fax_end_of_page, sizeof( fax_end_of_page )); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o faxrecp.o faxrecp.c faxrecp.c: In function 'fax_get_pages': faxrecp.c:328:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( fd, &start_rcv, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o class1.o class1.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o class1lib.o class1lib.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o faxhng.o faxhng.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o hyla_nsf.o hyla_nsf.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o g3file.o g3file.c In file included from /usr/include/string.h:630:0, from /usr/include/memory.h:29, from g3file.c:31: g3file.c: In function 'g3_open_read': g3file.c:103:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] strcmp( g3_rf_buf+1, "PC Research, Inc" ) == 0 ) ^ In file included from /usr/include/memory.h:29:0, from g3file.c:31: /usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'uch * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from /usr/include/string.h:630:0, from /usr/include/memory.h:29, from g3file.c:31: g3file.c:103:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] strcmp( g3_rf_buf+1, "PC Research, Inc" ) == 0 ) ^ g3file.c:103:11: note: expected 'const char *' but argument is of type 'uch * {aka unsigned char *}' g3file.c:103:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] strcmp( g3_rf_buf+1, "PC Research, Inc" ) == 0 ) ^ In file included from /usr/include/memory.h:29:0, from g3file.c:31: /usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'uch * {aka unsigned char *}' extern size_t strlen (const char *__s) ^~~~~~ In file included from /usr/include/string.h:630:0, from /usr/include/memory.h:29, from g3file.c:31: g3file.c:103:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] strcmp( g3_rf_buf+1, "PC Research, Inc" ) == 0 ) ^ g3file.c:103:11: note: expected 'const char *' but argument is of type 'uch * {aka unsigned char *}' g3file.c:103:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] strcmp( g3_rf_buf+1, "PC Research, Inc" ) == 0 ) ^ g3file.c:103:11: note: expected 'const char *' but argument is of type 'uch * {aka unsigned char *}' g3file.c:103:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] strcmp( g3_rf_buf+1, "PC Research, Inc" ) == 0 ) ^ g3file.c:103:11: note: expected 'const char *' but argument is of type 'uch * {aka unsigned char *}' g3file.c: In function 'g3_send_file': g3file.c:208:22: warning: pointer targets in passing argument 1 of 'in_func' differ in signedness [-Wpointer-sign] r_num = in_func( rbuf, sizeof(rbuf) ); ^~~~ g3file.c:208:22: note: expected 'char *' but argument is of type 'uch * {aka unsigned char *}' g3file.c:250:23: warning: pointer targets in passing argument 1 of 'in_func' differ in signedness [-Wpointer-sign] r_num = in_func( rbuf, sizeof(rbuf) ); ^~~~ g3file.c:250:23: note: expected 'char *' but argument is of type 'uch * {aka unsigned char *}' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o io.o io.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o gettydefs.o gettydefs.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o tio.o tio.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -DCONFDIR=\"/etc/mgetty+sendfax\" -c cnd.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o getdisk.o getdisk.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o goodies.o goodies.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o config.o config.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -DFAX_SPOOL_IN=\"/var/spool/fax/incoming\" \ -DCONFDIR=\"/etc/mgetty+sendfax\" -c conf_mg.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o do_stat.o do_stat.c gcc -o mgetty mgetty.o logfile.o do_chat.o locks.o utmp.o logname.o login.o mg_m_init.o modem.o faxrec.o ring.o faxlib.o faxsend.o faxrecp.o class1.o class1lib.o faxhng.o hyla_nsf.o g3file.o io.o gettydefs.o tio.o cnd.o getdisk.o goodies.o config.o conf_mg.o do_stat.o logfile.o: In function `lprintf': /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/logfile.c:330: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/logfile.c:330: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -c -o sendfax.o sendfax.c sendfax.c: In function 'main': sendfax.c:450:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( fd, "AT", 2 ); ^~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -DCONFDIR=\"/etc/mgetty+sendfax\" -c conf_sf.c gcc -o sendfax sendfax.o logfile.o locks.o modem.o faxlib.o faxsend.o faxrecp.o class1.o class1lib.o faxhng.o hyla_nsf.o g3file.o io.o tio.o getdisk.o config.o conf_sf.o goodies.o logfile.o: In function `lprintf': /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/logfile.c:330: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/logfile.c:330: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -o newslock compat/newslock.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -DBINDIR=\"/usr/bin\" -DSBINDIR=\"/usr/sbin\" \ -DLIBDIR=\"/usr/lib/mgetty+sendfax\" \ -DCONFDIR=\"/etc/mgetty+sendfax\" \ -DFAX_SPOOL=\"/var/spool/fax\" \ -DFAX_SPOOL_IN=\"/var/spool/fax/incoming\" \ -DFAX_SPOOL_OUT=\"/var/spool/fax/outgoing\" \ -DFAX_OUT_USER=\"fax\" \ -DVARRUNDIR=\"/var/run\" \ -DAWK=\"awk\" \ -DPERL=\""/usr/bin/perl -w"\" -DTKPERL=\"/usr/bin/tkperl\" \ -DECHO=\""echo -e"\" \ -DSHELL=\"/bin/sh\" \ -DSHELL_TRAP_POSIX=1 \ -o mksed mksed.c ./mksed >sedscript chmod +x sedscript cd g3 && make "CC=gcc" "CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -I.." "LDFLAGS=" "LIBS=" all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -I.. -c -o pbm2g3.o pbm2g3.c pbm2g3.c: In function 'main': pbm2g3.c:398:9: warning: variable 'digifax_header' set but not used [-Wunused-but-set-variable] int digifax_header = FALSE; ^~~~~~~~~~~~~~ pbm2g3.c: At top level: pbm2g3.c:67:30: warning: 'out_hibit' is static but used in inline function 'puteol' which is not static if ( byte_align ) while( out_hibit != 4 ) putcode( 0, 1 ); ^~~~~~~~~ pbm2g3.c:57:31: warning: 'buflen' is static but used in inline function 'putcode' which is not static write( 1, buf, buflen ); buflen = 0; ^~~~~~ pbm2g3.c:57:21: warning: 'buflen' is static but used in inline function 'putcode' which is not static write( 1, buf, buflen ); buflen = 0; ^~~~~~ pbm2g3.c:57:16: warning: 'buf' is static but used in inline function 'putcode' which is not static write( 1, buf, buflen ); buflen = 0; ^~~ pbm2g3.c:55:25: warning: 'buf' is static but used in inline function 'putcode' which is not static if ( buflen >= sizeof( buf ) ) ^~~ pbm2g3.c:55:7: warning: 'buflen' is static but used in inline function 'putcode' which is not static if ( buflen >= sizeof( buf ) ) ^~~~~~ pbm2g3.c:54:2: warning: 'out_hibit' is static but used in inline function 'putcode' which is not static out_hibit -= 8; ^~~~~~~~~ pbm2g3.c:53:2: warning: 'out_data' is static but used in inline function 'putcode' which is not static out_data >>= 8; ^~~~~~~~ pbm2g3.c:52:35: warning: 'out_data' is static but used in inline function 'putcode' which is not static buf[ buflen++ ] = out_byte_tab[( out_data ) & 0xff]; ^~~~~~~~ pbm2g3.c:52:20: warning: 'out_byte_tab' is static but used in inline function 'putcode' which is not static buf[ buflen++ ] = out_byte_tab[( out_data ) & 0xff]; ^~~~~~~~~~~~ pbm2g3.c:52:7: warning: 'buflen' is static but used in inline function 'putcode' which is not static buf[ buflen++ ] = out_byte_tab[( out_data ) & 0xff]; ^~~~~~ pbm2g3.c:52:2: warning: 'buf' is static but used in inline function 'putcode' which is not static buf[ buflen++ ] = out_byte_tab[( out_data ) & 0xff]; ^~~ pbm2g3.c:50:12: warning: 'out_hibit' is static but used in inline function 'putcode' which is not static while( out_hibit >= 8 ) ^~~~~~~~~ pbm2g3.c:48:5: warning: 'out_hibit' is static but used in inline function 'putcode' which is not static out_hibit += len; ^~~~~~~~~ pbm2g3.c:47:27: warning: 'out_hibit' is static but used in inline function 'putcode' which is not static out_data |= ( code << out_hibit ); ^~~~~~~~~ pbm2g3.c:47:5: warning: 'out_data' is static but used in inline function 'putcode' which is not static out_data |= ( code << out_hibit ); ^~~~~~~~ pbm2g3.c: In function 'putcode': pbm2g3.c:57:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( 1, buf, buflen ); buflen = 0; ^~~~~~~~~~~~~~~~~~~~~~~ pbm2g3.c: In function 'main': pbm2g3.c:504:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write( 1, buf, buflen ); ^~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -I.. -c -o g3.o g3.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -I.. -c -o run_tbl.o run_tbl.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -pipe -DAUTO_PPP -I.. -o pbm2g3 pbm2g3.o g3.o run_tbl.o pbm2g3.o: In function `main': /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:479: undefined reference to `puteol' /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:482: undefined reference to `putwhitespan' /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:482: undefined reference to `puteol' /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:499: undefined reference to `puteol' /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:499: undefined reference to `puteol' /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:499: undefined reference to `puteol' /home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:499: undefined reference to `puteol' pbm2g3.o:/home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3/pbm2g3.c:499: more undefined references to `puteol' follow collect2: error: ld returned 1 exit status make[1]: *** [Makefile:15: pbm2g3] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/mgetty-1.1.37/g3' make: *** [Makefile:373: subdirs] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.cPA6Hk (%build) RPM build errors: Macro expanded in comment on line 212: %{_var}/spool/fax/outgoing/locks Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.cPA6Hk (%build) I: [iurt_root_command] ERROR: chroot