Bug 871306[2] says graphicsmagick needs to Build-Depend on g++ (>= 4:7) to get the new & old ABIs, but I don't see a versioned Build-Depends on g++ since the bug was closed in version 1.3.26-5.
> For new > executables to build without undefined references, your library will > need rebuilding with GCC 7. So the solution might just be to add the versioned Build-Depends: g++ (>= 4:7) and rebuild to get the old symbols back into the library, rather than bumping the soname. [1] https://wiki.debian.org/GCC7#GCC_7_name_mangling_bug_fix [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871306