Bug 247811 - cad/netgen: python modules don't work due to incomplete linking [+fix]
Summary: cad/netgen: python modules don't work due to incomplete linking [+fix]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Stephen Montgomery-Smith
Depends on:
Reported: 2020-07-06 19:05 UTC by rsmith
Modified: 2020-07-07 14:23 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (stephen)


Note You need to log in before you can comment on or make changes to this bug.
Description rsmith 2020-07-06 19:05:54 UTC

When trying to use the Python modules for netgen 6.2.2006, importing the module fails because of a missing symbol for "backtrace":

In [1]: import netgen                                                                                    
ImportError                               Traceback (most recent call last)
<ipython-input-1-672803b69ab0> in <module>
----> 1 import netgen

/usr/local/lib/python3.7/site-packages/netgen/__init__.py in <module>
     11 del os
---> 13 from . import libngpy
     15 def Redraw(*args, **kwargs):

ImportError: /usr/local/lib/python3.7/site-packages/netgen/../../..//libngcore.so: Undefined symbol "backtrace"

My netgen configuration is as follows:

  Enabled functionality:

    OCC: ............... OFF
    JPEGlib: ........... true
    FFMPEG: ............ false
    GUI: ............... ON
    MPI: ............... OFF
    PYTHON: ............ ON


Add "LDFLAGS+= -lexecinfo" to the port Makefile, rebuild and re-install.
Comment 1 commit-hook freebsd_committer 2020-07-07 14:23:00 UTC
A commit references this bug:

Author: stephen
Date: Tue Jul  7 14:22:41 UTC 2020
New revision: 541423
URL: https://svnweb.freebsd.org/changeset/ports/541423

  - Add LDFLAGS+= -lexecinfo so that python modules work.

  PR:		247811
  Submitted by:	rsmith@xs4all.nl

Comment 2 Stephen Montgomery-Smith freebsd_committer 2020-07-07 14:23:36 UTC
Committed.  Thank you for providing the solution.