-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Build fails on Arch linux #1646
Comments
Adding |
@steel-bucket Can you please mention the version of clang when using debian? I reproduced and got the same results, I think debian might be using an old version of clang and hence does not treat the warning as an error, described as here: https://www.redhat.com/en/blog/new-warnings-and-errors-clang-16 While my arch system was using latest clang version:
|
I just tried this on Ubuntu 24.10 and I needed to patch the file, too, even though this is a Debian derivative. |
This commit fixes a compile-time error regarding an implicit declaration of mapclut_paletee() on some compilers and compiler versions. Notably, Arch Linux and Ubuntu 24.10 seem to be affected. The error resolved is: ``` ../src/lib_ccx/ocr.c: In function 'ocr_rect': ../src/lib_ccx/ocr.c:922:9: error: implicit declaration of function 'mapclut_paletee' [-Wimplicit-function-declaration] 922 | mapclut_paletee(palette, alpha, (uint32_t *)rect->data1, rect->nb_colors); | ^~~~~~~~~~~~~~~ ``` This was resolved by `#include`-ing "ccx_encoders_spupng.h" in the file src/lib_ccx/ocr.c. Thanks to GitHub user @steel-bucket for sharing the fix in this issue's comments. Fixes: CCExtractor#1646
Mention the fix for CCExtractor#1646. Fixes: CCExtractor#1646
Thanks! |
On arch linux:
The text was updated successfully, but these errors were encountered: