file included from /usr/src/RPM/BUILD/clickhouse-19.13.1.11/dbms/src/Common/new_delete.cpp:4:
/usr/src/RPM/BUILD/clickhouse-19.13.1.11/libs/libcommon/include/common/memory.h: In function 'void* Memory::newImpl(std::size_t)':
/usr/src/RPM/BUILD/clickhouse-19.13.1.11/libs/libcommon/include/common/memory.h:28:18: error: 'malloc' was not declared in this scope
auto * ptr = malloc(size);
^~~~~~
/usr/src/RPM/BUILD/clickhouse-19.13.1.11/libs/libcommon/include/common/memory.h:28:18: note: 'malloc' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
/usr/src/RPM/BUILD/clickhouse-19.13.1.11/libs/libcommon/include/common/memory.h:5:1:
+#include <cstdlib>
/usr/src/RPM/BUILD/clickhouse-19.13.1.11/libs/libcommon/include/common/memory.h:28:18:
auto * ptr = malloc(size);
^~~~~~
/usr/src/RPM/BUILD/clickhouse-19.13.1.11/libs/libcommon/include/common/memory.h: In function 'void* Memory::newNoExept(std::size_t)':
/usr/src/RPM/BUILD/clickhouse-19.13.1.11/libs/libcommon/include/common/memory.h:38:12: error: 'malloc' was not declared in this scope
return malloc(size);
в issue желательно. а каике параметры cmake ?
уже исправлено - https://github.com/yandex/ClickHouse/commit/f63f763c3ea7cd853fdebe8f89d5f5bff9cc757e
Обсуждают сегодня