libcommon is a static lib, but is already part of the dynamic libgvc.
The error message was:
==73343==ERROR: AddressSanitizer: odr-violation (0x555555789760):
[1] size=8 'fdp_parms' /home/magjac/graphviz/lib/common/globals.c:30:20
[2] size=8 'fdp_parms' /home/magjac/graphviz/lib/common/globals.c:30:20
These globals were registered at these points:
[1]:
#0 0x7ffff760d938 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341
#1 0x555555693361 in _sub_I_00099_1 (/home/magjac/build-graphviz-Desktop-Debug/cmd/tools/mm2gv+0x13f361)
#2 0x55555569376c in __libc_csu_init (/home/magjac/build-graphviz-Desktop-Debug/cmd/tools/mm2gv+0x13f76c)
[2]:
#0 0x7ffff760d938 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341
#1 0x7ffff6f7de38 in _sub_I_00099_1 (/home/magjac/build-graphviz-Desktop-Debug/lib/gvc/libgvc.so.6+0x420e38)
#2 0x7ffff7fda96d (/lib64/ld-linux-x86-64.so.2+0x1196d)
==73343==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'fdp_parms' at /home/magjac/graphviz/lib/common/globals.c:30:20
==73343==ABORTING
- marginally more accurate computations in Smyrna sphere projection
- Perl is no longer required to build Graphviz #2067
+### Fixed
+
+- no longer pass libcommon to the linker twice in mm2gv when building with CMake
+
## [2.47.2] - 2021-05-26
### Added
target_link_libraries(mm2gv
sparse
cgraph
- common
gvc
pathplan
)