Re: Coin4 build failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 07.08.20 02:58, Richard Shaw wrote:
> While trying to update the spec for the CMake change I ran into this
> for the first time:
>
> cd /builddir/build/BUILD/coin-6enkw/x86_64-redhat-linux-gnu/src/base
> && /usr/bin/g++
>  -I/builddir/build/BUILD/coin-6enkw/x86_64-redhat-linux-gnu/data
> -I/builddir/build/BUILD/coin-6enkw/include/Inventor/annex
> -I/builddir/build/BUILD/coin-6enkw/src
> -I/builddir/build/BUILD/coin-6enkw/x86_64-redhat-linux-gnu/src
> -I/builddir/build/BUILD/coin-6enkw/include
> -I/builddir/build/BUILD/coin-6enkw/x86_64-redhat-linux-gnu/include -O2
> -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1
>  -m64 -mtune=generic -fasynchronous-unwind-tables
> -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC
> -DHAVE_CONFIG_H -DCOIN_INTERNAL -DCOIN_DEBUG=0 -o
> CMakeFiles/base.dir/dict.cpp.o -c
> /builddir/build/BUILD/coin-6enkw/src/base/dict.cpp
> /builddir/build/BUILD/coin-6enkw/src/xml/expat/xmlparse.c:94:3: error:
> #error You do not have support for any sources of high quality entropy
> enabled. For end user security, that is probably not what you want.
> Your options include: * Linux + glibc >=2.25 (getrandom):
> HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall SYS_getrandom):
> HAVE_SYSCALL_GETRANDOM, * BSD / macOS >=10.7 (arc4random_buf):
> HAVE_ARC4RANDOM_BUF, * BSD / macOS <10.7 (arc4random):
> HAVE_ARC4RANDOM, * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF +
> HAVE_LIBBSD, * libbsd (arc4random): HAVE_ARC4RANDOM + HAVE_LIBBSD, *
> Linux / BSD / macOS (/dev/urandom): XML_DEV_URANDOM * Windows
> (RtlGenRandom): _WIN32. If insist on not using any of these, bypass
> this error by defining XML_POOR_ENTROPY; you have been warned. If you
> have reasons to patch this detection code away or need changes to the
> build system, please open a bug. Thank you!
>    94 | # error  \
>       |   ^~~~~
>
> Thoughts?
>
A longer pat of the source would be help, cause #error is commonly used
to describe a problem
detected by the compiler during complie time like here:


https://docs.microsoft.com/en-us/cpp/preprocessor/hash-error-directive-c-cpp?view=vs-2019

|#if !defined(__cplusplus) #error C++ compiler required. #endif |

Not  recommended, but often seen....

The error text in this case is

You do not have support for any sources of high quality entropy enabled.
For end user security, that is probably not what you want. Your options
include: * Linux + glibc >=2.25 (getrandom): HAVE_GETRANDOM, * Linux +
glibc <2.25 (syscall SYS_getrandom): HAVE_SYSCALL_GETRANDOM, * BSD /
macOS >=10.7 (arc4random_buf): HAVE_ARC4RANDOM_BUF, * BSD / macOS <10.7
(arc4random): HAVE_ARC4RANDOM, * libbsd (arc4random_buf):

If insist on not using any of these, bypass this error by defining
XML_POOR_ENTROPY; you have been warned. If you have reasons to patch
this detection code away or need changes to the build system, please
open a bug. Thank you!

You can bypass this by using

CXXFLGS="-DXML_POOR_ENTROPY=1"


but you should reinspect the osusres to use a better random seed.

so long
MUFTI
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux