Warnings about missing library installing graphviz

Installing package extra/graphviz gives some warnings:

(3/3) installing graphviz                                                    [###########################################] 100%
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gdk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gtk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gdk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gtk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Optional dependencies for graphviz
    mono: sharp bindings
    guile: guile bindings [installed]
    lua: lua bindings [installed]
    ocaml: ocaml bindings
    perl: perl bindings [installed]
    python: python bindings [installed]
    r: r bindings
    tcl: tcl bindings [installed]
    qt5-base: gvedit [installed]
    gtk2: gtk output plugin
    xterm: vimdot

Also notice that gtk2 is not marked as installed. Executing ldd shows the missing library:

$ ldd /usr/lib/graphviz/libgvplugin_gdk.so.6
...
	libgdk-x11-2.0.so.0 => not found

Installing extra/gtk2 makes ldd find this missing library. I’m not sure if it is a bug or the warning is supposed to be shown if extra/gtk2 is not installed.

Yes, it works. I tested svg and png output with gtk2 uninstalled.

Understood. Thank you.