Opened 3 years ago

Closed 2 years ago

#65092 closed defect (fixed)

py27-notify-python build failure

Reported by: volga629-1 Owned by: asemmar <anis.semmar-ext@…>
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-notify-python

Description (last modified by jmroot (Joshua Root))

Hello Everyone, Py Notify failing to install. MacOS 12 X1

:info:build generating symbol list for `_pynotify.la'
:info:build /usr/bin/nm -B  .libs/pynotifymodule.o .libs/pynotify.o  | sed -n -e 's/^.*[ 	]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ 	][ 	]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/_pynotify.exp
:info:build grep -E -e "init_pynotify" ".libs/_pynotify.exp" > ".libs/_pynotify.expT"
:info:build mv -f ".libs/_pynotify.expT" ".libs/_pynotify.exp"
:info:build sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < .libs/_pynotify.exp > .libs/_pynotify-symbols.expsym
:info:build /usr/bin/clang  -o .libs/_pynotify.so -bundle  .libs/pynotifymodule.o .libs/pynotify.o  -L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lharfbuzz -lfontconfig -lfreetype -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
:info:build Undefined symbols for architecture arm64:
:info:build   "_PyArg_ParseTupleAndKeywords", referenced from:
:info:build       __wrap_notify_notification_new in pynotify.o
:info:build       __wrap_notify_init in pynotify.o
:info:build       __wrap_notify_notification_update in pynotify.o
:info:build       __wrap_notify_notification_set_timeout in pynotify.o
:info:build       __wrap_notify_notification_set_category in pynotify.o
:info:build       __wrap_notify_notification_set_urgency in pynotify.o
:info:build       __wrap_notify_notification_set_icon_from_pixbuf in pynotify.o
:info:build       ...
:info:build   "_PyBool_FromLong", referenced from:
:info:build       __wrap_notify_init in pynotify.o
:info:build       __wrap_notify_is_initted in pynotify.o
:info:build       __wrap_notify_notification_update in pynotify.o
:info:build       __wrap_notify_notification_show in pynotify.o
:info:build       __wrap_notify_notification_close in pynotify.o
:info:build   "_PyBool_Type", referenced from:
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_PyCObject_AsVoidPtr", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyCObject_Type", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyCallable_Check", referenced from:
:info:build       __wrap_notify_notification_add_action in pynotify.o
:info:build   "_PyDict_GetItemString", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyDict_New", referenced from:
:info:build       __wrap_notify_get_server_info in pynotify.o
:info:build   "_PyDict_SetItemString", referenced from:
:info:build       __wrap_notify_get_server_info in pynotify.o
:info:build   "_PyErr_Fetch", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyErr_Format", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyErr_Occurred", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build       _pypynotify_add_constants in pynotify.o
:info:build   "_PyErr_Print", referenced from:
:info:build       _pypynotify_add_constants in pynotify.o
:info:build   "_PyErr_SetString", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build       _pygalago_unwrap_gobj_list in pynotify.o
:info:build       __wrap_notify_notification_new in pynotify.o
:info:build       _pypynotify_register_classes in pynotify.o
:info:build       __wrap_notify_notification_add_action in pynotify.o
:info:build   "_PyEval_CallObjectWithKeywords", referenced from:
:info:build       __notify_action_cb in pynotify.o
:info:build   "_PyExc_ImportError", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build       _pypynotify_register_classes in pynotify.o
:info:build   "_PyExc_RuntimeError", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build       __wrap_notify_notification_new in pynotify.o
:info:build   "_PyExc_TypeError", referenced from:
:info:build       _pygalago_unwrap_gobj_list in pynotify.o
:info:build       __wrap_notify_notification_add_action in pynotify.o
:info:build   "_PyFloat_AsDouble", referenced from:
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_PyFloat_Type", referenced from:
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_PyImport_ImportModule", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build       _pypynotify_register_classes in pynotify.o
:info:build   "_PyInt_AsLong", referenced from:
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_PyInt_FromLong", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyList_Append", referenced from:
:info:build       __wrap_notify_get_server_caps in pynotify.o
:info:build   "_PyList_GetItem", referenced from:
:info:build       _pygalago_unwrap_gobj_list in pynotify.o
:info:build   "_PyList_New", referenced from:
:info:build       __wrap_notify_get_server_caps in pynotify.o
:info:build   "_PyList_Size", referenced from:
:info:build       _pygalago_unwrap_gobj_list in pynotify.o
:info:build   "_PyLong_AsLong", referenced from:
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_PyModule_AddObject", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyModule_GetDict", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyObject_GetAttrString", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build       _pypynotify_register_classes in pynotify.o
:info:build   "_PyObject_IsTrue", referenced from:
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_PyObject_Repr", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_PyString_AsString", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_PyString_FromString", referenced from:
:info:build       __wrap_notify_get_app_name in pynotify.o
:info:build       __wrap_notify_get_server_caps in pynotify.o
:info:build       __wrap_notify_get_server_info in pynotify.o
:info:build   "_PyTuple_Size", referenced from:
:info:build       __wrap_notify_notification_add_action in pynotify.o
:info:build   "_PyType_IsSubtype", referenced from:
:info:build       _pygalago_unwrap_gobj_list in pynotify.o
:info:build       __wrap_notify_notification_set_hint in pynotify.o
:info:build   "_Py_BuildValue", referenced from:
:info:build       _pypynotify_register_classes in pynotify.o
:info:build       __notify_action_cb in pynotify.o
:info:build   "_Py_FatalError", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "_Py_InitModule4_64", referenced from:
:info:build       _init_pynotify in pynotifymodule.o
:info:build   "__Py_NoneStruct", referenced from:
:info:build       __wrap_notify_uninit in pynotify.o
:info:build       __wrap_notify_get_app_name in pynotify.o
:info:build       __wrap_notify_get_server_info in pynotify.o
:info:build       __wrap_notify_notification_set_timeout in pynotify.o
:info:build       __wrap_notify_notification_set_category in pynotify.o
:info:build       __wrap_notify_notification_set_urgency in pynotify.o
:info:build       __wrap_notify_notification_set_icon_from_pixbuf in pynotify.o
:info:build       ...
:info:build ld: symbol(s) not found for architecture arm64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [_pynotify.la] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-notify-python/py27-notify-python/work/notify-python-0.1.1/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-notify-python/py27-notify-python/work/notify-python-0.1.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-notify-python/py27-notify-python/work/notify-python-0.1.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-notify-python/py27-notify-python/work/notify-python-0.1.1" && make -j10 -w all 
:info:build Exit code: 2
:error:build Failed to build py27-notify-python: command execution failed
:debug:build Error code: CHILDSTATUS 77063 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-notify-python/py27-notify-python/main.log for details.

Attachments (1)

main.log (634.5 KB) - added by rpfile 2 years ago.
main.log for build

Download all attachments as: .zip

Change History (5)

comment:1 Changed 3 years ago by volga629-1

I am trying install

` sudo port install terminator Password: ---> Computing dependencies for terminator The following dependencies will be installed:

py27-notify-python py27-psutil vte-gtk2-compat

`

Version 0, edited 3 years ago by volga629-1 (next)

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: py-notify-python added
Summary: Py Notify faling to installpy27-notify-python build failure

Please attach the main.log.

comment:3 Changed 2 years ago by rpfile

it appears the Makefile for this port is missing -lpython2.7, which is where all those missing symbols live.

Changed 2 years ago by rpfile

Attachment: main.log added

main.log for build

comment:4 Changed 2 years ago by asemmar <anis.semmar-ext@…>

Owner: set to asemmar <anis.semmar-ext@…>
Resolution: fixed
Status: newclosed

In bc9860d942c80a360fbeba823003fad7ec80c365/macports-ports (master):

py-notify-python: fix missing python 2.7 symbols

pkg-config is used to create all the linker flags but misses
'-lpython2.7' which is required to fix the error in the ticket.
It's not possible to change pkg-config output from this port's
context (and dangerous).

It's not possible to patch the generated src/Makefile because
in it are paths relative to a specific MacPorts install.

Appending to the variable in configure is therefore the simplest
solution.

Closes: #65092

Note: See TracTickets for help on using tickets.