+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=311 WRKLOG=/tmp/bulklog/py311-syslog-ng-3.38.1nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=311 WRKLOG=/tmp/bulklog/py311-syslog-ng-3.38.1nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for py311-syslog-ng-3.38.1nb1
  CC       modules/python/compat/libmod_python_la-compat-python.lo
In file included from modules/python/compat/compat-python.c:24:
./modules/python/python-module.h:62:2: error: #error "_POSIX_C_SOURCE or _XOPEN_SOURCE is already defined, python-module.h should be included first. Check out the comment in python-module.h for more information"
   62 | #error "_POSIX_C_SOURCE or _XOPEN_SOURCE is already defined, python-module.h should be included first. Check out the comment in python-module.h for more information"
      |  ^~~~~
In file included from modules/python/compat/compat-python.c:31:
modules/python/compat/compat-python-v3.c: In function '_set_python_home':
modules/python/compat/compat-python-v3.c:32:3: warning: 'Py_SetPythonHome' is deprecated [-Wdeprecated-declarations]
   32 |   Py_SetPythonHome(Py_DecodeLocale(python_home, NULL));
      |   ^~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/sysutils/py-syslog-ng/work/.buildlink/include/python3.11/Python.h:94,
                 from ./modules/python/compat/compat-python.h:29,
                 from ./modules/python/python-module.h:65:
/home/pbulk/build/sysutils/py-syslog-ng/work/.buildlink/include/python3.11/pylifecycle.h:40:38: note: declared here
   40 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~
modules/python/compat/compat-python-v3.c: In function 'py_init_argv':
modules/python/compat/compat-python-v3.c:55:3: warning: 'PySys_SetArgvEx' is deprecated [-Wdeprecated-declarations]
   55 |   PySys_SetArgvEx(1, argv, 0);
      |   ^~~~~~~~~~~~~~~
In file included from /home/pbulk/build/sysutils/py-syslog-ng/work/.buildlink/include/python3.11/Python.h:96:
/home/pbulk/build/sysutils/py-syslog-ng/work/.buildlink/include/python3.11/sysmodule.h:14:38: note: declared here
   14 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
      |                                      ^~~~~~~~~~~~~~~
gmake: *** [Makefile:20199: modules/python/compat/libmod_python_la-compat-python.lo] Error 1
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/py-syslog-ng
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/py-syslog-ng