Opened 5 years ago

Last modified 5 months 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: nathanpc (Nathan Campos)
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 (3)

comment:1 Changed 5 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

comment:2 Changed 5 months ago by nathanpc (Nathan Campos)

Looks like the port is still broken, and since gEDA has been archived by the maintainers, I don't think an upstream fix will ever be made. Is there an easy way to apply this workaround in the port?

Looks like the commit that added that line was done back in 2013: https://github.com/rlutz/geda-gaf/commit/1ac0e6a1bb7e1beb3691d3613416c6b0bf9264d4

comment:3 Changed 5 months ago by nathanpc (Nathan Campos)

Cc: nathanpc added
Note: See TracTickets for help on using tickets.