Skip to content

Build error in arch linux #7

Description

@ed29

OS:Arch linux

Build log:

[ed@desktopserver build]$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- 64 bits compiler detected
-- DATA_MODEL is not set. Use platform 64
-- DATA_MODEL = 64
-- PRODUCTION = OFF
-- BUILD_TESTS = ON
-- BUILD_TOOLS = ON
-- BUILD_SHARED = OFF
-- DHT = enabled
-- DHT_VERBOSE = OFF
-- UPNP_VERBOSE = OFF
-- C++ compiler version: 2.1.0 [/usr/bin/c++]
-- Found Boost: /usr/lib64/cmake/Boost-1.78.0/BoostConfig.cmake (found suitable version "1.78.0", minimum required is "1.40") found components: system thread random date_time unit_test_framework unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ed/libed2k/build
[ed@desktopserver build]$ sudo make
[ 1%] Building CXX object CMakeFiles/ed2k.dir/src/ConvertUTF.cpp.o
[ 2%] Building CXX object CMakeFiles/ed2k.dir/src/add_transfer_params.cpp.o
在從下述位置 include 的檔案: /home/ed/libed2k/include/libed2k/escape_string.hpp:41,
來自 /home/ed/libed2k/include/libed2k/peer_id.hpp:45,
來自 /home/ed/libed2k/include/libed2k/hasher.hpp:6,
來自 /home/ed/libed2k/include/libed2k/add_transfer_params.hpp:4,
來自 /home/ed/libed2k/src/add_transfer_params.cpp:1:
/home/ed/libed2k/include/libed2k/error_code.hpp: 在函式 「const boost::system::error_category& libed2k::get_system_category()」 中:
/home/ed/libed2k/include/libed2k/error_code.hpp:174:29: 錯誤:「get_system_category」 is not a member of 「boost::system」; did you mean 「system_category」?
174 | { return boost::system::get_system_category(); }
| ^~~~~~~~~~~~~~~~~~~
| system_category
/home/ed/libed2k/include/libed2k/error_code.hpp: 在函式 「const boost::system::error_category& libed2k::get_posix_category()」 中:
/home/ed/libed2k/include/libed2k/error_code.hpp:181:29: 錯誤:「get_generic_category」 is not a member of 「boost::system」; did you mean 「generic_category」?
181 | { return boost::system::get_generic_category(); }
| ^~~~~~~~~~~~~~~~~~~~
| generic_category
在從下述位置 include 的檔案: /home/ed/libed2k/include/boost/logging/detail/tss/tss_impl.hpp:54,
來自 /home/ed/libed2k/include/boost/logging/detail/tss/tss.hpp:30,
來自 /home/ed/libed2k/include/boost/logging/detail/ts/ts_resource.hpp:25,
來自 /home/ed/libed2k/include/boost/logging/detail/fwd.hpp:31,
來自 /home/ed/libed2k/include/boost/logging/logging.hpp:24,
來自 /home/ed/libed2k/include/boost/logging/detail/format_fwd_detail.hpp:24,
來自 /home/ed/libed2k/include/boost/logging/format_fwd.hpp:25,
來自 /home/ed/libed2k/include/libed2k/log.hpp:6,
來自 /home/ed/libed2k/src/add_transfer_params.cpp:2:
/home/ed/libed2k/include/boost/logging/detail/tss/tss_impl_pthread.hpp: 在函式 「boost::logging::detail::tss_libed2k_pods* boost::logging::detail::get_libed2k_pods()」 中:
/home/ed/libed2k/include/boost/logging/detail/tss/tss_impl_pthread.hpp:42:14: 警告:「template class std::auto_ptr」 is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
42 | std::auto_ptr<tss_libed2k_pods> temp( new_object_ensure_delete<tss_libed2k_pods>() );
| ^~~~~~~~
在從下述位置 include 的檔案: /usr/include/c++/12.1.0/memory:76,
來自 /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:35,
來自 /usr/include/boost/smart_ptr/detail/shared_count.hpp:27,
來自 /usr/include/boost/smart_ptr/shared_ptr.hpp:17,
來自 /usr/include/boost/shared_ptr.hpp:17,
來自 /home/ed/libed2k/include/libed2k/error_code.hpp:6:
/usr/include/c++/12.1.0/bits/unique_ptr.h:64:28: 附註:在此声明
64 | template class auto_ptr;
| ^~~~~~~~
make[2]: *** [CMakeFiles/ed2k.dir/build.make:90:CMakeFiles/ed2k.dir/src/add_transfer_params.cpp.o] 錯誤 1
make[1]: *** [CMakeFiles/Makefile2:91:CMakeFiles/ed2k.dir/all] 錯誤 2
make: *** [Makefile:91:all] 錯誤 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions