libmesh icon indicating copy to clipboard operation
libmesh copied to clipboard

Fixes a VTK linking issue I experienced with VTK 9.2

Open makeclean opened this issue 2 years ago • 4 comments

I recently installed with VTK 9.2 on my system, and configure failed due a missing symbols from an unrequested library. I think probably happens when the VTK library being used is not the system VTK as otherwise it would likely get picked up automatically. This fixes that issue and I makes the link more pedantic.

makeclean avatar Jul 22 '22 22:07 makeclean

Hello @makeclean,

Thanks for pointing out this issue. It looks like you edited the configure script directly, but since this script is generated automatically from the contents of m4 files (in this case m4/vtk.m4), we would need to make your update there, otherwise it would be lost the next time someone runs bootstrap.

If you would like to try this, we have some instructions on how to do it. They are somewhat involved, though so it might be easier if one of the other devs makes the change when they get a chance.

jwpeterson avatar Jul 25 '22 15:07 jwpeterson

configure failed due a missing symbols from an unrequested library

Could you post the exact configure error? I'm curious as to whether it's just something about your install or whether it's going to hit everyone once all us out-of-date 9.0/9.1 users move up to 9.2.

It looks like libvtksys has been around since at least VTK 5, so hopefully adding it as a linker requirement here won't break any of our really-out-of-date VTK users.

roystgnr avatar Jul 26 '22 21:07 roystgnr

Sorry for taking so long to come back to this, I'm building on our HPC system and I'm hitting the same issues with 9.2, the error message from config.log is;

/usr/bin/ld: /tmp/cc6CtNnI.o: undefined reference to symbol '_ZN6vtksys18SystemToolsManagerD1Ev'
/home/dc-davi4/rds/rds-ukaea-ap001/moose_dev/vtk/lib64/libvtksys-9.2.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

I'll have a bash at doing the m4 files :)

makeclean avatar Sep 22 '22 21:09 makeclean

Can also confirm it does not occur with VTK 9.1

makeclean avatar Sep 22 '22 22:09 makeclean

Replaced by #3426

roystgnr avatar Nov 03 '22 17:11 roystgnr