[MacPorts] #62580: hamlib @4.1: please enable python (and python3) bindings.
MacPorts
noreply at macports.org
Wed Mar 31 17:28:27 UTC 2021
#62580: hamlib @4.1: please enable python (and python3) bindings.
----------------------+---------------------
Reporter: RobK88 | Owner: ra1nb0w
Type: request | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: fixed | Keywords:
Port: hamlib |
----------------------+---------------------
Comment (by RobK88):
Davide - Many thanks for all your work creating an updated portfile for
Hamlib.
But please reopen this ticket / bug report.
Yes, I can install hamlib with Python37 bindings on my Mac running Lion.
So "sudo port install hamlib +python37" does work.
Great progress!!
But When I try to install hamlib with Python 39 bindings on my Mac running
Lion (i.e. "sudo port install hamlib +python39"), the compile fails at
exactly the same point. Like before, it appears that the necessary
symbols (or headers file?) for swig cannot be found.
{{{
$ sudo port clean hamlib
---> Cleaning hamlib
Grinchs-Mac-Pro:~ grinch$ sudo port install hamlib +python39
---> Computing dependencies for hamlib
---> Fetching distfiles for hamlib
---> Verifying checksums for hamlib
---> Extracting hamlib
---> Configuring hamlib
---> Building hamlib
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
}}}
Here is the where the build 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
"_PyBool_FromLong", referenced from:
_SwigPyObject_richcompare in hamlibpy_wrap.o
_SwigPyObject_own in hamlibpy_wrap.o
"_PyBytes_AsStringAndSize", referenced from:
_SWIG_AsCharPtrAndSize in hamlibpy_wrap.o
"_PyCFunction_Type", referenced from:
_SWIG_PyInstanceMethod_New in hamlibpy_wrap.o
_SWIG_Python_ConvertFunctionPtr in hamlibpy_wrap.o
"_PyCMethod_New", referenced from:
_SWIG_PyInstanceMethod_New in hamlibpy_wrap.o
"_PyCapsule_GetPointer", referenced from:
_SWIG_Python_TypeQuery in hamlibpy_wrap.o
_SWIG_Python_DestroyModule in hamlibpy_wrap.o
"_PyCapsule_Import", referenced from:
_SWIG_Python_GetModule in hamlibpy_wrap.o
"_PyCapsule_New", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SWIG_Python_TypeQuery in hamlibpy_wrap.o
"_PyDict_GetItem", referenced from:
_SWIG_Python_TypeQuery in hamlibpy_wrap.o
"_PyDict_New", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SWIG_Python_TypeQuery in hamlibpy_wrap.o
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
"_PyDict_SetItem", referenced from:
_SWIG_Python_TypeQuery in hamlibpy_wrap.o
"_PyDict_SetItemString", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SWIG_Python_SetConstant in hamlibpy_wrap.o
"_PyErr_Clear", referenced from:
_SWIG_Python_ConvertPtrAndOwn in hamlibpy_wrap.o
_SWIG_Python_GetSwigThis in hamlibpy_wrap.o
_SWIG_Python_GetModule in hamlibpy_wrap.o
_SwigPyClientData_New in hamlibpy_wrap.o
_SWIG_AsVal_long in hamlibpy_wrap.o
_SWIG_AsVal_double in hamlibpy_wrap.o
_SWIG_AsVal_unsigned_SS_long in hamlibpy_wrap.o
...
"_PyErr_Fetch", referenced from:
_SwigPyObject_dealloc in hamlibpy_wrap.o
_SWIG_Python_RaiseOrModifyTypeError in hamlibpy_wrap.o
"_PyErr_Format", referenced from:
_swig_varlink_getattr in hamlibpy_wrap.o
_swig_varlink_setattr in hamlibpy_wrap.o
_SWIG_Python_UnpackTuple in hamlibpy_wrap.o
"_PyErr_GivenExceptionMatches", referenced from:
_SWIG_Python_RaiseOrModifyTypeError in hamlibpy_wrap.o
"_PyErr_Occurred", referenced from:
_SWIG_Python_ConvertPtrAndOwn in hamlibpy_wrap.o
_SWIG_Python_GetSwigThis in hamlibpy_wrap.o
_SWIG_Python_GetModule in hamlibpy_wrap.o
_swig_varlink_getattr in hamlibpy_wrap.o
_swig_varlink_setattr in hamlibpy_wrap.o
_SwigPyClientData_New in hamlibpy_wrap.o
_SWIG_AsVal_long in hamlibpy_wrap.o
...
"_PyErr_Restore", referenced from:
_SwigPyObject_dealloc in hamlibpy_wrap.o
_SWIG_Python_RaiseOrModifyTypeError in hamlibpy_wrap.o
"_PyErr_SetString", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_Swig_var_hamlib_version_set in hamlibpy_wrap.o
_Swig_var_hamlib_copyright_set in hamlibpy_wrap.o
_Swig_var_debugmsgsave_set in hamlibpy_wrap.o
_SwigPyObject_append in hamlibpy_wrap.o
__wrap_confparams_token_set in hamlibpy_wrap.o
__wrap_confparams_token_get in hamlibpy_wrap.o
...
"_PyErr_WriteUnraisable", referenced from:
_SwigPyObject_dealloc in hamlibpy_wrap.o
"_PyExc_AttributeError", referenced from:
_Swig_var_hamlib_version_set in hamlibpy_wrap.o
_Swig_var_hamlib_copyright_set in hamlibpy_wrap.o
_swig_varlink_getattr in hamlibpy_wrap.o
_swig_varlink_setattr in hamlibpy_wrap.o
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_IOError", referenced from:
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_IndexError", referenced from:
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_MemoryError", referenced from:
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_OverflowError", referenced from:
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_RuntimeError", referenced from:
_Swig_var_debugmsgsave_set in hamlibpy_wrap.o
__wrap_confparams_token_set in hamlibpy_wrap.o
__wrap_confparams_token_get in hamlibpy_wrap.o
__wrap_confparams_name_get in hamlibpy_wrap.o
__wrap_confparams_label_get in hamlibpy_wrap.o
__wrap_confparams_tooltip_get in hamlibpy_wrap.o
__wrap_confparams_dflt_get in hamlibpy_wrap.o
...
"_PyExc_SyntaxError", referenced from:
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_SystemError", referenced from:
_SWIG_Python_UnpackTuple in hamlibpy_wrap.o
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_TypeError", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SwigPyObject_append in hamlibpy_wrap.o
__wrap_rig_set_debug_file in hamlibpy_wrap.o
_SWIG_Python_UnpackTuple in hamlibpy_wrap.o
_SWIG_Python_RaiseOrModifyTypeError in hamlibpy_wrap.o
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyExc_ValueError", referenced from:
__wrap_confparams_u_c_combostr_set in hamlibpy_wrap.o
__wrap_channel_levels_set in hamlibpy_wrap.o
__wrap_rig_caps_level_gran_set in hamlibpy_wrap.o
__wrap_rig_caps_parm_gran_set in hamlibpy_wrap.o
__wrap_rig_caps_preamp_set in hamlibpy_wrap.o
__wrap_rig_caps_attenuator_set in hamlibpy_wrap.o
__wrap_rig_caps_chan_list_set in hamlibpy_wrap.o
...
"_PyExc_ZeroDivisionError", referenced from:
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyFloat_AsDouble", referenced from:
_SWIG_AsVal_double in hamlibpy_wrap.o
"_PyFloat_FromDouble", referenced from:
__wrap_confparams_u_n_min_get in hamlibpy_wrap.o
__wrap_confparams_u_n_max_get in hamlibpy_wrap.o
__wrap_confparams_u_n_step_get in hamlibpy_wrap.o
__wrap_value_t_f_get in hamlibpy_wrap.o
__wrap_freq_range_t_startf_get in hamlibpy_wrap.o
__wrap_freq_range_t_endf_get in hamlibpy_wrap.o
__wrap_channel_freq_get in hamlibpy_wrap.o
...
"_PyFloat_Type", referenced from:
_SWIG_AsVal_double in hamlibpy_wrap.o
"_PyImport_AddModule", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
"_PyInstanceMethod_New", referenced from:
_SWIG_PyInstanceMethod_New in hamlibpy_wrap.o
"_PyList_Append", referenced from:
_SWIG_Python_AppendOutput in hamlibpy_wrap.o
"_PyList_New", referenced from:
__wrap_rig_caps_preamp_get in hamlibpy_wrap.o
__wrap_rig_caps_attenuator_get in hamlibpy_wrap.o
__wrap_rig_state_preamp_get in hamlibpy_wrap.o
__wrap_rig_state_attenuator_get in hamlibpy_wrap.o
_SWIG_Python_AppendOutput in hamlibpy_wrap.o
"_PyList_SetItem", referenced from:
__wrap_rig_caps_preamp_get in hamlibpy_wrap.o
__wrap_rig_caps_attenuator_get in hamlibpy_wrap.o
__wrap_rig_state_preamp_get in hamlibpy_wrap.o
__wrap_rig_state_attenuator_get in hamlibpy_wrap.o
_SWIG_Python_AppendOutput in hamlibpy_wrap.o
"_PyLong_AsDouble", referenced from:
_SWIG_AsVal_double in hamlibpy_wrap.o
"_PyLong_AsLong", referenced from:
_SWIG_AsVal_long in hamlibpy_wrap.o
"_PyLong_AsUnsignedLong", referenced from:
_SWIG_AsVal_unsigned_SS_long in hamlibpy_wrap.o
"_PyLong_AsUnsignedLongLong", referenced from:
_SWIG_AsVal_unsigned_SS_long_SS_long in hamlibpy_wrap.o
"_PyLong_FromLong", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
__wrap_confparams_token_get in hamlibpy_wrap.o
__wrap_confparams_type_get in hamlibpy_wrap.o
__wrap_value_t_i_get in hamlibpy_wrap.o
__wrap_value_t_b_l_get in hamlibpy_wrap.o
__wrap_freq_range_t_modes_get in hamlibpy_wrap.o
__wrap_freq_range_t_low_power_get in hamlibpy_wrap.o
...
"_PyLong_FromSize_t", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
__wrap_freq_range_t_vfo_get in hamlibpy_wrap.o
__wrap_freq_range_t_ant_get in hamlibpy_wrap.o
__wrap_channel_vfo_get in hamlibpy_wrap.o
__wrap_channel_ant_get in hamlibpy_wrap.o
__wrap_channel_tx_vfo_get in hamlibpy_wrap.o
__wrap_channel_ctcss_tone_get in hamlibpy_wrap.o
...
"_PyLong_FromUnsignedLongLong", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
__wrap_freq_range_t_modes_get in hamlibpy_wrap.o
__wrap_tuning_step_list_modes_get in hamlibpy_wrap.o
__wrap_filter_list_modes_get in hamlibpy_wrap.o
__wrap_channel_mode_get in hamlibpy_wrap.o
__wrap_channel_tx_mode_get in hamlibpy_wrap.o
__wrap_channel_funcs_get in hamlibpy_wrap.o
...
"_PyLong_FromVoidPtr", referenced from:
_SwigPyObject_long in hamlibpy_wrap.o
"_PyModule_AddObject", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
"_PyModule_Create2", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
"_PyModule_GetDict", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
"_PyObject_Call", referenced from:
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
"_PyObject_CallFunctionObjArgs", referenced from:
_SWIG_Python_ConvertPtrAndOwn in hamlibpy_wrap.o
_SwigPyObject_dealloc in hamlibpy_wrap.o
"_PyObject_Free", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SwigPyObject_dealloc in hamlibpy_wrap.o
_SwigPyPacked_dealloc in hamlibpy_wrap.o
"_PyObject_GenericGetAttr", referenced from:
_SwigPyObject_TypeOnce.tmp in hamlibpy_wrap.o
_SwigPyPacked_TypeOnce.tmp in hamlibpy_wrap.o
"_PyObject_GetAttr", referenced from:
_SWIG_Python_GetSwigThis in hamlibpy_wrap.o
"_PyObject_GetAttrString", referenced from:
_SwigPyClientData_New in hamlibpy_wrap.o
"_PyObject_IsInstance", referenced from:
_SwigPyClientData_New in hamlibpy_wrap.o
"_PyObject_IsTrue", referenced from:
_SwigPyObject_own in hamlibpy_wrap.o
"_PyObject_SetAttr", referenced from:
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
_SWIG_Python_InitShadowInstance in hamlibpy_wrap.o
"_PyTuple_GetSlice", referenced from:
__wrap_rig_debug in hamlibpy_wrap.o
"_PyTuple_New", referenced from:
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
_SwigPyClientData_New in hamlibpy_wrap.o
"_PyTuple_SetItem", referenced from:
_SwigPyClientData_New in hamlibpy_wrap.o
"_PyTuple_Size", referenced from:
__wrap_rig_debug in hamlibpy_wrap.o
"_PyType_IsSubtype", referenced from:
_SWIG_PyInstanceMethod_New in hamlibpy_wrap.o
_SWIG_AsVal_double in hamlibpy_wrap.o
_SWIG_Python_ConvertFunctionPtr in hamlibpy_wrap.o
"_PyType_Ready", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SwigPyObject_type in hamlibpy_wrap.o
_SwigPyPacked_dealloc in hamlibpy_wrap.o
"_PyType_Type", referenced from:
_SwigPyClientData_New in hamlibpy_wrap.o
"_PyUnicode_AsUTF8String", referenced from:
_SWIG_AsCharPtrAndSize in hamlibpy_wrap.o
"_PyUnicode_Concat", referenced from:
_swig_varlink_str in hamlibpy_wrap.o
_SwigPyObject_repr in hamlibpy_wrap.o
"_PyUnicode_DecodeUTF8", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_Swig_var_hamlib_version_get in hamlibpy_wrap.o
_Swig_var_hamlib_copyright_get in hamlibpy_wrap.o
_Swig_var_debugmsgsave_get in hamlibpy_wrap.o
__wrap_confparams_name_get in hamlibpy_wrap.o
__wrap_confparams_label_get in hamlibpy_wrap.o
__wrap_confparams_tooltip_get in hamlibpy_wrap.o
...
"_PyUnicode_FromFormat", referenced from:
_SwigPyObject_repr in hamlibpy_wrap.o
_SwigPyPacked_repr in hamlibpy_wrap.o
_SwigPyPacked_str in hamlibpy_wrap.o
_SWIG_Python_RaiseOrModifyTypeError in hamlibpy_wrap.o
"_PyUnicode_FromString", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SWIG_Python_GetSwigThis in hamlibpy_wrap.o
_SWIG_Python_TypeQuery in hamlibpy_wrap.o
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
_swig_varlink_str in hamlibpy_wrap.o
_SWIG_Python_DestroyModule in hamlibpy_wrap.o
_SwigPyPacked_str in hamlibpy_wrap.o
...
"_PyUnicode_InternFromString", referenced from:
_swig_varlink_repr in hamlibpy_wrap.o
_swig_varlink_str in hamlibpy_wrap.o
"_Py_DecRef", referenced from:
_swig_varlink_str in hamlibpy_wrap.o
_SwigPyObject_repr in hamlibpy_wrap.o
"__PyObject_New", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
_SwigPyObject_New in hamlibpy_wrap.o
"__Py_Dealloc", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_SWIG_Python_SetConstant in hamlibpy_wrap.o
_SWIG_AsCharPtrAndSize in hamlibpy_wrap.o
_SWIG_Python_ConvertPtrAndOwn in hamlibpy_wrap.o
_SWIG_Python_GetSwigThis in hamlibpy_wrap.o
_SWIG_Python_TypeQuery in hamlibpy_wrap.o
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
...
"__Py_NoneStruct", referenced from:
_PyInit__Hamlib in hamlibpy_wrap.o
_Swig_var_hamlib_version_get in hamlibpy_wrap.o
_Swig_var_hamlib_copyright_get in hamlibpy_wrap.o
_Swig_var_debugmsgsave_get in hamlibpy_wrap.o
_SWIG_Python_ConvertPtrAndOwn in hamlibpy_wrap.o
_SWIG_Python_NewPointerObj in hamlibpy_wrap.o
_SwigPyObject_disown 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 will attach main.log
Ken or Davide -- Can you build and install hamlib with python39 bindings
on your Mac running Lion? (i.e. what happens when you try "sudo port
install hamlib +python39" ?)
If you are able to install Hamlib with Python39 bindings on your Mac
running Lion then there is something strange with the configuration of
Macports on my Mac running Lion. I might need to uninstall Macports and
reinstall Macports from scratch.
--
Ticket URL: <https://trac.macports.org/ticket/62580#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list