ClickHouse/src
Azat Khuzhin 9b749ae90b Fix undefined __pthread_mutex_lock/unlock for glibc 2.34+/DISABLE_HERMETIC_BUILD
Right now it fails with:

    ld.lld: error: undefined symbol: __pthread_mutex_lock
    >>> referenced by ThreadFuzzer.cpp:300 (./src/Common/ThreadFuzzer.cpp:300)
    >>> src/CMakeFiles/clickhouse_common_io.dir/Common/ThreadFuzzer.cpp.o:(pthread_mutex_lock)
    >>> did you mean: __pthread_mutex_lock@GLIBC_2.2.5
    >>> defined in: /usr/lib/libc.so.6

Here is the list of matched symbols for 2.35:

    $ nm -D /lib/libc.so.6 | fgrep pthread_mutex_lock
    00000000000908a0 T __pthread_mutex_lock@GLIBC_2.2.5
    00000000000908a0 T pthread_mutex_lock@@GLIBC_2.2.5

    $ nm -D /lib/libpthread.so.0 | fgrep -c pthread_mutex_lock
    0

And this is for 2.33:

    $ nm -D /lib/x86_64-linux-gnu/libc.so.6 | fgrep pthread_mutex_lock
    0000000000083eb0 T pthread_mutex_lock@@GLIBC_2.2.5

    $ nm -D /lib/x86_64-linux-gnu/libpthread.so.0 | fgrep pthread_mutex_lock
    000000000000af00 T __pthread_mutex_lock@@GLIBC_2.2.5
    000000000000af00 W pthread_mutex_lock@@GLIBC_2.2.5

Because "likely" starting from 27a448223cb2d3bab191c61303db48cee66f871c
("nptl: Move core mutex functions into libc") [1], __pthread_mutex_lock
is not exported anymore.

  [1]: https://sourceware.org/git/?p=glibc.git;a=commit;h=27a448223cb2d3bab191c61303db48cee66f871c

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-20 22:51:47 +03:00
..
Access Improve restrictive policies without permissive ones: in this case the result filter won't be calculated as False always anymore. 2022-02-17 14:18:15 +07:00
AggregateFunctions Improve ANY performance by acting over batches 2022-02-20 02:43:28 +01:00
Backups Update sort to pdqsort 2022-01-30 19:49:48 +00:00
Bridge
Client Merge pull request #34490 from Avogar/fix-client 2022-02-16 12:39:46 +03:00
Columns return back result_size_hint 2022-02-15 15:12:25 +03:00
Common Fix undefined __pthread_mutex_lock/unlock for glibc 2.34+/DISABLE_HERMETIC_BUILD 2022-02-20 22:51:47 +03:00
Compression Merge branch 'master' into revert-34211-revert-34153-add_func_tests_over_s3 2022-02-08 19:42:27 +03:00
Coordination Merge pull request #34584 from bigo-sg/keerpSnapMemOpt 2022-02-18 10:34:31 +03:00
Core Fix checkOverflow in FunctionDateOrDateTimeAddInterval 2022-02-16 14:30:37 +00:00
Databases Merge branch 'master' into revert-34211-revert-34153-add_func_tests_over_s3 2022-02-13 21:07:54 +03:00
DataTypes Merge pull request #34228 from CurtizJ/fix-subcolumns-with-dots 2022-02-07 19:01:33 +03:00
Dictionaries Improve performance of insert into table functions URL, S3, File, HDFS 2022-02-10 20:06:23 +00:00
Disks Merge pull request #34617 from Algunenano/freebsd_build 2022-02-15 20:12:44 +01:00
Formats Fix style 2022-02-07 18:29:22 +03:00
Functions fix s2 functions having const columns 2022-02-18 22:42:27 -08:00
Interpreters Merge pull request #33057 from azat/jemalloc-dev-branch 2022-02-20 14:19:41 +03:00
IO Merge pull request #34433 from ClickHouse/s3-fix-content-type 2022-02-17 13:11:14 +03:00
Parsers Merge pull request #34596 from vitlibar/allow-restrictive-without-permissive 2022-02-19 21:45:28 +07:00
Processors Merge pull request #34561 from bigo-sg/arrow_type_timestamp 2022-02-17 16:55:17 +03:00
QueryPipeline Merge pull request #34132 from CurtizJ/fix-distributed-inserts 2022-02-09 14:58:44 +03:00
Server Merge pull request #34499 from vitlibar/grpc-send-output-format-back-to-client 2022-02-13 15:34:32 +01:00
Storages Merge pull request #34596 from vitlibar/allow-restrictive-without-permissive 2022-02-19 21:45:28 +07:00
TableFunctions Fix tests 2022-02-15 14:57:38 +03:00
CMakeLists.txt Merge pull request #34226 from vitlibar/add-submodule-minizip 2022-02-08 22:07:34 +07:00
configure_config.cmake Add submodule minizip-ng 2022-02-05 23:45:16 +07:00
NOTICE