| Summary: | xfree-4.3.0-r5 compile error during emerge - 3 users so far | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Phillip Franks <phil> |
| Component: | New packages | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | major | CC: | pvdabeel |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://forums.gentoo.org/viewtopic.php?p=917841#917841 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Phillip Franks
2004-03-02 13:06:13 UTC
ooops, hit wrong page in browser and re-added prviously created bug. This is dup of 43491 - sorry guys :-[ *** This bug has been marked as a duplicate of 43491 *** *** Bug 43877 has been marked as a duplicate of this bug. *** I also have experienced this problem. This arises because the text-mode xf86cfg tool builds against ncurses. Ncurses defined a veriable type 'bool' for boolean variables. In the xc/programs/Xserver/hw/xfree86/xf86cfg/loader.h file, included by text-mode.c which also includes ncurses.h, there is a defined union ValueUnion with a member named 'bool' of type 'Bool'. GCC interprets this as an unnamed member of type 'Bool bool' and promptly barfs. I am not going to argue about how ridiculous it is for xfree86 to define a variable named 'bool', rather than simply 'boolean_var' or something similar. This value is not used anywhere else in the xf86cfg code, and the loader.h is only included there. It is safe to rename the union's 'bool' variable, or maybe remove it alltogether. I renamed it to 'b' and xf86cfg built and ran fine (in text mode, no less). |