Opened 3 years ago

Last modified 3 years ago

#63449 assigned defect

geda-gaf @1.10.2_1: gnetlist fails to run with 'xorn-netlist' failed to load

Reported by: ravi6 (Surya) Owned by: markemer (Mark Anderson)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: geda-gaf

Description

OS: BigSur Version 11.5.2

  1. Initially tried binary port of geda-gaf and when I use the gnetlist

gnetlist -g spice-db sample.net sample.sch

import xorn.storage fails with unresolved symbols.

`xorn-netlist' failed to load.
This is an error.  Please report it to bug-xorn@hedmen.org

Traceback (most recent call last):
  File "/opt/local/bin/xorn", line 112, in main
    module = imp.load_module(short_name, *res)
  File "/opt/local/lib/xorn/netlist.py", line 26, in <module>
    import gaf.clib
  File "/opt/local/lib/python2.7/site-packages/gaf/clib.py", line 54, in <module>
    import gaf.read
  File "/opt/local/lib/python2.7/site-packages/gaf/read.py", line 27, in <module>
    import gaf.plainread
  File "/opt/local/lib/python2.7/site-packages/gaf/plainread.py", line 32, in <module>
    import xorn.proxy
  File "/opt/local/lib/python2.7/site-packages/xorn/proxy.py", line 21, in <module>
    import xorn.storage
ImportError: dlopen(/opt/local/lib/python2.7/site-packages/xorn/storagemodule.so, 2): Symbol not found: _xornsch_get_arc_data
  Referenced from: /opt/local/lib/python2.7/site-packages/xorn/storagemodule.so
  Expected in: /opt/local/lib/libxornstorage.0.dylib
 in /opt/local/lib/python2.7/site-packages/xorn/storagemodule.so
  1. Closer examination of shared object library with 'otool -L ' did confirm that the symbol was indeed undefined.
  1. Deleted geda-gaf binary port and tried with source port. Source compiled and installed well, but the problem persists. (source compiled with mp-clang-9.0, python27 )
  2. WORKAROUND: Make the following change to Makefile in geda-gaf-1.10.2/xorn
            Replace.  libxornstorage_la_LDFLAGS = -export-symbols-regex '^xorn_'
            With      libxornstorage_la_LDFLAGS =
    
    

Change History (1)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mark@… removed
Keywords: xorn unresolved symbols removed
Milestone: MacPorts Future
Owner: set to markemer
Port: @1.10.2_1 removed
Status: newassigned
Summary: geda-gaf @1.10.2_1 gnetlist fails to run with 'xorn-netlist' failed to loadgeda-gaf @1.10.2_1: gnetlist fails to run with 'xorn-netlist' failed to load
Type: submissiondefect
Note: See TracTickets for help on using tickets.