You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the status of the new python bindings related variants of the Hamlib port on the Mac:
hamlib WORKS!
hamlib+python2.7 Bindings WORKS!
hamlib+python3.7 Bindings WORKS!
hamlib+python3.8 Bindings FAILS TO BUILD :-(
hamlib+python3.9 Bindings FAILS to BUILD :-(
The problem with the building hamlib with either Python 3.8 or Python 3.9 bindings
appear to stem with a problem with the Hamlib configuration (configure.ac).
In particular, the problem appears to lie in the check at line
CCLD _Hamlib.la
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"_PyArg_UnpackTuple", referenced from:
_SwigPyObject_own in hamlibpy_wrap.o
__wrap_rig_debug in hamlibpy_wrap.o
.....
.....
"__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 do hope one of the Hamlib developers can fix this problem so Macports can offer Hamlib for all the variants of the python bindings for Mac users.
73s
Rob
VA2FB
The text was updated successfully, but these errors were encountered:
After more testing, I can confirm that Hamlib with python 3.9 bindings will compile manually on the Mac if the following lines are removed (or commented out) in configure.ac:
dnl Determine whether to link libpython as it is unneeded for Python >= 3.8
P.S. If one manually changes configure.ac with a text editor, the following commands are needed to compile Hamlib with python3.9 bindings:
autoreconf --install
./configure --with-python-binding --prefix=/usr/local
make
sudo make install
Then run:
PYTHONPATH=/usr/local/lib/python3.9/site-packages:$PYTHONPATH python bindings/py3test.py
I did not test building Hamlib with Python3.8 bindings using the updated configure.ac. But given the changes to configure.ac, I am sure it will also build fine.
Please consider deleting the lines above in configure.ac so Mac users can use Macports to install Hamlib with python 3.8 or 3.9 bindings!
The Macports team has been working hard to add variants to its existing Hamlib port to add support for Python bindings for users on the Mac.
Please see:
https://trac.macports.org/ticket/62580
Here is the status of the new python bindings related variants of the Hamlib port on the Mac:
hamlib WORKS!
hamlib+python2.7 Bindings WORKS!
hamlib+python3.7 Bindings WORKS!
hamlib+python3.8 Bindings FAILS TO BUILD :-(
hamlib+python3.9 Bindings FAILS to BUILD :-(
The problem with the building hamlib with either Python 3.8 or Python 3.9 bindings
appear to stem with a problem with the Hamlib configuration (configure.ac).
In particular, the problem appears to lie in the check at line
Hamlib/configure.ac
Line 582 in c660856
As a result, the compile fails:
CCLD _Hamlib.la
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"_PyArg_UnpackTuple", referenced from:
_SwigPyObject_own in hamlibpy_wrap.o
__wrap_rig_debug in hamlibpy_wrap.o
.....
.....
"__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 do hope one of the Hamlib developers can fix this problem so Macports can offer Hamlib for all the variants of the python bindings for Mac users.
73s
Rob
VA2FB
The text was updated successfully, but these errors were encountered: