[Bug 1932333] [NEW] Cannot link gvplugin_core without on-demand loading

WP 1932333 at bugs.launchpad.net
Thu Jun 17 14:54:34 UTC 2021


Public bug reported:

Attempting to compile code that calls `gvContextPlugins(args)` results
in undefined references in libgvplugin_core.so. This occurs only on
Ubuntu 20.04 as far as I can tell, and is causing some problems with
Regina (see https://github.com/regina-normal/regina/issues/70).

A sample main.c and Makefile can be viewed at
https://gist.github.com/WPettersson/014bb43f5063e06742ca06666c1b81d1

Compiling on Ubuntu 20.04 with latest graphviz installed results in

gcc main.c -o main -lcgraph -lgvc -lgvplugin_core -lgvplugin_dot_layout -lgvplugin_neato_layout -I/usr/include/graphviz -L/usr/lib/x86_64-linux-gnu/graphviz -DLIBGVC_DYNAMIC_PLUGINS
gcc main.c -o main -lcgraph -lgvc -lgvplugin_core -lgvplugin_dot_layout -lgvplugin_neato_layout -I/usr/include/graphviz -L/usr/lib/x86_64-linux-gnu/graphviz
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/graphviz/libgvplugin_core.so: undefined reference to `__exp_finite'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/graphviz/libgvplugin_core.so: undefined reference to `__log10_finite'
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

** Affects: graphviz (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to graphviz in Ubuntu.
https://bugs.launchpad.net/bugs/1932333

Title:
  Cannot link gvplugin_core without on-demand loading

Status in graphviz package in Ubuntu:
  New

Bug description:
  Attempting to compile code that calls `gvContextPlugins(args)` results
  in undefined references in libgvplugin_core.so. This occurs only on
  Ubuntu 20.04 as far as I can tell, and is causing some problems with
  Regina (see https://github.com/regina-normal/regina/issues/70).

  A sample main.c and Makefile can be viewed at
  https://gist.github.com/WPettersson/014bb43f5063e06742ca06666c1b81d1

  Compiling on Ubuntu 20.04 with latest graphviz installed results in

  gcc main.c -o main -lcgraph -lgvc -lgvplugin_core -lgvplugin_dot_layout -lgvplugin_neato_layout -I/usr/include/graphviz -L/usr/lib/x86_64-linux-gnu/graphviz -DLIBGVC_DYNAMIC_PLUGINS
  gcc main.c -o main -lcgraph -lgvc -lgvplugin_core -lgvplugin_dot_layout -lgvplugin_neato_layout -I/usr/include/graphviz -L/usr/lib/x86_64-linux-gnu/graphviz
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/graphviz/libgvplugin_core.so: undefined reference to `__exp_finite'
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/graphviz/libgvplugin_core.so: undefined reference to `__log10_finite'
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphviz/+bug/1932333/+subscriptions



More information about the foundations-bugs mailing list