Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 808705 Details for
Bug 870943
app-admin/newsyslog-1.1.0.81-r1 - newsyslog.c: error: call to undeclared function setgroupent; ISO C99 and
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
app-admin:newsyslog-1.1.0.81-r1:20220917-170142.log
app-admin:newsyslog-1.1.0.81-r1:20220917-170142.log (text/plain), 21.26 KB, created by
Toralf Förster
on 2022-09-17 19:22:20 UTC
(
hide
)
Description:
app-admin:newsyslog-1.1.0.81-r1:20220917-170142.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2022-09-17 19:22:20 UTC
Size:
21.26 KB
patch
obsolete
> * Package: app-admin/newsyslog-1.1.0.81-r1:0 > * Repository: gentoo > * Maintainer: monsieurp@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking newsyslog-1.1.0.81.tar.gz to /var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work >>>> Source unpacked in /var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work >>>> Preparing source in /var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work/newsyslog-1.1.0.81 ... > * Applying newsyslog-1.1.0.81-html.patch ... > [ ok ] > * Applying newsyslog-1.1.0.81-fno-common.patch ... > [ ok ] >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work/newsyslog-1.1.0.81 ... >./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --docdir=/usr/share/doc/newsyslog-1.1.0.81-r1 --htmldir=/usr/share/doc/newsyslog-1.1.0.81-r1/html --libdir=/usr/lib64 --with-gzip --with-newsyslog_conf=/etc/newsyslog.conf --with-syslogd_pid=/var/run/syslog.pid >checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c >checking whether build environment is sane... yes >checking for a thread-safe mkdir -p... /bin/mkdir -p >checking for gawk... gawk >checking whether make sets $(MAKE)... yes >checking for x86_64-pc-linux-gnu-gcc... clang >checking for C compiler default output file name... a.out >checking whether the C compiler works... yes >checking whether we are cross compiling... no >checking for suffix of executables... >checking for suffix of object files... o >checking whether we are using the GNU C compiler... yes >checking whether clang accepts -g... yes >checking for clang option to accept ISO C89... none needed >checking for style of include used by make... GNU >checking dependency style of clang... none >checking whether make sets $(MAKE)... (cached) yes >checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c >checking how to run the C preprocessor... clang -E >checking for grep that handles long lines and -e... /bin/grep >checking for egrep... /bin/grep -E >checking for ANSI C header files... yes >checking for sys/types.h... yes >checking for sys/stat.h... yes >checking for stdlib.h... yes >checking for string.h... yes >checking for memory.h... yes >checking for strings.h... yes >checking for inttypes.h... yes >checking for stdint.h... yes >checking for unistd.h... yes >checking minix/config.h usability... no >checking minix/config.h presence... no >checking for minix/config.h... no >checking whether it is safe to define __EXTENSIONS__... yes >checking for library containing strerror... none required >checking for ANSI C header files... (cached) yes >checking for sys/wait.h that is POSIX.1 compatible... yes >checking whether time.h and sys/time.h may both be included... yes >checking errno.h usability... yes >checking errno.h presence... yes >checking for errno.h... yes >checking netdb.h usability... yes >checking netdb.h presence... yes >checking for netdb.h... yes >checking paths.h usability... yes >checking paths.h presence... yes >checking for paths.h... yes >checking for string.h... (cached) yes >checking for sys/types.h... (cached) yes >checking sys/file.h usability... yes >checking sys/file.h presence... yes >checking for sys/file.h... yes >checking sys/param.h usability... yes >checking sys/param.h presence... yes >checking for sys/param.h... yes >checking for unistd.h... (cached) yes >checking for sys/user.h... yes >checking for sys/proc.h... no >checking linux/tasks.h usability... no >checking linux/tasks.h presence... no >checking for linux/tasks.h... no >checking linux/threads.h usability... no >checking linux/threads.h presence... no >checking for linux/threads.h... no >checking for sys/cdefs.h... yes >checking for an ANSI C-conforming const... yes >checking for unsigned long long... yes >checking return type of signal handlers... void >checking for sys_signame declaration in signal.h... no >checking for sys_nsig declaration in signal.h... no >checking whether getopt is declared... yes >checking whether optind is declared... yes >checking whether opterr is declared... yes >checking whether optarg is declared... yes >checking whether optopt is declared... yes >checking whether setgroupent is declared... no >checking whether setpassent is declared... no >checking whether sig2str is declared... no >checking whether str2sig is declared... no >checking whether strsignal is declared... no >checking whether strchr is declared... yes >checking whether strdup is declared... yes >checking whether strrchr is declared... yes >checking whether strtok is declared... yes >checking whether exit is declared... yes >checking whether strtol is declared... yes >checking whether strtoul is declared... yes >checking whether strptime is declared... yes >checking for setgroupent... no >checking for setpassent... no >checking for sig2str... no >checking for snprintf... yes >checking for str2sig... no >checking for strdup... yes >checking for strerror... yes >checking for strptime... yes >checking for strsignal... yes >checking for strtok... yes >checking for sys_signame... no >checking for bzero... yes >checking for flock... yes >checking for getopt... yes >checking for isnan... yes >checking for isinf... yes >checking for memset... yes >checking for mkstemp... yes >checking for rename... yes >checking for strchr... yes >checking for strrchr... yes >checking for strtol... yes >checking for strtoul... yes >checking for sys_nsig... no >checking if malloc debugging is wanted... no >checking for name of archive compression program... gzip with .gz >checking for gzip... /bin/gzip >checking for name of syslogd's pid file... /var/run/syslog.pid >checking for name of config file... /etc/newsyslog.conf >configure: creating ./config.status >config.status: creating Makefile >config.status: creating Makefile.BSD >config.status: creating newsyslog.conf.5so >config.status: creating newsyslog.8so >config.status: creating config.h >config.status: executing depfiles commands >>>> Source configured. >'/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/temp/clang14.log' -> '/var/tmp/clang/app-admin/newsyslog-1.1.0.81-r1/clang14.log' >'/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/temp/clang15.log' -> '/var/tmp/clang/app-admin/newsyslog-1.1.0.81-r1/clang15.log' >>>> Compiling source in /var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work/newsyslog-1.1.0.81 ... >make -j4 >make all-am >make[1]: Entering directory '/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work/newsyslog-1.1.0.81' >clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c setgroupent.c >clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c setpassent.c >clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c sig2str.c >clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c str2sig.c >setgroupent.c:11:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >setgroupent(stayopen) >^ >setpassent.c:11:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >setpassent(stayopen) >^ >11 warning generated warning. > generated. >/bin/sh ./mksigname.sh ./siglist.in sys_signame.c >(soelim -I . newsyslog.conf.5so > newsyslog.conf.5) || (rm -f newsyslog.conf.5; exit 1) >(soelim -I . newsyslog.8so > newsyslog.8) || (rm -f newsyslog.8; exit 1) >(tbl newsyslog.conf.5 | nroff -mdoc > newsyslog.conf.cat5) || (rm -f newsyslog.conf.cat5; exit 1) >str2sig.c:85:1: warning: a function definition without a prototype is deprecated > in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >str2sig(signame, signum) >^ >str2sig.c:114:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >isNumber(p) >^ >str2sig.c:114:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >sig2str.c:81:1: warning: a function definition without a prototype is deprecated > in all versions of C and is not supported in C2x >3 warnings generated. > [-Wdeprecated-non-prototype] >sig2str(signum, signame) >^ >(tbl newsyslog.8 | nroff -mdoc > newsyslog.cat8) || (rm -f newsyslog.cat8; exit 1) >1 warning generated. >(tbl newsyslog.conf.5 | groff -mdoc -Tps > newsyslog.conf.5.ps) || (rm -f newsyslog.conf.5.ps; exit 1) >(tbl newsyslog.8 | groff -mdoc -Tps > newsyslog.8.ps) || (rm -f newsyslog.8.ps; exit 1) >(tbl newsyslog.conf.5 | nroff -mhtml > newsyslog.conf.5.html) || (rm -f newsyslog.conf.5.html; exit 1) >(tbl newsyslog.8 | nroff -mhtml > newsyslog.8.html) || (rm -f newsyslog.8.html; exit 1) >clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c newsyslog.c >clang -DHAVE_CONFIG_H -I. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c sys_signame.c >newsyslog.c:291:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >main(argc, argv) >^ >newsyslog.c:325:6: error: call to undeclared function 'setgroupent'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (setgroupent(1) != 1) { > ^ >newsyslog.c:332:6: error: call to undeclared function 'setpassent'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (setpassent(1) != 1) { > ^ >newsyslog.c:381:8: error: call to undeclared function 'sig2str'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (sig2str(WTERMSIG(cstatus), signm) == -1) { > ^ >newsyslog.c:391:8: error: call to undeclared function 'sig2str'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (sig2str(WSTOPSIG(cstatus), signm) == -1) { > ^ >newsyslog.c:291:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >main(argc, argv) >^ >newsyslog.c:413:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >do_entry(ent) >^ >newsyslog.c:425:10: warning: format specifies type 'unsigned long' but the > argument has type 'unsigned int' [-Wformat] > ...(unsigned long) (ent->uid == NO_ID) ? (write_metalog ? 0 : geteuid()) : ent->uid, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >newsyslog.c:427:10: warning: format specifies type 'unsigned long' but the > argument has type 'unsigned int' [-Wformat] > ...(unsigned long) (ent->gid == NO_ID) ? (write_metalog ? 0 : getegid()) : ent->gid, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >newsyslog.c:435:10: warning: data argument not used by format string > [-Wformat-extra-args] > (ent->flags & CE_PLAIN0) ? "plain.0" : ""); > ^ >newsyslog.c:413:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >do_entry(ent) >^ >newsyslog.c:519:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >parse_options(argc, argv) >^ >newsyslog.c:549:8: error: call to undeclared function 'strptime'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > p = strptime(optarg, "%H:%M", &tms); > ^ >newsyslog.c:549:8: note: did you mean 'strftime'? >/usr/include/time.h:100:15: note: 'strftime' declared here >extern size_t strftime (char *__restrict __s, size_t __maxsize, > ^ >newsyslog.c:549:6: error: incompatible integer to pointer conversion assigning > to 'char *' from 'int' [-Wint-conversion] > p = strptime(optarg, "%H:%M", &tms); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >newsyslog.c:519:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >parse_options(argc, argv) >^ >newsyslog.c:730:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >parse_file(files ) >^ >newsyslog.c:764:8: error: call to undeclared function 'flock'; ISO C99 and later > do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (flock(fd, LOCK_EX | LOCK_NB) != -1) > ^ >newsyslog.c:764:8: note: did you mean 'clock'? >/usr/include/time.h:72:16: note: 'clock' declared here >extern clock_t clock (void) __THROW; > ^ >newsyslog.c:730:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >parse_file(files ) >^ >newsyslog.c:1235:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >missing_field(p, lnum, errline) >^ >newsyslog.c:1235:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:1260:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >do_trim(ent) >^ >newsyslog.c:1691:8: error: call to undeclared function 'sig2str'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (sig2str(ent->signum, signame) == -1) > ^ >newsyslog.c:1260:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >do_trim(ent) >^ >newsyslog.c:1775:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >note_trim(log) >^ >newsyslog.c:1775:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:1807:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >compress_log(log) >^ >newsyslog.c:1807:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:1853:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >check_file_size(file) >^ >newsyslog.c:1853:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:1870:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >check_old_log_age(ent) >^ >newsyslog.c:1893:60: warning: operator '?:' has lower precedence than '+'; '+' > will be evaluated first [-Wparentheses] > return (int) ((timenow - sb.st_mtime + (run_interval > 0) ? run_... > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ >newsyslog.c:1893:60: note: place parentheses around the '+' expression to > silence this warning > return (int) ((timenow - sb.st_mtime + (run_interval > 0) ? run_... > ^ > ( ) >newsyslog.c:1893:60: note: place parentheses around the '?:' expression to > evaluate it first > ...((timenow - sb.st_mtime + (run_interval > 0) ? run_interval : 1800) / 36... > ^ > ( ) >newsyslog.c:1870:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >check_old_log_age(ent) >^ >newsyslog.c:1903:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >read_first_timestamp(file) >^ >newsyslog.c:1903:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:1931:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >parse_tmstamp(file, line) >^ >newsyslog.c:1945:6: error: call to undeclared function 'strptime'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (strptime(line, "%b %d %T ", &tms)) /* syslog */ > ^ >newsyslog.c:1931:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >parse_tmstamp(file, line) >^ >newsyslog.c:2001:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >get_pid_file(pid_file) >^ >newsyslog.c:2001:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:2061:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >strsob(p) >^ >newsyslog.c:2061:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:2076:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >strson(p) >^ >newsyslog.c:2076:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >newsyslog.c:2091:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >getsig(sig) >^ >newsyslog.c:2098:6: error: call to undeclared function 'str2sig'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (str2sig(sig, &n) != -1) > ^ >newsyslog.c:2091:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >getsig(sig) >^ >newsyslog.c:2119:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >parse_dwm(s, trim_at) >^ >newsyslog.c:2119:1: warning: a function definition without a prototype is > deprecated in all versions of C and is not supported in C2x > [-Wdeprecated-non-prototype] >38 warnings and 10 errors generated. >make[1]: *** [Makefile:350: newsyslog.o] Error 1 >make[1]: Leaving directory '/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work/newsyslog-1.1.0.81' >make: *** [Makefile:256: all] Error 2 > * ERROR: app-admin/newsyslog-1.1.0.81-r1::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=app-admin/newsyslog-1.1.0.81-r1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=app-admin/newsyslog-1.1.0.81-r1::gentoo'`. > * The complete build log is located at '/var/log/portage/app-admin:newsyslog-1.1.0.81-r1:20220917-170142.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/temp/environment'. > * Working directory: '/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work/newsyslog-1.1.0.81' > * S: '/var/tmp/portage/app-admin/newsyslog-1.1.0.81-r1/work/newsyslog-1.1.0.81' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 870943
:
808702
| 808705 |
808708
|
808711
|
808714
|
808717
|
808720
|
808723