ardovm commented on PR #174: URL: https://github.com/apache/openoffice/pull/174#issuecomment-1464871841
Thank you for you report! > This is intended as an informative notification, since I have no idea how to actually create a bugzilla account. You could follow the instructions at https://bz.apache.org/ooo/createaccount.cgi or write to the [dev list](https://openoffice.apache.org/mailing-lists.html#development-mailing-list-public) asking for help. > The code being removed here causes a compilation issue on Ubuntu Jammy Jellyfish. (undefined reference to `pthread_mutexattr_setkind_np`) The best I can tell, https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2003146 explains this somewhat. Using `nm` as described on that report, we can demonstrate that symbol `pthread_mutexattr_setkind_np` _is_ still present on other current mainstream distributions: ``` $ lsb_release -d ; nm /usr/lib/x86_64-linux-gnu/libpthread.so.0 | grep pthread_mutexattr_getkind_np Description: Debian GNU/Linux 11 (bullseye) 000000000000ca30 W pthread_mutexattr_getkind_np ``` and ``` $ lsb_release -d ; nm /usr/lib64/libpthread.so | grep pthread_mutexattr_getkind_np Description: openSUSE Leap 15.4 000000000000f5de W pthread_mutexattr_getkind_np ``` On the other hand, applying your patch to AOO41X makes it not compile any more on our (admittedly outdated) Linux reference build systems. (I know you are proposing a patch to trunk, but IMHO it may be worth to look at the bigger picture, if we can) > This workaround likely hasn't been necessary for the past 20 years, if glibc "converted to git" repositories are any indication (see for instance https://github.com/lattera/glibc/blob/d82e4c7bb231c9e0f835bd46467563ac3b56cebe/linuxthreads/sysdeps/pthread/pthread.h ). As explained above, your problems seems to be Ubuntu-specific, at least for now. IMHO we should look for other ways (like `#ifdefs`) to allow compilation on both systems with and without the deprecated symbol. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org