2021-08-26 18:48:48 exec_hook package_begin chapter08 874-sysklogd
START: 2021-08-26 18:48:48
# Begin /home/lfs/build/x86_64/sources/config.inc
# Environment for chapter08/874-sysklogd

# Make flags
export MAKEFLAGS=-j4

# C/C++ flags
export CFLAGS="-mtune=generic "
export CXXFLAGS="-mtune=generic "

# Log output for tests
TEST_LOG=${ROOT}sources/874-sysklogd-tests.tmp
LFS_CHAPTER=chapter08
LFS_SCRIPT=874-sysklogd

# Targets for multilib
LFS_TGT=x86_64-lfs-linux-gnu
LFS_TGT32=i686-lfs-linux-gnu
LFS_TGTX32=x86_64-lfs-linux-gnux32

echo "Environment"
set

echo "File systems"
mount || true

echo "logname"
logname || true

# End /home/lfs/build/x86_64/sources/config.inc

Environment
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=([0]="1" [1]="0")
BASH_ARGV=([0]="/sources/config.inc")
BASH_CMDS=()
BASH_LINENO=([0]="15" [1]="0")
BASH_SOURCE=([0]="/sources/config.inc" [1]="/sources/lfs-commands/chapter08/874-sysklogd")
BASH_VERSINFO=([0]="5" [1]="1" [2]="8" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
BASH_VERSION='5.1.8(1)-release'
CFLAGS='-mtune=generic '
CXXFLAGS='-mtune=generic '
DIRSTACK=()
EUID=0
GROUPS=()
HOME=/root
HOSTNAME=lfs-x86_64
HOSTTYPE=x86_64
IFS=$' \t\n'
LFS_CHAPTER=chapter08
LFS_SCRIPT=874-sysklogd
LFS_TGT=x86_64-lfs-linux-gnu
LFS_TGT32=i686-lfs-linux-gnu
LFS_TGTX32=x86_64-lfs-linux-gnux32
MACHTYPE=x86_64-pc-linux-gnu
MAKEFLAGS=-j4
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PIPESTATUS=([0]="0")
PPID=23611
PREV_SEC=0
PS4='+ '
PWD=/
ROOT=/
SCRIPT_ROOT=/dev/null
SECONDS=0
SHELL=/bin/bash
SHELLOPTS=braceexpand:errexit:interactive-comments
SHLVL=1
TERM=xterm-256color
TEST_LOG=/sources/874-sysklogd-tests.tmp
UID=0
_=Environment
File systems
/dev/sdb1 on / type ext4 (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=4072068k,nr_inodes=1018017,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime)
logname
root
KB: 2477200	/
/sources/autolfs_package_patch PKG_DEST=/sources/874-sysklogd
gcc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DSYSLOG_INET -DSYSLOG_UNIXAF -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"syslogd.pid\"  -c syslogd.c
gcc -mtune=generic    -c -o pidfile.o pidfile.c
gcc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DFSSTND   -c klogd.c
gcc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DALLOW_KERNEL_LOGGING -c syslog.c
syslog.c:96:9: warning: 'format' attribute cannot be applied to a function that does not take variable arguments [-Wattributes]
   96 |         int pri;
      |         ^~~
gcc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DFSSTND  -c ksym.c
ksym.c: In function 'ExpandKadds':
ksym.c:769:25: warning: variable 'dlm' set but not used [-Wunused-but-set-variable]
  769 |         auto char       dlm,
      |                         ^~~
gcc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DFSSTND  -c ksym_mod.c
gcc -s -o klogd klogd.o syslog.o pidfile.o ksym.o \
	ksym_mod.o 
syslogd.c: In function 'fprintlog':
syslogd.c:2227:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                                                             ^~
syslogd.c:2227:24: note: 'snprintf' output 12 or more bytes (assuming 211) into a destination of size 100
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2225:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                                                             ^~
syslogd.c:2225:24: note: 'snprintf' output between 10 and 209 bytes into a destination of size 100
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2227:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                                                             ^~
syslogd.c:2227:24: note: 'snprintf' output 12 or more bytes (assuming 211) into a destination of size 100
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2225:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                                                             ^~
syslogd.c:2225:24: note: 'snprintf' output between 10 and 209 bytes into a destination of size 100
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c: In function 'logmsg':
syslogd.c:1731:32: warning: 'strncpy' specified bound 65 equals destination size [-Wstringop-truncation]
 1731 |                         (void) strncpy(f->f_prevhost, from,
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1732 |                                         sizeof(f->f_prevhost));
      |                                         ~~~~~~~~~~~~~~~~~~~~~~
syslogd.c: In function 'cfline':
syslogd.c:2664:102: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 177 [-Wformat-truncation=]
 2664 |                                         (void) snprintf(xbuf, sizeof(xbuf), "unknown facility name \"%s\"", buf);
      |                                                                                                      ^~     ~~~
syslogd.c:2664:48: note: 'snprintf' output between 25 and 1048 bytes into a destination of size 200
 2664 |                                         (void) snprintf(xbuf, sizeof(xbuf), "unknown facility name \"%s\"", buf);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2227:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                                                             ^~
......
 2665 |                                         logerror(xbuf);
      |                                                  ~~~~        
syslogd.c:2227:24: note: 'snprintf' output 12 or more bytes (assuming 211) into a destination of size 100
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2225:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                                                             ^~
......
 2665 |                                         logerror(xbuf);
      |                                                  ~~~~        
syslogd.c:2225:24: note: 'snprintf' output between 10 and 209 bytes into a destination of size 100
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2617:86: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 177 [-Wformat-truncation=]
 2617 |                         (void) snprintf(xbuf, sizeof(xbuf), "unknown priority name \"%s\"", buf);
      |                                                                                      ^~     ~~~
syslogd.c:2617:32: note: 'snprintf' output between 25 and 1048 bytes into a destination of size 200
 2617 |                         (void) snprintf(xbuf, sizeof(xbuf), "unknown priority name \"%s\"", buf);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2227:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                                                             ^~
......
 2618 |                         logerror(xbuf);
      |                                  ~~~~                        
syslogd.c:2227:24: note: 'snprintf' output 12 or more bytes (assuming 211) into a destination of size 100
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2225:61: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 91 [-Wformat-truncation=]
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                                                             ^~
......
 2618 |                         logerror(xbuf);
      |                                  ~~~~                        
syslogd.c:2225:24: note: 'snprintf' output between 10 and 209 bytes into a destination of size 100
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'create_unix_socket',
    inlined from 'init' at syslogd.c:2452:19:
syslogd.c:1262:16: warning: 'strncpy' specified bound 108 equals destination size [-Wstringop-truncation]
 1262 |         (void) strncpy(sunx.sun_path, path, sizeof(sunx.sun_path));
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c: In function 'init':
syslogd.c:2227:61: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size 91 [-Wformat-truncation=]
 1268 |                 logerror(line);
      |                          ~~~~                                
......
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                                                             ^~
syslogd.c:2227:24: note: 'snprintf' output 12 or more bytes (assuming 1036) into a destination of size 100
 2227 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s: %s", type, strerror(errno));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
syslogd.c:2225:61: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size 91 [-Wformat-truncation=]
 1268 |                 logerror(line);
      |                          ~~~~                                
......
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                                                             ^~
syslogd.c:2225:24: note: 'snprintf' output between 10 and 1034 bytes into a destination of size 100
 2225 |                 (void) snprintf(buf, sizeof(buf), "syslogd: %s", type);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -s -o syslogd syslogd.o pidfile.o 
/usr/bin/install -o root -g root -m 644 sysklogd.8 /usr/share/man/man8/sysklogd.8
/usr/bin/install -o root -g root -m 644 syslogd.8 /usr/share/man/man8/syslogd.8
/usr/bin/install -o root -g root -m 644 syslog.conf.5 /usr/share/man/man5/syslog.conf.5
/usr/bin/install -o root -g root -m 644 klogd.8 /usr/share/man/man8/klogd.8
/usr/bin/install -m 500 -s syslogd /sbin/syslogd
/usr/bin/install -m 500 -s klogd /sbin/klogd


Totalseconds: 1

KB: 2477872	/
2021-08-26 18:48:50 exec_hook package_done chapter08 874-sysklogd
END: 2021-08-26 18:48:50
