Package Details: lime-git 5.0.0.alpha.r5.g446599d-1

Git Clone URL: https://aur.archlinux.org/lime-git.git (read-only, click to copy)
Package Base: lime-git
Description: C++ library implementing Open Whisper System Signal protocol
Upstream URL: http://www.linphone.org/
Licenses: GPL
Conflicts: lime
Provides: lime=5.0.0.alpha.r5.g446599d
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 1
Popularity: 0.54
First Submitted: 2019-01-12 22:43
Last Updated: 2021-06-30 20:31

Dependencies (4)

Required by (2)

Sources (1)

Latest Comments

1 2 Next › Last »

reclusivesage commented on 2021-06-30 21:43

Thank you, I've installed lime-git now.

I'm not sure if this is necessary, but I've saved (most of) the verbose output of VERBOSE=1 makepkg-si (except for the parts I'm sure are perfectly usual): https://bin.httpjames.space/?7813941aa2429796#Cre3CN4oe6G2qwqacQyDVK7xyLwGvuqqmaMHbxJb3hEG

(I used PrivateBin because I felt that the output was much too long for a comment.)

thrasibule commented on 2021-06-30 20:39

I don't see anything that should cause this issue. I've pushed a new version that disables an error, that might fix it. Can you run it like so: VERBOSE=1 makepkg, that way it will show the actual command line used for the compilation.

reclusivesage commented on 2021-06-30 19:07

In /etc/makepkg.conf, I have CPPFLAGS and CXXFLAGS commented out:

#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"
#CXXFLAGS=""

thrasibule commented on 2021-06-30 17:12

What do you have in CPPFLAGS and CXXFLAGS in you makepkg.conf?

reclusivesage commented on 2021-06-30 05:03

Thank you - now soci-git is recognized. Unfortunately, I have encountered another problem when installing lime-git (with Manjaro Unstable again).

Do I need libmysqlclient and/or instantclient-basic (which are optional dependencies of soci/soci-git)?

I believe I'm getting the same error with either soci or soci-git, and it doesn't look like any error mentioned so far in lime or lime-git.

The following is the output of the error (since I wanted to show that soci was missing some mysql plugin):

==> Starting build()...
-- The CXX compiler identification is GNU 11.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting install rpath to /usr/lib
-- Soci found: Looking for plugins
--     * Plugin mysql not found.
--     * Plugin sqlite3 found /usr/lib/libsoci_sqlite3.so.
-- Found Soci: /usr/include  
-- Support Curve 25519
-- Support Curve 448
-- Configuring done
-- Generating done
-- Build files have been written to: /home/uSER/AUR/lime-git/src/build
make: Entering directory '/home/uSER/AUR/lime-git/src/build'
make[1]: Entering directory '/home/uSER/AUR/lime-git/src/build'
make[2]: Entering directory '/home/uSER/AUR/lime-git/src/build'
make[2]: Leaving directory '/home/uSER/AUR/lime-git/src/build'
make[2]: Entering directory '/home/uSER/AUR/lime-git/src/build'
[ 11%] Building CXX object src/CMakeFiles/lime.dir/lime.cpp.o
[ 22%] Building CXX object src/CMakeFiles/lime.dir/lime_crypto_primitives.cpp.o
[ 33%] Building CXX object src/CMakeFiles/lime.dir/lime_x3dh.cpp.o
[ 44%] Building CXX object src/CMakeFiles/lime.dir/lime_localStorage.cpp.o
[ 55%] Building CXX object src/CMakeFiles/lime.dir/lime_double_ratchet.cpp.o
[ 66%] Building CXX object src/CMakeFiles/lime.dir/lime_double_ratchet_protocol.cpp.o
[ 77%] Building CXX object src/CMakeFiles/lime.dir/lime_manager.cpp.o
[ 88%] Building CXX object src/CMakeFiles/lime.dir/lime_x3dh_protocol.cpp.o
/home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp: In function ‘void lime::HMAC_KDF(const uint8_t*, size_t, const uint8_t*, size_t, const infoType&, uint8_t*, size_t) [with hashAlgo = lime::SHA512; infoType = std::vector<unsigned char>]’:
/home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp:375:23: error: ‘prk’ may be used uninitialized [-Werror=maybe-uninitialized]
  375 |         HMAC<hashAlgo>(salt, saltSize, ikm, ikmSize, prk.data(), prk.size());
      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11.1.0/tuple:39,
                 from /usr/include/c++/11.1.0/bits/unique_ptr.h:37,
                 from /usr/include/c++/11.1.0/memory:76,
                 from /home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.hpp:23,
                 from /home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp:20:
/usr/include/c++/11.1.0/array:176:7: note: by argument 1 of type ‘const std::array<unsigned char, 64>*’ to ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = unsigned char; long unsigned int _Nm = 64]’ declared here
  176 |       size() const noexcept { return _Nm; }
      |       ^~~~
/home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp:373:48: note: ‘prk’ declared here
  373 |         std::array<uint8_t, hashAlgo::ssize()> prk; // hold the output of pre-computation
      |                                                ^~~
/home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp: In function ‘void lime::HMAC_KDF(const uint8_t*, size_t, const uint8_t*, size_t, const infoType&, uint8_t*, size_t) [with hashAlgo = lime::SHA512; infoType = std::__cxx11::basic_string<char>]’:
/home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp:375:23: error: ‘prk’ may be used uninitialized [-Werror=maybe-uninitialized]
  375 |         HMAC<hashAlgo>(salt, saltSize, ikm, ikmSize, prk.data(), prk.size());
      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11.1.0/tuple:39,
                 from /usr/include/c++/11.1.0/bits/unique_ptr.h:37,
                 from /usr/include/c++/11.1.0/memory:76,
                 from /home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.hpp:23,
                 from /home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp:20:
/usr/include/c++/11.1.0/array:176:7: note: by argument 1 of type ‘const std::array<unsigned char, 64>*’ to ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = unsigned char; long unsigned int _Nm = 64]’ declared here
  176 |       size() const noexcept { return _Nm; }
      |       ^~~~
/home/uSER/AUR/lime-git/src/lime/src/lime_crypto_primitives.cpp:373:48: note: ‘prk’ declared here
  373 |         std::array<uint8_t, hashAlgo::ssize()> prk; // hold the output of pre-computation
      |                                                ^~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/lime.dir/build.make:90: src/CMakeFiles/lime.dir/lime_crypto_primitives.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp: In function ‘void lime::KDF_RK(lime::DRChainKey&, lime::DRChainKey&, const lime::X<Curve, lime::Xtype::sharedSecret>&) [with Curve = lime::C255]’:
/home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp:51:33: error: ‘HKDFoutput’ may be used uninitialized [-Werror=maybe-uninitialized]
   51 |                 HMAC_KDF<SHA512>(RK.data(), RK.size(), dh_out.data(), dh_out.size(), lime::settings::hkdf_DRChainKey_info, HKDFoutput.data(), HKDFoutput.size());
      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.hpp:22,
                 from /home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp:21:
/usr/include/c++/11.1.0/array:176:7: note: by argument 1 of type ‘const std::array<unsigned char, 64>*’ to ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = unsigned char; long unsigned int _Nm = 64]’ declared here
  176 |       size() const noexcept { return _Nm; }
      |       ^~~~
/home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp:50:65: note: ‘HKDFoutput’ declared here
   50 |                 lime::sBuffer<2*lime::settings::DRChainKeySize> HKDFoutput;
      |                                                                 ^~~~~~~~~~
/home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp: In function ‘void lime::KDF_RK(lime::DRChainKey&, lime::DRChainKey&, const lime::X<Curve, lime::Xtype::sharedSecret>&) [with Curve = lime::C448]’:
/home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp:51:33: error: ‘HKDFoutput’ may be used uninitialized [-Werror=maybe-uninitialized]
   51 |                 HMAC_KDF<SHA512>(RK.data(), RK.size(), dh_out.data(), dh_out.size(), lime::settings::hkdf_DRChainKey_info, HKDFoutput.data(), HKDFoutput.size());
      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.hpp:22,
                 from /home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp:21:
/usr/include/c++/11.1.0/array:176:7: note: by argument 1 of type ‘const std::array<unsigned char, 64>*’ to ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = unsigned char; long unsigned int _Nm = 64]’ declared here
  176 |       size() const noexcept { return _Nm; }
      |       ^~~~
/home/uSER/AUR/lime-git/src/lime/src/lime_double_ratchet.cpp:50:65: note: ‘HKDFoutput’ declared here
   50 |                 lime::sBuffer<2*lime::settings::DRChainKeySize> HKDFoutput;
      |                                                                 ^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/lime.dir/build.make:146: src/CMakeFiles/lime.dir/lime_double_ratchet.cpp.o] Error 1
make[2]: Leaving directory '/home/uSER/AUR/lime-git/src/build'
make[1]: *** [CMakeFiles/Makefile2:116: src/CMakeFiles/lime.dir/all] Error 2
make[1]: Leaving directory '/home/uSER/AUR/lime-git/src/build'
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/home/uSER/AUR/lime-git/src/build'
==> ERROR: A failure occurred in build().
    Aborting...

thrasibule commented on 2021-06-30 02:29

I've fixed the soci-git package (the generated version had a v at the beginning, which broke the ordering). However you should probably just use the regular soci package, there is no benefit in using the git version for lime-git.

reclusivesage commented on 2021-06-28 21:11

So I installed soci-git just fine, but then when I installed lime-git, I received a Pacman error that shows Pacman thinks the Git version soci-git is incompatible with the "regular" soci version:

$ makepkg -si 
==> Making package: lime-git 5.0.0.alpha.r5.g446599d-1 (Mon 28 Jun 2021 05:03:57 PM EDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for USER: 
error: target not found: soci>=4.0.0
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> soci>=4.0.0
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

Is it true that soci-git cannot be used to install lime-git?

Manifest0 commented on 2020-12-17 22:53

@zsolta-donca

please rebuild soci with option "-DSOCI_CXX11=ON" on the cmake:

https://github.com/SOCI/soci/issues/792

I added a comment in the soci-git for the pkgbuild to be updated.

zsolt-donca commented on 2020-12-14 12:18

This package and the related package lime fail to build for me:

[ 11%] Building CXX object src/CMakeFiles/lime.dir/lime.cpp.o
In file included from /usr/include/soci/soci.h:12,
                 from /home/zdonca/.cache/yay/lime-git/src/lime/src/lime_localStorage.hpp:23,
                 from /home/zdonca/.cache/yay/lime-git/src/lime/src/lime_impl.hpp:31,
                 from /home/zdonca/.cache/yay/lime-git/src/lime/src/lime.cpp:22:
/usr/include/soci/soci-platform.h:146:10: error: #error "SOCI must be configured with C++11 support when using C++11"
  146 |         #error "SOCI must be configured with C++11 support when using C++11"
      |          ^~~~~
make[2]: *** [src/CMakeFiles/lime.dir/build.make:82: src/CMakeFiles/lime.dir/lime.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:134: src/CMakeFiles/lime.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: lime-git

Any ideas on how to fix this?

postfinem commented on 2020-07-25 03:07

I get
```
/home/user/downloads/aur/lime-git/src/lime/src/lime_crypto_primitives.cpp:22:10: fatal error: bctoolbox/crypto.hh: No such file or directory
22 | #include "bctoolbox/crypto.hh"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/lime.dir/build.make:95: src/CMakeFiles/lime.dir/lime_crypto_primitives.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:162: src/CMakeFiles/lime.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
```