Cannot link gvplugin_core without on-demand loading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
graphviz (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Attempting to compile code that calls `gvContextPlugi
A sample main.c and Makefile can be viewed at https:/
Compiling on Ubuntu 20.04 with latest graphviz installed results in
gcc main.c -o main -lcgraph -lgvc -lgvplugin_core -lgvplugin_
gcc main.c -o main -lcgraph -lgvc -lgvplugin_core -lgvplugin_
/usr/bin/ld: /usr/lib/
/usr/bin/ld: /usr/lib/
collect2: error: ld returned 1 exit status
make: *** [Makefile:4: static] Error 1
After adjusting the compile flags, this code compiles (and runs) fine on Debian buster, as well as on Gentoo and ArchLinux.
Ubuntu version:
Ubuntu 20.04.2 LTS
Installed relevant packages:
libgraphviz-dev: 2.24.2-3build2
libgvc6 2.42.2-3build3
libgvc6-plugins-gtk 2.42.2-3build2
What I expected to happen:
Clean compilation
What happened instead:
undefined references
Status changed to 'Confirmed' because the bug affects multiple users.