[MacPorts] #63449: geda-gaf @1.10.2_1 gnetlist fails to run with 'xorn-netlist' failed to load

MacPorts noreply at macports.org
Sun Sep 5 07:31:47 UTC 2021


#63449: geda-gaf @1.10.2_1      gnetlist fails to run with 'xorn-netlist' failed to
load
-------------------------------------+--------------------------------
 Reporter:  ravi6                    |      Owner:  (none)
     Type:  submission               |     Status:  new
 Priority:  Normal                   |  Milestone:  MacPorts Future
Component:  ports                    |    Version:  2.7.1
 Keywords:  xorn unresolved symbols  |       Port:  geda-gaf @1.10.2_1
-------------------------------------+--------------------------------
 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 at 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
 }}}

 2. Closer examination of shared object library with 'otool -L ' did
 confirm that the symbol was
    indeed undefined.

 3. 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 )
 4. 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 =

  }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63449>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list