Control: retitle -1 Missing dependency libopenjph-dev for OpenEXR.pc Control: reassign -1 libopenexr-dev 3.4.6+ds-2 Control: affects -1 + src:exactimage
On Tuesday, 17 March 2026 10:14:30 CET Bastian Germann wrote:
> Control: retitle -1 FTBFS: ImfIO.h: No such file or directory
>
> Sorry. First I built in an unclean environment and got the mentioned
> error. Then I verified the FTBFS with sbuild but did not check the
> actual error which is:
>
>
> g++ -g -O2 -Werror=implicit-function-declaration
> -ffile-prefix-map=/build/reproducible-path/exactimage-1.2.1=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -fcf-protection -fopenmp -ffunction-sections
> -fdata-sections -fpermissive -fPIC -Wno-switch -Wno-switch-enum
> -Wno-sign-compare -Wdate-time -D_FORTIFY_SOURCE=2 -I . -I/usr/include/agg2
> -I/usr/include/freetype2 -I/usr/include/libpng16 -I image -I utility -I
> codecs/ -I bardecode -I utility -I utility -c -MMD -MP -MF
> 'objdir/codecs/png.d' -o 'objdir/codecs/png.o' 'codecs/png.cc'
> codecs/openexr.cc:22:10: fatal error: ImfIO.h: No such file or directory
> 22 | #include <ImfIO.h>
> | ^~~~~~~~~
> compilation terminated.
> cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’
> is not valid for C++
> make[4]: *** [build/bottom.make:50: objdir/codecs/openexr.o] Error 1
>
Looks to me like a bug in the OpenEXR package:
$ apt install libopenexr-dev
$ pkg-config --cflags OpenEXR
Package openjph was not found in the pkg-config search path.
Perhaps you should add the directory containing `openjph.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openjph', required by 'OpenEXR', not found
Installing libopenjph-dev fixes the problem:
$ pkg-config --cflags OpenEXR
-I/usr/include/OpenEXR -pthread -I/usr/include/Imath -D_FILE_OFFSET_BITS=64
As a result, /usr/include/OpenEXR is not added to the include paths for the
exactimage build. And this will then break the build when it tries to include
ImfIO.h (/usr/include/OpenEXRImfIO.h)
Regards,
Sven
signature.asc
Description: This is a digitally signed message part.

