gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tcpxtract\" -DVERSION=\"1.0.1\" -DYYTEXT_POINTER=1 -DHAVE_LIBPCAP=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -g -O2 -Werror=implicit-
confy.c: In function ‘yyparse’:
confy.c:494:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]
494 | # define YYLEX yylex ()
| ^~~~~
confy.c:950:16: note: in expansion of macro ‘YYLEX’
950 | yychar = YYLEX;
| ^~~~~
confy.c:1188:9: error: implicit declaration of function ‘yyerror’; did you mean ‘yyerrok’? [-Werror=implicit-function-declaration]
1188 | yyerror ("syntax error");
| ^~~~~~~
| yyerrok
confy.y: At top level:
confy.y:58:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
58 | yyerror(char *s)
| ^~~~~~~
confl.l: In function ‘yylex’:
confl.l:28:47: error: implicit declaration of function ‘strdup’ [-Werror=implicit-function-declaration]
28 | [0-9]+ {yylval.string = strdup(yytext); return NUMBER;}
| ^~~~~~
confl.l:28:47: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch]
confl.l:29:18: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch]
29 | [a-zA-Z][a-zA-Z0-9]* {yylval.string = strdup(yytext); return WORD;}
| ^~~~~~~~~
confl.l:30:32: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch]
30 | [a-zA-Z0-9\\\?]+ {yylval.string = strdup(yytext); return SPECIFIER;}
| ^~~~~~~~~~~~~
In file included from /usr/include/inttypes.h:25,
from /usr/include/pcap/pcap-inttypes.h:98,
from /usr/include/pcap/pcap.h:117,
from /usr/include/pcap.h:43,
from tcpxtract.c:25:
/usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
tcpxtract.c: In function ‘main’:
tcpxtract.c:312:5: error: implicit declaration of function ‘yyparse’ [-Werror=implicit-function-declaration]
312 | yyparse();
| ^~~~~~~
tcpxtract.c:320:9: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
320 | dev = pcap_lookupdev(errbuf);
| ^~~
/usr/include/pcap/pcap.h:395:18: note: declared here
395 | PCAP_API char *pcap_lookupdev(char *);
| ^~~~~~~~~~~~~~
tcpxtract.c:355:25: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘struct bpf_program’ [-Wformat=]
355 | fprintf(stderr, "Couldn't parse filter %s: %s\n", filter, pcap_geterr(handle));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| struct bpf_program
tcpxtract.c:359:25: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘struct bpf_program’ [-Wformat=]
359 | fprintf(stderr, "Couldn't install filter %s: %s\n", filter, pcap_geterr(handle));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| struct bpf_program
cc1: some warnings being treated as errors
make[1]: *** [Makefile:462: confy.o] Error 1
tags -1 patchBug #1066484 [src:tcpxtract] tcpxtract: FTBFS: confy.c:494:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:33:36 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,335,881 |