Opened 4 years ago

Last modified 4 years ago

#61591 closed defect

py27-gobject @2.28.7. Build fails on Big Sur: Undefined symbols for architecture x86_64: "_PyCObject_AsVoidPtr" and others — at Version 6

Reported by: kencu (Ken) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur Cc:
Port: py-gobject

Description (last modified by kencu (Ken))

I believe the same issue affects all python supports of py-gobject:

1 warning generated.
  CCLD   libpyglib-2.0-python2.7.la
1 warning generated.
1 warning generated.
Undefined symbols for architecture x86_64:
  "_PyCObject_AsVoidPtr", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_init_internal in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyCObject_Type", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyDict_GetItem", referenced from:
      _pyglib_error_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyDict_New", referenced from:
      _pyglib_register_exception_for_domain in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyDict_SetItem", referenced from:
      _pyglib_register_exception_for_domain in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_Fetch", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_Format", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_GivenExceptionMatches", referenced from:
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_NewException", referenced from:
      _pyglib_register_exception_for_domain in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_NormalizeException", referenced from:
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_Occurred", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_Print", referenced from:
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
      __pyglib_handler_marshal in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_Restore", referenced from:
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_SetObject", referenced from:
      _pyglib_error_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyErr_SetString", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyEval_InitThreads", referenced from:
      _pyglib_enable_threads in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyExc_ImportError", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyExc_ValueError", referenced from:
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyFloat_FromDouble", referenced from:
      _pyglib_float_from_timeval in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyGILState_Ensure", referenced from:
      _pyglib_gil_state_ensure in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_gil_state_ensure_py23 in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyGILState_Release", referenced from:
      _pyglib_gil_state_release in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_gil_state_release_py23 in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyImport_ImportModule", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyInt_AsLong", referenced from:
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyInt_FromLong", referenced from:
      _pyglib_error_check in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_register_exception_for_domain in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyObject_CallObject", referenced from:
      __pyglib_handler_marshal in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyObject_GetAttrString", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyObject_IsTrue", referenced from:
      __pyglib_handler_marshal in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyObject_Repr", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyObject_SetAttrString", referenced from:
      _pyglib_error_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyString_AsString", referenced from:
      _pyglib_init in libpyglib_2_0_python2.7_la-pyglib.o
      _pyglib_gerror_exception_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyString_FromString", referenced from:
      _pyglib_error_check in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyThread_create_key", referenced from:
      _pyglib_enable_threads in libpyglib_2_0_python2.7_la-pyglib.o
  "_PyTuple_GetItem", referenced from:
      __pyglib_handler_marshal in libpyglib_2_0_python2.7_la-pyglib.o
  "__PyObject_CallFunction_SizeT", referenced from:
      _pyglib_error_check in libpyglib_2_0_python2.7_la-pyglib.o
  "__Py_NoneStruct", referenced from:
      _pyglib_error_check in libpyglib_2_0_python2.7_la-pyglib.o
  "__Py_NotImplementedStruct", referenced from:
      __pyglib_generic_ptr_richcompare in libpyglib_2_0_python2.7_la-pyglib.o
      __pyglib_generic_long_richcompare in libpyglib_2_0_python2.7_la-pyglib.o
  "__Py_TrueStruct", referenced from:
      __pyglib_generic_ptr_richcompare in libpyglib_2_0_python2.7_la-pyglib.o
      __pyglib_generic_long_richcompare in libpyglib_2_0_python2.7_la-pyglib.o
  "__Py_ZeroStruct", referenced from:
      __pyglib_generic_ptr_richcompare in libpyglib_2_0_python2.7_la-pyglib.o
      __pyglib_generic_long_richcompare in libpyglib_2_0_python2.7_la-pyglib.o
ld: symbol(s) not found for architecture x86_64

Change History (8)

Changed 4 years ago by kencu (Ken)

comment:1 Changed 4 years ago by kencu (Ken)

this python 2.7 port is on the build path for gimp2, and gimp2 is an in-demand port.

comment:2 Changed 4 years ago by kencu (Ken)

py38-gobject fails identically. log attached.

Changed 4 years ago by kencu (Ken)

comment:3 Changed 4 years ago by kencu (Ken)

Port: py38-gobject added

comment:4 Changed 4 years ago by kencu (Ken)

I think these missing symbols are supposed to be found in python itself, so this issue might actually be with the python builds

comment:5 Changed 4 years ago by kencu (Ken)

I am not certain, but this issue sounds like it could be with the cpython section of python, and there is a lot of work going on there.

See <https://github.com/python/cpython/commit/41761933c1c30bb6003b65eef1ba23a83db4eae4>

See <https://bugs.python.org/issue41100>

comment:6 Changed 4 years ago by kencu (Ken)

Description: modified (diff)
Note: See TracTickets for help on using tickets.