Wireshark mailing list archives
Re: What mean "Error: Found prohibited APIs in ..." error during build?
From: Guy Harris <gharris () sonic net>
Date: Tue, 9 Feb 2021 00:04:14 -0800
On Feb 8, 2021, at 11:57 PM, Jirka Novak <j.novak () netsystem cz> wrote:
I commited patch and pipeline failed because: ... FAILED: ui/qt/CMakeFiles/checkAPI_ui-qt ... Error: Found prohibited APIs in utils/rtp_audio_silence_generator.cpp: open Error: Found prohibited APIs in utils/rtp_audio_routing_filter.cpp: open but message gives me no hint what to change.
Change calls to open() to call ws_open(), instead, so that, on Windows, they can handle UTF-8 pathnames (by turning them into UTF-16 pathnames and passing them to routines that take UTF-16 pathnames, rather than using various code page encodings for strings). Also use ws_close() instead of close(). (The ws_ calls, on Windows, also call the Visual Studio C library routines that implement UN*X-style APIs, with an underscore preceding the UN*X API name.) ___________________________________________________________________________ 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:
- What mean "Error: Found prohibited APIs in ..." error during build? Jirka Novak (Feb 08)
- Re: What mean "Error: Found prohibited APIs in ..." error during build? Guy Harris (Feb 09)
- Re: What mean "Error: Found prohibited APIs in ..." error during build? Jirka Novak (Feb 09)
- Re: What mean "Error: Found prohibited APIs in ..." error during build? Pascal Quantin (Feb 09)
- Re: What mean "Error: Found prohibited APIs in ..." error during build? Jirka Novak (Feb 09)
- Re: What mean "Error: Found prohibited APIs in ..." error during build? Jirka Novak (Feb 09)
- Re: What mean "Error: Found prohibited APIs in ..." error during build? Jirka Novak (Feb 09)
- Re: What mean "Error: Found prohibited APIs in ..." error during build? Guy Harris (Feb 09)