Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 810991 Details for
Bug 871282
net-analyzer/ipaudit-1.0_beta2-r1 - ipdbase.c: error: call to undeclared library function memcmp with type
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-analyzer:ipaudit-1.0_beta2-r1:20220918-103114.log
net-analyzer:ipaudit-1.0_beta2-r1:20220918-103114.log (text/plain), 19.88 KB, created by
Toralf Förster
on 2022-09-18 10:51:20 UTC
(
hide
)
Description:
net-analyzer:ipaudit-1.0_beta2-r1:20220918-103114.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2022-09-18 10:51:20 UTC
Size:
19.88 KB
patch
obsolete
> * Package: net-analyzer/ipaudit-1.0_beta2-r1:0 > * Repository: gentoo > * Maintainer: robbat2@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking ipaudit-1.0BETA2.tar.gz to /var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work >>>> Source unpacked in /var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work >>>> Preparing source in /var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2 ... >./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 --without-mysql >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 gawk... gawk >checking whether make sets $(MAKE)... yes > >Configuring for ipaudit ... >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 ANSI C... none needed >checking for style of include used by make... GNU >checking dependency style of clang... none >checking for a BSD-compatible install... /usr/lib/portage/python3.10/ebuild-helpers/xattr/install -c >checking for sqrt in -lm... yes >checking for gethostent in -lnsl... yes >checking for pcap_datalink in -lpcap... yes >checking how to run the C preprocessor... clang -E >checking for egrep... grep -E >checking for ANSI C header files... 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 pcap.h usability... yes >checking pcap.h presence... yes >checking for pcap.h... yes >configure: creating ./config.status >config.status: creating Makefile >config.status: creating src/Makefile >config.status: creating doc/Makefile >config.status: creating src/config.h >config.status: executing depfiles commands >>>> Source configured. >'/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/temp/clang14.log' -> '/var/tmp/clang/net-analyzer/ipaudit-1.0_beta2-r1/clang14.log' >'/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/temp/clang15.log' -> '/var/tmp/clang/net-analyzer/ipaudit-1.0_beta2-r1/clang15.log' >>>> Compiling source in /var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2 ... >make -j4 >Making all in src >make[1]: Entering directory '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2/src' >make all-am >make[2]: Entering directory '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2/src' >clang -DHAVE_CONFIG_H -I. -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c total.c >clang -DHAVE_CONFIG_H -I. -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c hash.c >clang -DHAVE_CONFIG_H -I. -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c ipaudit.c >clang -DHAVE_CONFIG_H -I. -I. -I. -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -c ipdbase.c >ipdbase.c:106:11: error: call to undeclared library function 'memcmp' with type > 'int (const void *, const void *, unsigned long)'; ISO C99 and later do > not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > return memcmp (ah->key, bh->key, 13); > ^ >ipdbase.c:106:11: note: include the header <string.h> or explicitly provide a > declaration for 'memcmp' >ipdbase.c:144:31: error: call to undeclared library function 'strcmp' with type > 'int (const char *, const char *)'; ISO C99 and later do not support > implicit function declarations [-Werror,-Wimplicit-function-declaration] > if (outname && *outname && strcmp("-",outname) && strcmp("+",outname)) { > ^ >ipdbase.c:144:31: note: include the header <string.h> or explicitly provide a > declaration for 'strcmp' >ipdbase.c:153:7: error: call to undeclared library function 'exit' with type > 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support > implicit function declarations [-Werror,-Wimplicit-function-declaration] > exit(1); > ^ >ipdbase.c:153:7: note: include the header <stdlib.h> or explicitly provide a > declaration for 'exit' >ipdbase.c:165:11: error: call to undeclared function 'in_iprange'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > !in_iprange (ntohl(*(int*)(t->key)), iplist_g, niplist_g) && > ^ >ipdbase.c:165:23: error: call to undeclared function 'ntohl'; ISO C99 and later > do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > !in_iprange (ntohl(*(int*)(t->key)), iplist_g, niplist_g) && > ^ >ipdbase.c:248:24: error: call to undeclared library function 'calloc' with type > 'void *(unsigned long, unsigned long)'; ISO C99 and later do not support > implicit function declarations [-Werror,-Wimplicit-function-declaration] > conn = (helem_t **) calloc (nconn, sizeof(helem_t *)); > ^ >ipdbase.c:248:24: note: include the header <stdlib.h> or explicitly provide a > declaration for 'calloc' >ipdbase.c:256:4: warning: '/*' within block comment [-Wcomment] > /* Use history to make pointer list in order of insertion */ > ^ >ipdbase.c:272:7: error: call to undeclared function 'qsort'; ISO C99 and later > do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > qsort ( (void *) conn, nconn, sizeof(conn[0]), cmpip ); > ^ >ipdbase.c:279:4: error: call to undeclared library function 'strncpy' with type > 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not > support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > strncpy(hostname, probelabel_g,IP_NAME_LEN); > ^ >ipdbase.c:279:4: note: include the header <string.h> or explicitly provide a > declaration for 'strncpy' >ipdbase.c:281:22: error: call to undeclared function 'gethostname'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > sys_info_err = gethostname(hostname, 80); > ^ >ipdbase.c:315:11: error: call to undeclared function 'in_iprange'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > !in_iprange (ntohl(*(int*)(t->key)), iplist_g, niplist_g) && > ^ >ipdbase.c:315:23: error: call to undeclared function 'ntohl'; ISO C99 and later > do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > !in_iprange (ntohl(*(int*)(t->key)), iplist_g, niplist_g) && > ^ >hash.c:203:26: error: call to undeclared library function 'memcmp' with type > 'int (const void *, const void *, unsigned long)'; ISO C99 and later do > not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > if (e->nkey==nkey && ! memcmp(e->key, key, nkey)) { > ^ >hash.c:203:26: note: include the header <string.h> or explicitly provide a > declaration for 'memcmp' >ipdbase.c:402:20: error: call to undeclared library function 'free' with type > 'void (void *)'; ISO C99 and later do not support implicit function > declarations [-Werror,-Wimplicit-function-declaration] > if (NULL!=conn) free (conn); > ^ >ipdbase.c:402:20: note: include the header <stdlib.h> or explicitly provide a > declaration for 'free' >ipdbase.c:451:4: warning: '/*' within block comment [-Wcomment] > /* Use history to make pointer list in order of insertion */ > ^ >hash.c:319:6: error: callipdbase.c :to467 :undeclared7 :library error: functioncall 'memcpy'to withundeclared typefunction > 'qsort';'void ISO*(void C99*, andconst latervoid > *,do unsignednot long)';support ISOimplicit C99function anddeclarations >later [-Werror,-Wimplicit-function-declaration]do > not > support implicit function declarations qsort ( (void *) conn, nconn, sizeof(conn[0]), cmpip ); > > ^[-Werror,-Wimplicit-function-declaration] > > memcpy(curr->data, data, ndata); > ^ >hash.c:319:6: note: include the header <string.h> or explicitly provide a > declaration for 'memcpy' >ipdbase.c:476:22: error: call to undeclared function 'gethostname'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > sys_info_err = gethostname(hostname, 80); > ^ >ipdbase.c:510:11: error: call to undeclared function 'in_iprange'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > !in_iprange (ntohl(*(int*)(t->key)), iplist_g, niplist_g) && > ^ >ipdbase.c:510:23: error: call to undeclared function 'ntohl'; ISO C99 and later > do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > !in_iprange (ntohl(*(int*)(t->key)), iplist_g, niplist_g) && > ^ >2 warnings and 16 errors generated. >2 errors generated. >total.c:224:1: error: type specifier missing, defaults to 'int'; ISO C99 and > later do not support implicit int [-Werror,-Wimplicit-int] >main (int argc, char *argv[]) { >^ >int >make[2]: *** [Makefile:278: ipdbase.o] Error 1 >make[2]: *** Waiting for unfinished jobs.... >make[2]: *** [Makefile:278: hash.o] Error 1 >total.c:490:4: error: call to undeclared function 'ht_storekey'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > ht_storekey (ht, (U_CHAR *) &keybuff, strlen(key... > ^ >total.c:539:12: warning: using the result of an assignment as a condition > without parentheses [-Wparentheses] > while (t = ht_getnext(ht)) { > ~~^~~~~~~~~~~~~~~~ >total.c:539:12: note: place parentheses around the assignment to silence this > warning > while (t = ht_getnext(ht)) { > ^ > ( ) >total.c:539:12: note: use '==' to turn this assignment into an equality > comparison > while (t = ht_getnext(ht)) { > ^ > == >total.c:805:1: warning: non-void function does not return a value in all control > paths [-Wreturn-type] >} >^ >2 warnings and 2 errors generated. >make[2]: *** [Makefile:278: total.o] Error 1 >ipaudit.c:714:24: warning: address of array 'ip_m' will always evaluate to > 'true' [-Wpointer-bool-conversion] > if ((!dump_this) && ip_m) { > ~~ ^~~~ >ipaudit.c:761:3: error: call to undeclared function 'mysql_writepkt'; ISO C99 > and later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > mysql_writepkt(hconn, mysql_config_m); > ^ >ipaudit.c:761:3: note: did you mean 'sql_writepkt'? >./ipdbase.h:45:6: note: 'sql_writepkt' declared here >void sql_writepkt (htable_t *ht, char *outname); > ^ >ipaudit.c:583:10: warning: array index 2 is past the end of the array (which > contains 2 elements) [-Warray-bounds] > (eth_pkt->ptype[2] & 0... > ^ ~ >./ipaudit.h:158:4: note: array 'ptype' declared here > U_CHAR ptype[2]; /* ==0x800 if ip */ > ^ >./ipaudit.h:45:16: note: expanded from macro 'U_CHAR' >#define U_CHAR unsigned char > ^ >ipaudit.c:584:10: warning: array index 3 is past the end of the array (which > contains 2 elements) [-Warray-bounds] > (eth_pkt->ptype[3]); > ^ ~ >./ipaudit.h:158:4: note: array 'ptype' declared here > U_CHAR ptype[2]; /* ==0x800 if ip */ > ^ >./ipaudit.h:45:16: note: expanded from macro 'U_CHAR' >#define U_CHAR unsigned char > ^ >ipaudit.c:588:15: warning: array index 4 is past the end of the array (which > contains 2 elements) [-Warray-bounds] > is_ip = eth_pkt->ptype[4]==0x0... > ^ ~ >./ipaudit.h:158:4: note: array 'ptype' declared here > U_CHAR ptype[2]; /* ==0x800 if ip */ > ^ >./ipaudit.h:45:16: note: expanded from macro 'U_CHAR' >#define U_CHAR unsigned char > ^ >ipaudit.c:588:42: warning: array index 5 is past the end of the array (which > contains 2 elements) [-Warray-bounds] > ...is_ip = eth_pkt->ptype[4]==0x08 && eth_pkt->ptype[5]==0; > ^ ~ >./ipaudit.h:158:4: note: array 'ptype' declared here > U_CHAR ptype[2]; /* ==0x800 if ip */ > ^ >./ipaudit.h:45:16: note: expanded from macro 'U_CHAR' >#define U_CHAR unsigned char > ^ >ipaudit.c:949:5: error: call to undeclared function 'ht_findkey'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > ! ht_findkey(ht,(U_CHAR *)&key, keysize, (U_CHAR **)&dat... > ^ >ipaudit.c:949:5: note: did you mean 'ht_findelem'? >./hash.h:91:11: note: 'ht_findelem' declared here >helem_t *ht_findelem (htable_t *h, U_CHAR *k, int nk); > ^ >ipaudit.c:981:3: error: call to undeclared function 'ht_storekey'; ISO C99 and > later do not support implicit function declarations > [-Werror,-Wimplicit-function-declaration] > ht_storekey (ht, (U_CHAR *) &key, keysize, (U_CHAR *) &i... > ^ >ipaudit.c:1394:11: warning: using the result of an assignment as a condition > without parentheses [-Wparentheses] > while (s2=strpbrk(s1,SPLIT_CHAR)) { > ~~^~~~~~~~~~~~~~~~~~~~~~~ >ipaudit.c:1394:11: note: place parentheses around the assignment to silence this > warning > while (s2=strpbrk(s1,SPLIT_CHAR)) { > ^ > ( ) >ipaudit.c:1394:11: note: use '==' to turn this assignment into an equality > comparison > while (s2=strpbrk(s1,SPLIT_CHAR)) { > ^ > == >ipaudit.c:1403:11: warning: using the result of an assignment as a condition > without parentheses [-Wparentheses] > while (s2=strpbrk(s1,SPLIT_CHAR)) { > ~~^~~~~~~~~~~~~~~~~~~~~~~ >ipaudit.c:1403:11: note: place parentheses around the assignment to silence this > warning > while (s2=strpbrk(s1,SPLIT_CHAR)) { > ^ > ( ) >ipaudit.c:1403:11: note: use '==' to turn this assignment into an equality > comparison > while (s2=strpbrk(s1,SPLIT_CHAR)) { > ^ > == >ipaudit.c:1538:35: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > sscanf (optarg, "%u.%u.%u.%u", &ip_m[0],&ip_m[1]... > ~~ ^~~~~~~~ > %s >ipaudit.c:1538:44: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > ...sscanf (optarg, "%u.%u.%u.%u", &ip_m[0],&ip_m[1],&ip_m[2],&ip_m[3]); > ~~ ^~~~~~~~ > %s >ipaudit.c:1538:53: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > ...sscanf (optarg, "%u.%u.%u.%u", &ip_m[0],&ip_m[1],&ip_m[2],&ip_m[3]); > ~~ ^~~~~~~~ > %s >ipaudit.c:1538:62: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > ...sscanf (optarg, "%u.%u.%u.%u", &ip_m[0],&ip_m[1],&ip_m[2],&ip_m[3]); > ~~ ^~~~~~~~ > %s >ipaudit.c:1697:12: warning: using the result of an assignment as a condition > without parentheses [-Wparentheses] > while (str=fgets(buffer, 512, fin)) { > ~~~^~~~~~~~~~~~~~~~~~~~~~~~ >ipaudit.c:1697:12: note: place parentheses around the assignment to silence this > warning > while (str=fgets(buffer, 512, fin)) { > ^ > ( ) >ipaudit.c:1697:12: note: use '==' to turn this assignment into an equality > comparison > while (str=fgets(buffer, 512, fin)) { > ^ > == >ipaudit.c:1808:31: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > sscanf (val, "%u.%u.%u.%u", &ip_m[0],&ip_m[1],&ip_m[2],&... > ~~ ^~~~~~~~ > %s >ipaudit.c:1808:40: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > sscanf (val, "%u.%u.%u.%u", &ip_m[0],&ip_m[1],&ip_m[2],&... > ~~ ^~~~~~~~ > %s >ipaudit.c:1808:49: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > ...sscanf (val, "%u.%u.%u.%u", &ip_m[0],&ip_m[1],&ip_m[2],&ip_m[3]); > ~~ ^~~~~~~~ > %s >ipaudit.c:1808:58: warning: format specifies type 'unsigned int *' but the > argument has type 'unsigned char *' [-Wformat] > ...sscanf (val, "%u.%u.%u.%u", &ip_m[0],&ip_m[1],&ip_m[2],&ip_m[3]); > ~~ ^~~~~~~~ > %s >16 warnings and 3 errors generated. >make[2]: *** [Makefile:278: ipaudit.o] Error 1 >make[2]: Leaving directory '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2/src' >make[1]: *** [Makefile:154: all] Error 2 >make[1]: Leaving directory '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2/src' >make: *** [Makefile:187: all-recursive] Error 1 > * ERROR: net-analyzer/ipaudit-1.0_beta2-r1::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=net-analyzer/ipaudit-1.0_beta2-r1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=net-analyzer/ipaudit-1.0_beta2-r1::gentoo'`. > * The complete build log is located at '/var/log/portage/net-analyzer:ipaudit-1.0_beta2-r1:20220918-103114.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/temp/environment'. > * Working directory: '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2' > * S: '/var/tmp/portage/net-analyzer/ipaudit-1.0_beta2-r1/work/ipaudit-1.0BETA2' >
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 871282
:
810973
|
810976
|
810979
|
810982
|
810985
|
810988
| 810991 |
810994