333.i2p

Форум, посвященный разработке и поддержке i2pd
Cannot build I2Pd 2.18.0 wih Selfrando « Книга жалоб и предложений « Разработка i2pd
 
Sat, 16 Jun 2018, 09:38am #1
hisfrado
Участник
Registered: June 2018
Последний раз: Sat, 16 Jun 2018
Сообщения: 1

Here is my build recipe:

# Prepare I2Pd prefix (on Ubuntu x86_64, 16.04)
export I2PD_PREFIX="/opt/i2pd-libressl-selfrando"
sudo mkdir "$I2PD_PREFIX"
sudo chown -R $USER:$USER "$I2PD_PREFIX"

# Build LibreSSL 2.7.4 (using build-essential)
./configure --prefix=$I2PD_PREFIX
make test
make install

# Build Selfrando 0.4.2
# ... https://github.com/immunant/selfrando
# Don't forget CMAKE_INSTALL_PREFIX !

# Install remaining -dev headers
# ... don't install libssl-dev

# Build I2Pd 2.18.0
cd build
export CMAKE_PREFIX_PATH="$I2PD_PREFIX:$PATH"
export CC=gcc
export CXX=g++
export CPPFLAGS="-std=c++11"
export LDFLAGS="-L$I2PD_PREFIX/lib -Wl,-rpath $I2PD_PREFIX/lib"

cmake -DCMAKE_BUILD_TYPE=ReleaseMinSize -DWITH_HARDENING=ON -DWITH_ADDRSANITIZER=ON -DCMAKE_INSTALL_PREFIX="$I2PD_PREFIX" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS" -DCMAKE_CXX_FLAGS="$CPPFLAGS"

~/Downloads/selfrando-tb-v0.4.2/Tools/Wrappers/srenv make

# make install links i2pd again... so don't do that
cp i2pd /opt/i2pd-libressl-selfrando/

At this step: (~/Downloads/selfrando-tb-v0.4.2/Tools/Wrappers/srenv make)
The target `i2pd` cannot be linked. The linker generates 25 MiB of error messages, saying there is a problem with the Boost library. Here are the last few lines of them:

`_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEC1ERKS6_NS6_9clone_tagE$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEC1ERKS6_NS6_9clone_tagE[_ZN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEC1ERKS6_NS6_9clone_tagE]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZNSt14_Sp_ebo_helperILi0ESaIN3i2p3log6LogMsgEELb1EE6_S_getERS4_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZNSt14_Sp_ebo_helperILi0ESaIN3i2p3log6LogMsgEELb1EE6_S_getERS4_[_ZNSt14_Sp_ebo_helperILi0ESaIN3i2p3log6LogMsgEELb1EE6_S_getERS4_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZN3i2p3log6LogMsgD2Ev$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZN3i2p3log6LogMsgD2Ev[_ZN3i2p3log6LogMsgD5Ev]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZN3i2p3log6LogMsgD1Ev$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZN3i2p3log6LogMsgD2Ev[_ZN3i2p3log6LogMsgD5Ev]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZN9__gnu_cxx13new_allocatorIN3i2p3log6LogMsgEE7destroyIS3_EEvPT_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZN9__gnu_cxx13new_allocatorIN3i2p3log6LogMsgEE7destroyIS3_EEvPT_[_ZN9__gnu_cxx13new_allocatorIN3i2p3log6LogMsgEE7destroyIS3_EEvPT_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZNSt14_Sp_ebo_helperILi0ESaIN3i2p6client19I2PTunnelConnectionEELb1EE6_S_getERS4_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZNSt14_Sp_ebo_helperILi0ESaIN3i2p6client19I2PTunnelConnectionEELb1EE6_S_getERS4_[_ZNSt14_Sp_ebo_helperILi0ESaIN3i2p6client19I2PTunnelConnectionEELb1EE6_S_getERS4_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZN9__gnu_cxx13new_allocatorIN3i2p6client19I2PTunnelConnectionEE7destroyIS3_EEvPT_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZN9__gnu_cxx13new_allocatorIN3i2p6client19I2PTunnelConnectionEE7destroyIS3_EEvPT_[_ZN9__gnu_cxx13new_allocatorIN3i2p6client19I2PTunnelConnectionEE7destroyIS3_EEvPT_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZNSt14_Sp_ebo_helperILi0ESaIN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_21stream_socket_serviceIS4_EEEEELb1EE6_S_getERS9_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZNSt14_Sp_ebo_helperILi0ESaIN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_21stream_socket_serviceIS4_EEEEELb1EE6_S_getERS9_[_ZNSt14_Sp_ebo_helperILi0ESaIN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_21stream_socket_serviceIS4_EEEEELb1EE6_S_getERS9_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZN9__gnu_cxx13new_allocatorIN5boost4asio19basic_stream_socketINS2_2ip3tcpENS2_21stream_socket_serviceIS5_EEEEE7destroyIS8_EEvPT_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZN9__gnu_cxx13new_allocatorIN5boost4asio19basic_stream_socketINS2_2ip3tcpENS2_21stream_socket_serviceIS5_EEEEE7destroyIS8_EEvPT_[_ZN9__gnu_cxx13new_allocatorIN5boost4asio19basic_stream_socketINS2_2ip3tcpENS2_21stream_socket_serviceIS5_EEEEE7destroyIS8_EEvPT_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZSt16forward_as_tupleIJEESt5tupleIJDpOT_EES3_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZSt16forward_as_tupleIJEESt5tupleIJDpOT_EES3_[_ZSt16forward_as_tupleIJEESt5tupleIJDpOT_EES3_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
`_ZSt16forward_as_tupleIIEESt5tupleIIDpOT_EES3_$orig$local' referenced in section `.textramp' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB): defined in discarded section `.text._ZSt16forward_as_tupleIJEESt5tupleIJDpOT_EES3_[_ZSt16forward_as_tupleIJEESt5tupleIJDpOT_EES3_]' of /tmp/traparchive-GQ8UbSwkYZ(traplink-Kn6RWJfjaB)
Linker execution failed, status: 1
collect2: error: ld returned 1 exit status
CMakeFiles/i2pd.dir/build.make:234: recipe for target 'i2pd' failed
make[2]: *** [i2pd] Error 1
CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/i2pd.dir/all' failed
make[1]: *** [CMakeFiles/i2pd.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Offline