GNOME Bugzilla – Bug 330707
cvs fails to build -- `PR_SET_NAME' undeclared
Last modified: 2006-02-11 12:31:55 UTC
_osutilsmodule.c: In function `osutils_set_process_name': _osutilsmodule.c:39: error: `PR_SET_NAME' undeclared (first use in this function) _osutilsmodule.c:39: error: (Each undeclared identifier is reported only once _osutilsmodule.c:39: error: for each function it appears in.) make[4]: *** [_osutilsmodule.lo] Error 1 make[4]: Leaving directory `/export/home/b/newrenTemp/gnome/deskbar-applet/deskbar/osutils' I'm on a RHEL4 system compiling from cvs as of today, if that matters.
Hmm, looks like you have the pctrl.h header and function, but not that particular parameter. I assume in the code if HAVE_PCTRL: then use the PR_SET_NAME constant. Can autotools do a more fine tuned check to see if pctrl.h,pctrl(),PR_SET_NAME symbols exists ?
Created attachment 59118 [details] [review] possible fix Elijah, I think this is the right fix, could you please check it for me and report back? It should disable prctl() support on your machine when it discovered the PR_SET_NAME define is unavailable. I had wondered about this define a bit as it is completely undocumented in the manual.
After applying this patch I get: _osutilsmodule.c: In function `osutils_set_process_name': _osutilsmodule.c:45: error: `PyExcPyExc_IOError' undeclared (first use in this function) _osutilsmodule.c:45: error: (Each undeclared identifier is reported only once _osutilsmodule.c:45: error: for each function it appears in.) make[4]: *** [_osutilsmodule.lo] Error 1 make[4]: Leaving directory `/floss/building/gnome/deskbar-applet/deskbar/osutils' If I s/PyExcPyExc_IOError/PyExc_IOError/ in _osutilsmodule.c, then it builds just fine.
Thanks for the patch. It's comitted in HEAD. I also applied elijah's fix.