Problem ------- 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 12 ---> 13 from . import libngpy 14 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 Solution -------- Add "LDFLAGS+= -lexecinfo" to the port Makefile, rebuild and re-install.
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 Log: - Add LDFLAGS+= -lexecinfo so that python modules work. PR: 247811 Submitted by: rsmith@xs4all.nl Changes: head/cad/netgen/Makefile
Committed. Thank you for providing the solution.