New issue by ahesford on void-packages repository https://github.com/void-linux/void-packages/issues/33534 Description: The `gmic` package fails to build from source. Attempting to update to a newer version in the `2.8.x` series produces similar errors, while attempting to update to the latest `2.9.9` causes other failures. The initial failure is documented in the log [gmic.build01.log](https://github.com/void-linux/void-packages/files/7342918/gmic.build01.log) After the first failure, the file `gmic-2.8.0/src/use_libgmic.cpp` can be patched to uncomment the following two lines near the top of the file: ```c++ #include "CImg.h" using namespace cimg_library; ``` The `use_libgmic` target will compile succesfully, but build failures appear when building the gimp plugin. The later failure is documented in the log [gmic.build02.log](https://github.com/void-linux/void-packages/files/7342919/gmic.build02.log). The errors appear when compiling with `python3-3.10.0_1` and `opencv-3.4.15_1` currently in the repo. However, I also reverted to commit e7ca6798247, and the build also fails with `python3-3.9.7_1` and `opencv-3.4.10_2`. Note that, to test this, I had to grab an old version of the `opencv` packages from the repo, because `opencv-3.4.10` also fails to build from source. (The error in `opencv` seems to be related to JPEG-2000.)