Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 818845 Details for
Bug 874942
app-crypt/shash-0.2.6-r3 - errors.c: error: stderr undeclared (first use in this function)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
app-crypt:shash-0.2.6-r3:20221004-090117.log
app-crypt:shash-0.2.6-r3:20221004-090117.log (text/plain), 18.10 KB, created by
Toralf Förster
on 2022-10-04 16:27:26 UTC
(
hide
)
Description:
app-crypt:shash-0.2.6-r3:20221004-090117.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2022-10-04 16:27:26 UTC
Size:
18.10 KB
patch
obsolete
> * Package: app-crypt/shash-0.2.6-r3:0 > * Repository: gentoo > * Maintainer: swegener@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking shash-0.2.6.tar.gz to /var/tmp/portage/app-crypt/shash-0.2.6-r3/work >>>> Source unpacked in /var/tmp/portage/app-crypt/shash-0.2.6-r3/work >>>> Preparing source in /var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6 ... > * Applying 0.2.6-manpage-fixes.patch ... > [ ok ] > * Applying shash-0.2.6-binary-files.patch ... > [ ok ] > * Applying shash-0.2.6-format-security.patch ... > [ ok ] >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6 ... > * econf: updating shash-0.2.6/config.sub with /usr/share/gnuconfig/config.sub > * econf: updating shash-0.2.6/config.guess with /usr/share/gnuconfig/config.guess >./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 --libdir=/usr/lib64 --disable-static-link >checking build system type... x86_64-pc-linux-gnu >checking host system type... x86_64-pc-linux-gnu >checking target system type... x86_64-pc-linux-gnu >checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c >checking whether build environment is sane... yes >/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6/missing: Unknown `--run' option >Try `/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6/missing --help' for more information >configure: WARNING: `missing' script is too old or missing >checking for gawk... gawk >checking whether make sets ${MAKE}... yes >checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc >checking for C compiler default output... 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 x86_64-pc-linux-gnu-gcc accepts -g... yes >checking for style of include used by make... fgrep: warning: fgrep is obsolescent; using /bin/grep -F >GNU >checking dependency style of x86_64-pc-linux-gnu-gcc... none >checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed >checking for an ANSI C-conforming const... yes >checking for mhash_keygen in -lmhash... yes >checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c >checking whether ln -s works... yes >checking for rm... /bin/rm >checking for makeinfo... /usr/bin/makeinfo >checking for pthread_mutex_lock in -lpthread... yes >checking whether use of /dev/random is requested... yes >checking whether fcntl-locking is requested... yes >checking whether static link is requested... no >checking for random device... yes >checking how to run the C preprocessor... egrep: warning: egrep is obsolescent; using /bin/grep -E >egrep: warning: egrep is obsolescent; using /bin/grep -E >x86_64-pc-linux-gnu-gcc -E >egrep: warning: egrep is obsolescent; using /bin/grep -E >egrep: warning: egrep is obsolescent; using /bin/grep -E >checking for ANSI C header files... egrep: warning: egrep is obsolescent; using /bin/grep -E >no >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 for unistd.h... (cached) yes >checking pwd.h usability... yes >checking pwd.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for pwd.h... yes >checking locale.h usability... yes >checking locale.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for locale.h... yes >checking for strings.h... (cached) yes >checking ctype.h usability... yes >checking ctype.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for ctype.h... yes >checking for sys/stat.h... (cached) yes >checking for sys/types.h... (cached) yes >checking fcntl.h usability... yes >checking fcntl.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for fcntl.h... yes >checking sys/wait.h usability... yes >checking sys/wait.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for sys/wait.h... yes >checking utime.h usability... yes >checking utime.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for utime.h... yes >checking signal.h usability... yes >checking signal.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for signal.h... yes >checking sys/mman.h usability... yes >checking sys/mman.h presence... egrep: warning: egrep is obsolescent; using /bin/grep -E >yes >checking for sys/mman.h... yes >checking for bzero... yes >checking for signal... yes >checking for sigaction... yes >checking for memset... yes >checking for fcntl... yes >checking for fsync... yes >checking for getuid... yes >checking for geteuid... yes >checking for ftime... yes >checking for lstat... yes >checking for stat... yes >checking for umask... yes >checking for utime... yes >checking for memmove... yes >checking for bcopy... yes >checking for getpwuid... yes >checking for waitpid... yes >checking for mlock... yes >checking whether byte ordering is bigendian... no >checking return type of signal handlers... void >checking for unsigned long int... yes >checking size of unsigned long int... 8 >checking for unsigned int... yes >checking size of unsigned int... 4 >checking for unsigned short int... yes >checking size of unsigned short int... 2 >checking for unsigned char... yes >checking size of unsigned char... 1 >configure: creating ./config.status >config.status: creating Makefile >config.status: creating src/Makefile >config.status: creating doc/Makefile >config.status: creating config.h >egrep: warning: egrep is obsolescent; using /bin/grep -E >config.status: executing depfiles commands >>>> Source configured. >>>> Compiling source in /var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6 ... >make -j4 >make all-recursive >make[1]: Entering directory '/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6' >Making all in src >make[2]: Entering directory '/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6/src' >x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -Wpointer-arith -c `test -f 'shash.c' || echo './'`shash.c >x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -Wpointer-arith -c `test -f 'errors.c' || echo './'`errors.c >x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -Wpointer-arith -c `test -f 'extra.c' || echo './'`extra.c >x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -Wpointer-arith -c `test -f 'functions.c' || echo './'`functions.c >errors.c: In function âerr_quitâ: >errors.c:7:9: error: implicit declaration of function âfputsâ [-Werror=implicit-function-declaration] > 7 | fputs(errmsg, stderr); > | ^~~~~ >errors.c:2:1: note: include â<stdio.h>â or provide a declaration of âfputsâ > 1 | #include <defines.h> > +++ |+#include <stdio.h> > 2 | >errors.c:7:23: error: âstderrâ undeclared (first use in this function) > 7 | fputs(errmsg, stderr); > | ^~~~~~ >errors.c:7:23: note: âstderrâ is defined in header â<stdio.h>â; did you forget to â#include <stdio.h>â? >errors.c:7:23: note: each undeclared identifier is reported only once for each function it appears in >errors.c:8:9: error: implicit declaration of function âexitâ [-Werror=implicit-function-declaration] > 8 | exit(-1); > | ^~~~ >errors.c:2:1: note: include â<stdlib.h>â or provide a declaration of âexitâ > 1 | #include <defines.h> > +++ |+#include <stdlib.h> > 2 | >errors.c:8:9: warning: incompatible implicit declaration of built-in function âexitâ [-Wbuiltin-declaration-mismatch] > 8 | exit(-1); > | ^~~~ >errors.c:8:9: note: include â<stdlib.h>â or provide a declaration of âexitâ >errors.c: In function âerr_warnâ: >errors.c:15:31: error: âstderrâ undeclared (first use in this function) > 15 | fputs(errmsg, stderr); > | ^~~~~~ >errors.c:15:31: note: âstderrâ is defined in header â<stdio.h>â; did you forget to â#include <stdio.h>â? >errors.c: In function âerr_critâ: >errors.c:23:31: error: âstderrâ undeclared (first use in this function) > 23 | fputs(errmsg, stderr); > | ^~~~~~ >errors.c:23:31: note: âstderrâ is defined in header â<stdio.h>â; did you forget to â#include <stdio.h>â? >cc1: some warnings being treated as errors >make[2]: *** [Makefile:182: errors.o] Error 1 >make[2]: *** Waiting for unfinished jobs.... >extra.c: In function âget_cfileâ: >extra.c:29:16: error: implicit declaration of function âmallocâ [-Werror=implicit-function-declaration] > 29 | home = malloc(strlen(pwd->pw_dir) + strlen(cfile) + 2); > | ^~~~~~ >extra.c:2:1: note: include â<stdlib.h>â or provide a declaration of âmallocâ > 1 | #include <defines.h> > +++ |+#include <stdlib.h> > 2 | >extra.c:29:16: warning: incompatible implicit declaration of built-in function âmallocâ [-Wbuiltin-declaration-mismatch] > 29 | home = malloc(strlen(pwd->pw_dir) + strlen(cfile) + 2); > | ^~~~~~ >extra.c:29:16: note: include â<stdlib.h>â or provide a declaration of âmallocâ >extra.c:29:23: error: implicit declaration of function âstrlenâ [-Werror=implicit-function-declaration] > 29 | home = malloc(strlen(pwd->pw_dir) + strlen(cfile) + 2); > | ^~~~~~ >extra.c:2:1: note: include â<string.h>â or provide a declaration of âstrlenâ > 1 | #include <defines.h> > +++ |+#include <string.h> > 2 | >extra.c:29:23: warning: incompatible implicit declaration of built-in function âstrlenâ [-Wbuiltin-declaration-mismatch] > 29 | home = malloc(strlen(pwd->pw_dir) + strlen(cfile) + 2); > | ^~~~~~ >extra.c:29:23: note: include â<string.h>â or provide a declaration of âstrlenâ >extra.c:31:17: error: implicit declaration of function âstrcpyâ [-Werror=implicit-function-declaration] > 31 | strcpy(home, pwd->pw_dir); > | ^~~~~~ >extra.c:31:17: note: include â<string.h>â or provide a declaration of âstrcpyâ >extra.c:31:17: warning: incompatible implicit declaration of built-in function âstrcpyâ [-Wbuiltin-declaration-mismatch] >extra.c:31:17: note: include â<string.h>â or provide a declaration of âstrcpyâ >extra.c:33:9: error: implicit declaration of function âstrcatâ [-Werror=implicit-function-declaration] > 33 | strcat(home, "/"); > | ^~~~~~ >extra.c:33:9: note: include â<string.h>â or provide a declaration of âstrcatâ >extra.c:33:9: warning: incompatible implicit declaration of built-in function âstrcatâ [-Wbuiltin-declaration-mismatch] >extra.c:33:9: note: include â<string.h>â or provide a declaration of âstrcatâ >cc1: some warnings being treated as errors >make[2]: *** [Makefile:182: extra.o] Error 1 >shash.c: In function âmainâ: >shash.c:142:29: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 142 | tmp = mhash_get_hash_name(algorithm); > | ^ >shash.c:198:21: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 198 | tmp = mhash_get_hash_name(algorithm); > | ^ >shash.c:199:22: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 199 | tmp2 = mhash_get_keygen_name(keymode); > | ^ >shash.c:57:42: warning: variable âuse_passwordâ set but not used [-Wunused-but-set-variable] > 57 | int file_count = 0, v, i, x = 0, use_password = 0, plen = 0; > | ^~~~~~~~~~~~ >shash.c:57:35: warning: variable âxâ set but not used [-Wunused-but-set-variable] > 57 | int file_count = 0, v, i, x = 0, use_password = 0, plen = 0; > | ^ >shash.c: In function âcheck_algoâ: >shash.c:275:19: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 275 | y = mhash_get_hash_name(i); > | ^ >shash.c: In function âsumfileâ: >shash.c:426:9: warning: âftimeâ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations] > 426 | ftime(&start_time); > | ^~~~~ >In file included from shash.c:312: >/usr/include/sys/timeb.h:29:12: note: declared here > 29 | extern int ftime (struct timeb *__timebuf) > | ^~~~~ >shash.c:450:9: warning: âftimeâ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations] > 450 | ftime(&end_time); > | ^~~~~ >/usr/include/sys/timeb.h:29:12: note: declared here > 29 | extern int ftime (struct timeb *__timebuf) > | ^~~~~ >shash.c: In function âhash_listâ: >shash.c:494:19: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 494 | y = mhash_get_hash_name(i); > | ^ >shash.c: In function âcheckfileâ: >shash.c:680:37: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 680 | tmp = mhash_get_hash_name(algorithm); > | ^ >shash.c:699:13: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 699 | tmp = mhash_get_hash_name(algorithm); > | ^ >shash.c:509:16: warning: variable âxâ set but not used [-Wunused-but-set-variable] > 509 | int j, x, block; > | ^ >shash.c: In function âlist_keygen_algorithmsâ: >shash.c:803:22: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 803 | name = mhash_get_keygen_name(i); > | ^ >shash.c: In function âkeygen_algorithm_is_okâ: >shash.c:815:22: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 815 | name = mhash_get_keygen_name(i); > | ^ >shash.c: In function âfind_keygen_algorithmâ: >shash.c:935:22: warning: pointer targets in assignment from âuint8_t *â {aka âunsigned char *â} to âchar *â differ in signedness [-Wpointer-sign] > 935 | name = mhash_get_keygen_name(i); > | ^ >shash.c: In function âcheckfileâ: >shash.c:559:17: warning: ignoring return value of âfgetsâ declared with attribute âwarn_unused_resultâ [-Wunused-result] > 559 | fgets(linebuf, line_storage, file); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >shash.c: In function âGetpassâ: >shash.c:755:9: warning: âuserkeyâ may be used uninitialized [-Wmaybe-uninitialized] > 755 | mlock(userkey, MAX_KEY); > | ^~~~~~~~~~~~~~~~~~~~~~~ >In file included from ./defines.h:16, > from shash.c:21: >/usr/include/sys/mman.h:103:12: note: by argument 1 of type âconst void *â to âmlockâ declared here > 103 | extern int mlock (const void *__addr, size_t __len) __THROW; > | ^~~~~ >In function âbin2hexâ, > inlined from âmainâ at shash.c:223:9: >shash.c:845:25: warning: array subscript âsize_t {aka long unsigned int}[0]â is partly outside array bounds of âword32[1]â {aka âunsigned int[1]â} [-Warray-bounds] > 845 | *newlen = oldlen * 2 * sizeof(char); > | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ >shash.c: In function âmainâ: >shash.c:62:16: note: object ânewlenâ of size 4 > 62 | word32 newlen; > | ^~~~~~ >shash.c:197:17: warning: â*fileâ may be used uninitialized [-Wmaybe-uninitialized] > 197 | if (file[0] != NULL && info.check == FALSE) { > | ~~~~^~~ >make[2]: Leaving directory '/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6/src' >make[1]: *** [Makefile:149: all-recursive] Error 1 >make[1]: Leaving directory '/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6' >make: *** [Makefile:105: all] Error 2 > * ERROR: app-crypt/shash-0.2.6-r3::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=app-crypt/shash-0.2.6-r3::gentoo'`, > * the complete build log and the output of `emerge -pqv '=app-crypt/shash-0.2.6-r3::gentoo'`. > * The complete build log is located at '/var/log/portage/app-crypt:shash-0.2.6-r3:20221004-090117.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-crypt/shash-0.2.6-r3/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/app-crypt/shash-0.2.6-r3/temp/environment'. > * Working directory: '/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6' > * S: '/var/tmp/portage/app-crypt/shash-0.2.6-r3/work/shash-0.2.6' >
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 874942
:
818842
| 818845 |
818848
|
818851
|
818854
|
818857
|
818860