Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633468 - dev-libs/botan-2.3.0 : ./.../openssl_mode.cpp:93:17: error: INT_MAX was not declared in this scope
Summary: dev-libs/botan-2.3.0 : ./.../openssl_mode.cpp:93:17: error: INT_MAX was not d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jack Lloyd
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-10-04 17:34 UTC by Toralf Förster
Modified: 2017-10-04 19:25 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.67 KB, text/plain)
2017-10-04 17:34 UTC, Toralf Förster
Details
dev-libs:botan-2.3.0:20171004-091123.log (dev-libs:botan-2.3.0:20171004-091123.log,81.91 KB, text/plain)
2017-10-04 17:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,465.88 KB, text/plain)
2017-10-04 17:34 UTC, Toralf Förster
Details
environment (environment,92.49 KB, text/plain)
2017-10-04 17:34 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,51.69 KB, application/x-bzip)
2017-10-04 17:34 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.40 KB, application/x-bzip)
2017-10-04 17:34 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-10-04 17:34:30 UTC
x86_64-pc-linux-gnu-g++ -pthread -fPIC -fvisibility=hidden -std=c++11 -D_REENTRANT -Werror=terminate -O2 -pipe -march=native -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor -Ibuild/include -Ibuild/include/external -c ./src/lib/prov/openssl/openssl_mode.cpp -o build/obj/lib/prov_openssl_mode.o
./src/lib/prov/openssl/openssl_mode.cpp: In member function ‘virtual std::size_t Botan::{anonymous}::OpenSSL_Cipher_Mode::process(uint8_t*, std::size_t)’:
./src/lib/prov/openssl/openssl_mode.cpp:93:17: error: ‘INT_MAX’ was not declared in this scope
    if(msg_len > INT_MAX)
                 ^~~~~~~
make: *** [Makefile:1073: build/obj/lib/prov_openssl_mode.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_libressl_20170914-215948

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 7.2.6.11 [icedtea-7]
2)	IcedTea JDK 7.2.6.11 [icedtea-bin-7]
3)	IcedTea JDK 3.5.1 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-7  system-vm
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8 

emerge -qpv dev-libs/botan
[ebuild  NS   ] dev-libs/botan-2.3.0 [1.10.16] USE="bzip2 libressl ssl zlib -bindist -boost -doc -lzma -python -sqlite -static-libs" PYTHON_TARGETS="python2_7 python3_4 -python3_5 -python3_6"
Comment 1 Toralf Förster gentoo-dev 2017-10-04 17:34:33 UTC
Created attachment 497616 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-10-04 17:34:36 UTC
Created attachment 497618 [details]
dev-libs:botan-2.3.0:20171004-091123.log
Comment 3 Toralf Förster gentoo-dev 2017-10-04 17:34:39 UTC
Created attachment 497620 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-10-04 17:34:42 UTC
Created attachment 497622 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-10-04 17:34:45 UTC
Created attachment 497624 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-10-04 17:34:48 UTC
Created attachment 497626 [details]
temp.tbz2
Comment 7 Jack Lloyd 2017-10-04 18:00:54 UTC
Thanks. Fixed upstream.

https://github.com/randombit/botan/commit/9e28eac720176ecb9b784510d352aa0ac38d0b56

Strange this didn't manifest on Arch or Ubuntu.
Comment 8 Toralf Förster gentoo-dev 2017-10-04 18:20:49 UTC
(In reply to Jack Lloyd from comment #7)
Maybe due to gcc-6 being used ?
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2017-10-04 18:57:09 UTC
Thanks!
Comment 10 Jack Lloyd 2017-10-04 19:25:52 UTC
Maybe, I mostly test on 4.8 and 7 so if there was some intermediate shuffling of included headers in GCC 5 or 6 libstdc++'s it might have been missed.