Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 540870

Summary: x11-terms/xterm-314 - In file included from ./input.c:90: /usr/include/bits/termios.h:23:23: error: duplicate ‘unsigned’
Product: Gentoo Linux Reporter: Argh!... Rats!... <joj.pacovi>
Component: Current packagesAssignee: Thomas Dickey <dickey>
Status: RESOLVED INVALID    
Severity: normal CC: proxy-maint, x11
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
failed gcc4.8.3 emerge -pqv '=x11-terms/xterm-314::gentoo'
build.log

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!