Source: tcpxtract Version: 1.0.1-18.1 Severity: normal Tags: patch User: [email protected] Usertags: loong64
Hi all,
Compilation errors occur after upgrading to GCC 15:
extract.c:50:6: error: conflicting types for ‘extract’; have
‘void(extract_list_t **, srch_results_t *, slist_t *, const uint8_t *, size_t)’
{aka ‘void(struct extract_list **, struct srch_results *, struct slist_node *,
const unsigned char *, long unsigned int)’}
50 | void extract(extract_list_t **elist, srch_results_t *results, slist_t
*session, const uint8_t *data, size_t size)
| ^~~~~~~
In file included from extract.c:33:
extract.h:47:13: note: previous declaration of ‘extract’ with type ‘void(void)’
47 | extern void extract();
| ^~~~~~~
tcpxtract.c: In function ‘got_packet’:
tcpxtract.c:220:5: error: too many arguments to function ‘extract’; expected 0,
have 5
220 | extract(&session->extract_list, results, session, payload,
payload_size);
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
The full build log:
https://buildd.debian.org/status/fetch.php?pkg=tcpxtract&arch=loong64&ver=1.0.1-18.1&stamp=1767180005&raw=0
We can build succeeds with gnu17.
force-c17-standard.patch
Description: Binary data

