Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,962
    • Issues 1,962
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 98
    • Merge requests 98
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaViewParaView
  • ParaViewParaView
  • Issues
  • #20495
Closed
Open
Issue created Feb 19, 2021 by badshah400@badshah400

Building vtkioss fails due to undefined references to pthread library

  • Paraview version: 5.9.0
  • System: Linux x86_64 (openSUSE Tumbleweed)

When building paraview, we see errors when compiling vtkioss due to the pthread library not being linked explicitly. This may be due to openSUSE linker flags using -Wl,--no-undefined by default. We need the following patch to get vtkioss linking properly to pthread:

Index: ParaView-v5.9.0/VTK/ThirdParty/ioss/vtkioss/CMakeLists.txt
===================================================================
--- ParaView-v5.9.0.orig/VTK/ThirdParty/ioss/vtkioss/CMakeLists.txt
+++ ParaView-v5.9.0/VTK/ThirdParty/ioss/vtkioss/CMakeLists.txt
@@ -231,6 +231,8 @@ list(APPEND headers
 
   vtk_ioss_mangle.h)
 
+vtk_module_find_package(PACKAGE Threads)
+
 vtk_module_add_module(VTK::ioss
   SOURCES ${sources}
   PRIVATE_HEADERS ${headers})
@@ -238,3 +240,7 @@ vtk_module_definitions(VTK::ioss
   PRIVATE
     NO_ZOLTAN_SUPPORT
     NO_PARMETIS_SUPPORT)
+vtk_module_link(VTK::ioss
+  PRIVATE
+    Threads::Threads)
+
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking