Summary: | x11-apps/luit-1.1.1 fails to compile (error: implicit declaration of function ‘posix_openpt’ [-Werror=implicit-function-declaration]) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kacper Kowalik (Xarthisius) (RETIRED) <xarthisius> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | crabbedhaloablution, esigra, jer, shentino |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=47792 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 416069 | ||
Bug Blocks: | 260867, 461954 | ||
Attachments: | build.log |
Description
Kacper Kowalik (Xarthisius) (RETIRED)
2012-05-14 14:42:31 UTC
sys.c has both stdlib.h and fnctl.h in #include, as well as config.h see, man 3 posix_openpt i'm unsure about correct fix :/ --- configure.ac.orig 2012-05-16 13:12:50.315000286 +0200 +++ configure.ac 2012-05-16 13:13:15.578000822 +0200 @@ -62,7 +62,7 @@ linux*) AC_CHECK_HEADERS([poll.h]) AC_CHECK_FUNCS([poll]) - OS_CFLAGS="-D_XOPEN_SOURCE=500" + OS_CFLAGS="-D_XOPEN_SOURCE=600" # posix_openpt(): _XOPEN_SOURCE >= 600 ;; *) AC_CHECK_HEADERS([poll.h]) I would also suggest passing the following configure flag: --disable-selective-werror Turn off selective compiler errors. (default: enabled) Build fails with gcc 4.8 with no extra cflags. Patch fixes it. luit should depend on x11-misc/util-macros because it is required for running aclocal when there is a patch. *** Bug 463666 has been marked as a duplicate of this bug. *** The build problem is fixed now. The -Werror=... issue should probably go into a separate bug report. |