Summary: | x11-apps/xdm with sys-devel/gcc-4.8 when dev-libs/libbsd is present - .../work/xdm-1.1.11/xdm/genauth.c:350:5: error: implicit declaration of function ‘arc4random’ [-Werror=implicit-function-declaration] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aleksander <spider.ch> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | candrews, esigra, joakim, rhill, spider.ch, tdalman |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=73326 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 416069 | ||
Bug Blocks: | 260867, 461954 | ||
Attachments: |
build.log
emerge --info build.log_with_V=1 config.log |
Created attachment 351876 [details]
emerge --info
Hmm, it builds fine here, and I can't see where -Werror=implicit-function-declaration comes from. Can you attach a build log with V=1 in MAKEOPTS and config.log from the xdm-1.1.11_build directory? Created attachment 351974 [details]
build.log_with_V=1
Created attachment 351976 [details]
config.log
Added build log with V=1 in MAKEOPTS and config.log -Werror=implicit implies -Werror=implicit-function-declaration and that's getting added by xorg-macros.m4. X11 guys, please add --disable-selective-werror to your configure options. Building with -Werror is against our policies. Feel free to fix the underlying problem of course. I can't reproduce this bug. If it is a Werror problem, this bug should be marked RESOLVED INVALID, right ? No, I can't reproduce it either, but it doesn't matter. People are hitting it. I think I've found the solution. Create file: /etc/portage/env/xdm_no_error.conf With: CFLAGS="${CFLAGS} -Wno-all" In it. Then, add: x11-apps/xdm xdm_no_error.conf into file: /etc/portage/package.env After that xdm should build successfully. Maybe that ugly solution, but at least now i can build xdm. The problem does only manifest if libbsd is installed, because arc4random (and setproctitle too) are used without proper #include directives. xdm does not attempt to use arc4random if libbsd is not installed on Linux systems. Patch was applied to 1.1.11-r3 and also sent upstream. |
Created attachment 351874 [details] build.log Cannot build x11-apps/xdm(1.1.11-r1 1.1.11-r2) with sys-devel/gcc(4.8.0 4.8.1).