Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540870 - x11-terms/xterm-314 - In file included from ./input.c:90: /usr/include/bits/termios.h:23:23: error: duplicate ‘unsigned’
Summary: x11-terms/xterm-314 - In file included from ./input.c:90: /usr/include/bits/t...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Thomas Dickey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-21 01:26 UTC by Argh!... Rats!...
Modified: 2015-02-21 22:12 UTC (History)
2 users (show)

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


Attachments
emerge --info (failed-emerge--info_x11-terms-xterm-314-with-gcc-4.8.3.txt,5.57 KB, text/plain)
2015-02-21 01:26 UTC, Argh!... Rats!...
Details
failed gcc4.8.3 emerge -pqv '=x11-terms/xterm-314::gentoo' (failed-emerge-pqv_x11-terms-xterm-314-with-gcc-4.8.3.txt,85 bytes, text/plain)
2015-02-21 01:27 UTC, Argh!... Rats!...
Details
build.log (build.log,22.93 KB, text/plain)
2015-02-21 01:30 UTC, Argh!... Rats!...
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Argh!... Rats!... 2015-02-21 01:26:55 UTC
Created attachment 397100 [details]
emerge --info

xterm-314 did not want to build with gcc-4.8.3.
Switched to gxx-4.8.3 and emerge ran successfully

Errors thrown by emerge:
In file included from /usr/include/termios.h:39:0,
                 from /usr/include/term.h:80,
                 from ./xtermcap.h:76,
                 from ./input.c:90:
/usr/include/bits/termios.h:23:23: error: duplicate ‘unsigned’
 typedef unsigned char cc_t;
                       ^
/usr/include/bits/termios.h:23:32: error: two or more data types in declaration specifiers
 typedef unsigned char cc_t;
                                ^
./input.c: In function ‘VTInitModifiers’:
./input.c:2032:4: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, code, l);
    ^
Makefile:130: recipe for target 'input.o' failed
make: *** [input.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/termios.h:39:0,
                 from /usr/include/term.h:80,
                 from ./xtermcap.h:76,
                 from ./main.c:123:
/usr/include/bits/termios.h:23:23: error: duplicate ‘unsigned’
 typedef unsigned char cc_t;
                       ^
/usr/include/bits/termios.h:23:32: error: two or more data types in declaration specifiers
 typedef unsigned char cc_t;
                                ^
./main.c: In function ‘validShell’:
./main.c:3240:28: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
    } else if (same_leaf(q, (char *) pathname) &&
                            ^
Makefile:130: recipe for target 'main.o' failed
make: *** [main.o] Error 1
Comment 1 Argh!... Rats!... 2015-02-21 01:27:28 UTC
Created attachment 397102 [details]
failed gcc4.8.3 emerge -pqv '=x11-terms/xterm-314::gentoo'
Comment 2 Argh!... Rats!... 2015-02-21 01:30:04 UTC
Created attachment 397104 [details]
build.log
Comment 3 Argh!... Rats!... 2015-02-21 01:32:31 UTC
Comment on attachment 397102 [details]
failed gcc4.8.3 emerge -pqv '=x11-terms/xterm-314::gentoo'

>[ebuild  N    ] x11-terms/xterm-314  USE="openpty truetype unicode -Xaw3d -toolbar"
Comment 4 Argh!... Rats!... 2015-02-21 01:46:02 UTC
oh...man...what have i written in the textfield?...damn...gxx-4.8.3???...

Sorry for that...here the correction:
emerge fails with:      gcc-4.8.3
emerge succeeds with:   gcc-4.7.3
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-21 10:31:19 UTC
Comment on attachment 397102 [details]
failed gcc4.8.3 emerge -pqv '=x11-terms/xterm-314::gentoo'

[ebuild  N    ] x11-terms/xterm-314  USE="openpty truetype unicode -Xaw3d -toolbar"
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-21 10:36:37 UTC
Please try again with FEATURES=-ccache.
Comment 7 Argh!... Rats!... 2015-02-21 13:57:45 UTC
(In reply to Jeroen Roovers from comment #6)
> Please try again with FEATURES=-ccache.

Tried and it works. 
switched to gcc 4.8.3 and tried emerge with ' FEATURES="-ccache" emerge x11-terms/xterm '.
Emerge was successfull and compiled xterm-314 with gcc 4.8.3 and installed it.

Probem solved. 
Thanks for looking into it!