Wireshark mailing list archives
Re: Errors building 3.7 plugins.
From: João Valverde <j () v6e pt>
Date: Mon, 13 Dec 2021 15:57:12 +0000
Hi,The problem is that ssize_t is not defined in your platform. More specifically because we define it in config.h that definition is not available to external plugins.
It's a Wireshark bug but the easiest fix is for you to define ssize_t before including wsutil/regex.h.
Thanks for bringing this to our attention. On 13/12/21 15:44, Peter McCarthy wrote:
Good day allI am in the process of moving a set of custom plugins from 3.4 to 3.7. I got the issues related to the proto_tree_add_uint_bits_format_value API change figured out. There is one other error that I can’t quite understand in one of my plugins.I have included the error message from one of the files below. Since the error message indicates that the problem was encountered building my code, I suspect the problem is there. But I’m not sure where as I’m not invoking the regex.h code directly.Any pointers? Thank you Peter M.C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2146: syntax error: missing ')' before identifier 'subj_size' [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2146: ws_regex_matches(const ws_regex_t *re, const char *subj, ssize_t subj_size); [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2146: ^ (compiling source file C:\ws-3-7\wireshark\plugins\epan\6017\k02_14.c) [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2081: 'ssize_t': name in formal parameter list illegal [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2081: ws_regex_matches(const ws_regex_t *re, const char *subj, ssize_t subj_size); [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2081: ^ (compiling source file C:\ws-3-7\wireshark\plugins\epan\6017\k02_14.c) [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2061: syntax error: identifier 'subj_size' [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2061: ws_regex_matches(const ws_regex_t *re, const char *subj, ssize_t subj_size); [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2061: ^ (compiling source file C:\ws-3-7\wireshark\plugins\epan\6017\k02_14.c) [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2059: syntax error: ';' [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2059: ws_regex_matches(const ws_regex_t *re, const char *subj, ssize_t subj_size); [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,66): error C2059: ^ (compiling source file C:\ws-3-7\wireshark\plugins\epan\6017\k02_14.c) [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,75): error C2059: syntax error: ')' [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,75): error C2059: ws_regex_matches(const ws_regex_t *re, const char *subj, ssize_t subj_size); [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]C:\ws-3-7\wireshark\wsutil/regex.h(26,75): error C2059: ^ (compiling source file C:\ws-3-7\wireshark\plugins\epan\6017\k02_14.c) [C:\ws-3-7\wsbuild64\plugins\epan\6017\vmf.vcxproj]___________________________________________________________________________ Sent via: Wireshark-dev mailing list<wireshark-dev () wireshark org> Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe:https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Errors building 3.7 plugins. Peter McCarthy (Dec 13)
- Re: Errors building 3.7 plugins. João Valverde (Dec 13)
- Re: Errors building 3.7 plugins. Peter McCarthy (Dec 14)
- Re: Errors building 3.7 plugins. João Valverde (Dec 14)
- Re: Errors building 3.7 plugins. Gisle Vanem (Dec 14)
- Re: Errors building 3.7 plugins. João Valverde (Dec 14)
- Re: Errors building 3.7 plugins. Guy Harris (Dec 14)
- Re: Errors building 3.7 plugins. Peter McCarthy (Dec 14)
- Re: Errors building 3.7 plugins. João Valverde (Dec 13)