tcpxtract: FTBFS: confy.c:494:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tcpxtract (Debian) |
Fix Released
|
Unknown
|
|||
tcpxtract (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Imported from Debian bug http://
Source: tcpxtract
Version: 1.0.1-17
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: <email address hidden>
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=
https:/
Relevant part (hopefully):
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_
> confy.c: In function ‘yyparse’:
> confy.c:494:16: error: implicit declaration of function ‘yylex’ [-Werror=
> 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=
> 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=
> 28 | [0-9]+ {yylval.string = strdup(yytext); return NUMBER;}
> | ^~~~~~
> confl.l:28:47: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-
> confl.l:29:18: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-
> 29 | [a-zA-Z]
> | ^~~~~~~~~
> confl.l:30:32: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-
> 30 | [a-zA-Z0-9\\\?]+ {yylval.string = strdup(yytext); return SPECIFIER;}
> | ^~~~~~~~~~~~~
> In file included from /usr/include/
> from /usr/include/
> from /usr/include/
> from /usr/include/
> from tcpxtract.c:25:
> /usr/include/
> 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=
> 312 | yyparse();
> | ^~~~~~~
> tcpxtract.c:320:9: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-
> 320 | dev = pcap_lookupdev(
> | ^~~
> /usr/include/
> 395 | PCAP_API char *pcap_lookupdev
> | ^~~~~~~~~~~~~~
> 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(
> | ^~~~~~~
> | |
> | 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(
> | ^~~~~~~
> | |
> | struct bpf_program
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:462: confy.o] Error 1
The full build log is available from:
http://
All bugs filed during this archive rebuild are listed at:
https:/
or:
https:/
A list of current common problems and possible solutions is available at
http://
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https:/
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Changed in tcpxtract (Debian): | |
importance: | Undecided → Unknown |
Changed in tcpxtract (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package tcpxtract - 1.0.1-17ubuntu3
---------------
tcpxtract (1.0.1-17ubuntu3) noble; urgency=medium
* Update configuration parser to resolve autopkgtest crash (LP: #2063015): terminate_ lexem.patch: enable verbose parser errors,
- d/p/90_
terminate comment line lexem, match '(' ' ',' and ')' explicitly.
* d/rules: run smoke test at the build time.
-- Vladimir Petko <email address hidden> Tue, 23 Apr 2024 15:14:54 +1200