Package Details: cpp-netlib 0.13.0-1

Git Clone URL: (read-only, click to copy)
Package Base: cpp-netlib
Description: Cross-platform, standards compliant networking library
Upstream URL:
Keywords: networking
Licenses: custom:BSL
Submitter: ndowens
Maintainer: None
Last Packager: lmartinez-mirror
Votes: 13
Popularity: 0.000000
First Submitted: 2011-01-31 07:26 (UTC)
Last Updated: 2023-03-04 06:39 (UTC)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

cowlicks commented on 2019-09-18 20:20 (UTC)

I was getting this error:

-- Installing: /home/blake/.cache/yay/cpp-netlib/pkg/cpp-netlib/usr/lib/
mv: cannot stat '/home/blake/.cache/yay/cpp-netlib/pkg/cpp-netlib/usr/lib64/*': No such file or directory
==> ERROR: A failure occurred in package().
Error making: cpp-netlib

This is what I did to fix it

diff --git a/PKGBUILD b/PKGBUILD
index 6c55587..2020cad 100644
@@ -49,10 +49,6 @@ package() {
   make install

   install -d ${pkgdir}${_basedir}/lib
-  if test "$CARCH" == x86_64; then
-    mv ${pkgdir}${_basedir}/lib64/* ${pkgdir}${_basedir}/lib
-    rmdir ${pkgdir}${_basedir}/lib64
-  fi
   for _file in $(find ${pkgdir}${_basedir}/lib/cmake/cppnetlib -type f -name "*.cmake");
     sed -i -e "s|${pkgdir}${_basedir}/lib64|${_basedir}/lib|g" $_file

vri commented on 2017-05-28 12:52 (UTC)

Thanks for your comments, updated the PKGBUILD

big_gie commented on 2017-05-25 20:14 (UTC)

I had to uncomment line 40 of the PKGBUILD to use the system `asio` for this to build: ``` diff --git a/PKGBUILD b/PKGBUILD index cb5940d..0273221 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -37,7 +37,7 @@ build() { install -d $srcdir/build cd $srcdir/build # use asio from system -# sed -i -e "s|include_directories(deps/asio/asio/include)||g" $srcdir/$_pkgname-$pkgver-final/CMakeLists.txt + sed -i -e "s|include_directories(deps/asio/asio/include)||g" $srcdir/$_pkgname-$pkgver-final/CMakeLists.txt cmake -DBOOST_ROOT=$_basedir -DCPP-NETLIB_BUILD_TESTS=OFF -DCPP-NETLIB_BUILD_EXAMPLES=OFF -DCPP-NETLIB_BUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=${pkgdir}${_basedir} ../"$_pkgname-$pkgver-final" # cmake -DBOOST_ROOT=$_basedir -DCPP-NETLIB_BUILD_TESTS=ON -DCPP-NETLIB_BUILD_EXAMPLES=ON -DCPP-NETLIB_BUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=${pkgdir}${_basedir} ../"$_pkgname-$pkgver-final" make ``` Else I was hit with many build errors like this one: ``` [ 85%] Building CXX object libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/client.cpp.o cd /home/me/cpp-netlib/src/build/libs/network/src && /usr/bin/c++ -DASIO_HEADER_ONLY -DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_SPIRIT_THREADSAFE -DBOOST_TEST_DYN_LINK -Dcppnetlib_client_connections_EXPORTS -I/home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/deps/asio/asio/include -I/home/me/cpp-netlib/src/cpp-netlib-0.12.0-final -march=native -O2 -pipe -fstack-protector-strong -Wall -std=c++11 -fPIC -o CMakeFiles/cppnetlib-client-connections.dir/client.cpp.o -c /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/libs/network/src/client.cpp In file included from /usr/include/openssl/bio.h:20:0, from /usr/include/openssl/conf.h:13, from /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/deps/asio/asio/include/asio/ssl/detail/openssl_types.hpp:19, from /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/deps/asio/asio/include/asio/ssl/context_base.hpp:19, from /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/deps/asio/asio/include/asio/ssl/context.hpp:23, from /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/deps/asio/asio/include/asio/ssl.hpp:18, from /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/boost/network/protocol/http/client/connection/ssl_delegate.ipp:12, from /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/libs/network/src/client.cpp:16: /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/deps/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp: Dans le constructeur « asio::ssl::detail::openssl_init_base::do_init::do_init() »: /home/me/cpp-netlib/src/cpp-netlib-0.12.0-final/deps/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp:42:23: erreur : expected id-expression before « ( » token mutexes_.resize(::CRYPTO_num_locks()); ```

jtgoguen commented on 2017-03-15 23:08 (UTC)

This needs a makedepends on boost, maybe also boost-libs

maximiliankaul commented on 2017-02-26 17:55 (UTC)

I think `asio` should be in the dependencies of this package. Until 0.13 that is ;)

vri commented on 2015-10-21 06:58 (UTC)

Thanks for the hint; done.

htfy96 commented on 2015-10-21 04:14 (UTC)

I recommend the source should be changed to , because 1) 0.11.2 has been released 2) the official site is more reliable while is blocked in my country :(

vri commented on 2014-12-26 22:10 (UTC)

Updated to 0.11.1

vri commented on 2014-10-29 19:05 (UTC)

@mauritiusdadd: thanks for figuring this out. Updated accordingly.

mauritiusdadd commented on 2014-10-24 16:18 (UTC)

Hi, it seems that the file 'cppnetlibTargets-noconfig.cmake' contains references to the $pkgdir and this makes the cmake find_package function unusable (take a look to this thread in the Arch forum [1]). In order to fix this issue, you may want to add the following code at the end of the package() function for _file in $(find ${pkgdir}/usr/lib/cmake/cppnetlib -type f -name "*.cmake"); do sed -i -e "s|${pkgdir}/usr/lib64|${_basedir}/usr/lib|g" $_file done [1]