Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656478 - games-strategy/0ad-0.0.23_alpha build failure
Summary: games-strategy/0ad-0.0.23_alpha build failure
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-10-09
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2018-05-25 08:41 UTC by zless
Modified: 2021-02-12 20:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc6 build (0ad-0.0.23_alpha:20180525-063408.log,430.05 KB, text/x-log)
2018-05-25 08:41 UTC, zless
Details
gcc7 build (0ad-0.0.23_alpha:20180525-081818.log,456.69 KB, text/plain)
2018-05-25 08:41 UTC, zless
Details
emerge --info (emerge_info.txt,8.45 KB, text/plain)
2018-05-25 08:42 UTC, zless
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zless 2018-05-25 08:41:05 UTC
Created attachment 533090 [details]
gcc6 build

Hello,

I tried to build 0ad both with gcc6 (the default) and gcc7.

The build logs are attached.
Comment 1 zless 2018-05-25 08:41:48 UTC
Created attachment 533092 [details]
gcc7 build
Comment 2 zless 2018-05-25 08:42:19 UTC
Created attachment 533094 [details]
emerge --info
Comment 3 m.manico 2018-06-02 16:20:52 UTC
Can confirm. Build fails with the same messages:

################################################################################
../../../source/ps/ModIo.cpp:120:113: error: ‘sodium_base64_VARIANT_ORIGINAL’ was not declared in this scope
  if (sodium_base642bin((unsigned char*)&m_pk, sizeof m_pk, pk_str.c_str(), pk_str.size(), NULL, &bin_len, NULL, sodium_base64_VARIANT_ORIGINAL) != 0 || bin_len != sizeof m_pk)
                                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/ps/ModIo.cpp:120:143: error: ‘sodium_base642bin’ was not declared in this scope
  if (sodium_base642bin((unsigned char*)&m_pk, sizeof m_pk, pk_str.c_str(), pk_str.size(), NULL, &bin_len, NULL, sodium_base64_VARIANT_ORIGINAL) != 0 || bin_len != sizeof m_pk)
                                                                                                                                               ^
../../../source/ps/ModIo.cpp: In static member function ‘static bool ModIo::ParseSignature(const std::vector<std::__cxx11::basic_string<char> >&, SigStruct&, const PKStruct&, std::__cxx11::string&)’:
../../../source/ps/ModIo.cpp:777:114: error: ‘sodium_base64_VARIANT_ORIGINAL’ was not declared in this scope
   if (sodium_base642bin((unsigned char*)&sig, sizeof sig, msg_sig.c_str(), msg_sig.size(), NULL, &bin_len, NULL, sodium_base64_VARIANT_ORIGINAL) != 0 || bin_len != sizeof sig)
                                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/ps/ModIo.cpp:777:144: error: ‘sodium_base642bin’ was not declared in this scope
   if (sodium_base642bin((unsigned char*)&sig, sizeof sig, msg_sig.c_str(), msg_sig.size(), NULL, &bin_len, NULL, sodium_base64_VARIANT_ORIGINAL) != 0 || bin_len != sizeof sig)
                                                                                                                                                ^
../../../source/ps/ModIo.cpp:793:121: error: ‘sodium_base64_VARIANT_ORIGINAL’ was not declared in this scope
   if (sodium_base642bin(global_sig, sizeof global_sig, sig_lines[3].c_str(), sig_lines[3].size(), NULL, &bin_len, NULL, sodium_base64_VARIANT_ORIGINAL) != 0 || bin_len != sizeof global_sig)
                                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../source/ps/ModIo.cpp:793:151: error: ‘sodium_base642bin’ was not declared in this scope
 f (sodium_base642bin(global_sig, sizeof global_sig, sig_lines[3].c_str(), sig_lines[3].size(), NULL, &bin_len, NULL, sodium_base64_VARIANT_ORIGINAL) != 0 || bin_len != sizeof global_sig)
################################################################################

Looks like 0ad Alpha 23 depends libsodium 1.0.14 or later.
source:
https://bugs.mageia.org/show_bug.cgi?id=23055

z
Comment 4 m.manico 2018-07-30 22:20:03 UTC
Setting keyword

dev-libs/libsodium ~amd64

allowed me to upgrade to libsoldium version 1.0.14 without conflict.
Now 0AD version 0.0.23_alpha emerges successfully!
Comment 5 zless 2018-08-06 16:40:04 UTC
Unfortunately dev-libs/libsodium is blocked by dev-python/pynacl (ansible dep) at 1.0.11(0/18).