[omniORB] posix.cc: pthread * vs. pthread ** build failure with clang 16

Marcin Cieslak saper at saper.info
Wed Nov 29 02:50:31 UTC 2023


On Wed, 29 Nov 2023, Duncan Grisby wrote:

> On Mon, 2023-11-27 at 02:49 +0000, Marcin Cieslak via omniORB-list
> wrote:
>
>> c++ -c -fPIC -O2 -pipe -fstack-protector-strong -fno-strict-
>> aliasing   -Wall -Wno-unused -fexceptions    -I. -I. -
>> I../../../include -I../../../include -D__OSVERSION__=0  -o
>> shared/posix.o posix.cc
>> posix.cc:605:15: error: no matching function for call to
>> 'pthread_detach'
>>          THROW_ERRORS(pthread_detach(&posix_thread));
>>                       ^~~~~~~~~~~~~~
>
> The mk/beforeauto.mk generated by the configure script file should set
> the compiler flags to have the right PthreadDraftVersion. It should be
> 10.

Thank you, this was it.

Looks like one of the patches I mentioned in the email needs to be updated.

This change to configure fixes it:

--- configure.orig	2023-08-28 18:47:18.000000000 +0200
+++ configure	2023-11-29 03:38:47.625635000 +0100
@@ -8544,12 +8544,20 @@
    *-*-irix*)     plat_name="IRIX";     plat_def="__irix__";     os_v="6";;
    *-*-aix*)      plat_name="AIX";      plat_def="__aix__";      os_v="4";;
    *-*-darwin*)   plat_name="Darwin";   plat_def="__darwin__";   os_v="1";;
-  *-*-freebsd3*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="3";;
-  *-*-freebsd4*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="4";;
-  *-*-freebsd5*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="5";;
-  *-*-freebsd6*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="6";;
-  *-*-freebsd7*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="7";;
-  *-*-freebsd8*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="8";;
+  *-*-dragonfly*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="9";;
+  *-*-freebsd3.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="3";;
+  *-*-freebsd4.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="4";;
+  *-*-freebsd5.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="5";;
+  *-*-freebsd6.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="6";;
+  *-*-freebsd7.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="7";;
+  *-*-freebsd8.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="8";;
+  *-*-freebsd9.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="9";;
+  *-*-freebsd10.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="10";;
+  *-*-freebsd11.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="11";;
+  *-*-freebsd12.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="12";;
+  *-*-freebsd13.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="13";;
+  *-*-freebsd14.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="14";;
+  *-*-freebsd15.*) plat_name="FreeBSD";  plat_def="__freebsd__";  os_v="15";;
    *-*-kfreebsd*) plat_name="kFreeBSD";  plat_def="__FreeBSD_kernel__";  os_v="6";;
    *-*-netbsd*)   plat_name="NetBSD";   plat_def="__netbsd__";   os_v="1";;
    *-*-openbsd*)  plat_name="OpenBSD";  plat_def="__openbsd__";  os_v="3";;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3706 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20231129/dd2c3d2a/attachment.p7s>


More information about the omniORB-list mailing list