* Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>: > As of libnetpbm11 in Debian/Ubuntu, the netpbm header files are no > longer located in the root include directory, but in a netbpm > subdirectory. Fortunately the same version added support for > pkg-config. > > Support both old and new systems by using pkg-config, when available. > > Reported-by: Helge Deller <deller@xxxxxx> > Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> > --- > Helge: Does this fix the issue for you. I don't have a system with > libnetpbm11 handy yet. Yes, thanks a lot! That fixes the build on parisc on Debian 12.0 for me. You may add: Tested-by: Helge Deller <deller@xxxxxx> I tried on my Fedora 36/x86_64 as well, and there netpbm-devel sadly comes without pkg-config. Nevertheless, based on top of your patch by hacking in the include path fixed the issue there as well. Maybe you can consider applying below patch on top of yours as too? Helge --------- [PATCH] Add netpbm to include search patch Netpbm on Fedora 36 comes without pkg-config, so manually add the include path. Signed-off-by: Helge Deller <deller@xxxxxx> --- diff --git a/pnmtohex/Makefile b/pnmtohex/Makefile index 642a26f..d8925a9 100644 --- a/pnmtohex/Makefile +++ b/pnmtohex/Makefile @@ -4,6 +4,7 @@ TOPDIR = .. HOST_TARGET = pnmtohex CFLAGS += $(shell pkg-config --exists netpbm && pkg-config --cflags netpbm) +CFLAGS += -I/usr/include/netpbm # Modern distro's (e.g. Debian, Fedora Core) seem to have -lnetpbm only #LIBS += -lnetpnm -lnetpbm -lnetpgm -lnetppm