[MacPorts] #62580: swig fails test suite on Lion
MacPorts
noreply at macports.org
Sun Mar 28 18:41:26 UTC 2021
#62580: swig fails test suite on Lion
-------------------------+------------------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: Lion Hamlib | Port: swig swig-python
-------------------------+------------------------------
I have been trying to compile and install "Hamlib" with python bindings
support. Even though Macports has Hamlib in its repo, Macports does not
offer Hamlib with python bindings support.
If one want hamlib with python bindings support, one must do it manually.
(see https://github.com/Hamlib/Hamlib/blob/master/bindings/README.python )
Unfortunately, when I try to compile hamlib with python bindings support,
the compile fails.
{{{
./configure --with-python-binding --prefix=/usr/local
(all is good!)
make
...
...
"__Py_NotImplementedStruct", referenced from:
_SwigPyObject_richcompare in hamlibpy_wrap.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [_Hamlib.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
}}}
One of the hamlib developers told me that it was a swig related error. He
told me to reinstall swig and try again. I did that. The compile of
hamlib failed again with the same error.
So I uninstalled swig and swig-python using Macports. Then I compiled
swig manually from source.
swig compiled and installed just fine. But when I ran "make check",
errors show up when the python related test suite is run.
Given my experiences above, I am pretty confident that the Macports "swig"
and "swig-python" packages are also broken on Lion. They compile and
install fine but do NOT run as expected.
P.S. I also have the same experience with py39-numpy. The Macports port
compiles and installs fine on my old Mac running Lion but py39-numpy does
not run properly. (see https://trac.macports.org/ticket/59616 )
So it looks like a number of python related packages are broken on the
older Macs even though they compile and install fine.
--
Ticket URL: <https://trac.macports.org/ticket/62580>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list