Please add dependency on jpeg library [1] (in my case satisfied by libjpeg-turbo). [1] https://github.com/qpdf/qpdf/commit/a0a8f45a1c8ca7952e4596785ad399ec47b7a0af
Pushed as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=039059bcfc6bec7a6fb3dc970a9cca9474f1b309 Thank you!