[MacPorts] #62580: swig fails test suite on Lion
MacPorts
noreply at macports.org
Mon Mar 29 15:10:30 UTC 2021
#62580: swig fails test suite on Lion
-------------------------------+-------------------------
Reporter: RobK88 | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: Lion Hamlib
Port: swig swig-python |
-------------------------------+-------------------------
Comment (by RobK88):
Many many thanks Ken. I learned a lot! Now I know how easily modify
existing ports. I wish that info was in the Macports Guide on the web.
P.S. One day I will figure out how to create a local Macports repo
holding my own ports.
By the way, I following your instructions and modified the existing Hamlib
port by adding "configure.args-append --with-python-binding". But the
port still failed to compile.
{{{
$ sudo port -v build hamlib
......
......
__Py_NotImplementedStruct", referenced from:
_SwigPyObject_richcompare in hamlibpy_wrap.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [_Hamlib.la] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_hamlib/hamlib/work/hamlib-4.1/bindings'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_hamlib/hamlib/work/hamlib-4.1/bindings'
make: *** [all-recursive] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_hamlib/hamlib/work/hamlib-4.1'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_hamlib/hamlib/work/Hamlib-4.1"
&& /usr/bin/make -j4 -w all
Exit code: 2
Error: Failed to build hamlib: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_hamlib/hamlib/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port hamlib failed
}}}
I suspect you compiled the modified Hamlib port on a Mac with a newer OS.
Unfortunately, Python appears to be broken in many places on Lion and Mtn
Lion.
I will likely need to give up soon using Python (via Macports) or just
retire this old Mac.
Or I might try uninstalling Python via Macports and installing the latest
version of Python available for Lion from https://www.python.org/downloads
/mac-osx/
(which is Python 3.7.6) and see if that works better.
It still looks like swig and swig-python are broken on Lion (and likely
broken on Mtn Lion as well). Otherwise your modified hamlib port would
have compiled okay.
--
Ticket URL: <https://trac.macports.org/ticket/62580#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list