Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50597 - rxvt-unicode doesn't compile with gcc 3.4
Summary: rxvt-unicode doesn't compile with gcc 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-09 22:53 UTC by Andrew Williams
Modified: 2004-07-14 07:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Williams 2004-05-09 22:53:59 UTC
emerge -u x11-terms/rxvt-unicode

It configures and starts to compile before exiting with a number of compiler errors. I haven't been able to test it on anything other than an amd64, but it looks more gcc 3.4 related.

Reproducible: Always
Steps to Reproduce:
1.emerge -u x11-terms/rxvt-unicode
2.
3.
Actual Results:  
Calculating dependencies ...done! >>> emerge (1 of 1) 
x11-terms/rxvt-unicode-2.9 to / >>> md5 src_uri ;-) rxvt-unicode-2.9.tar.bz2 
>>> Unpacking source... >>> Unpacking rxvt-unicode-2.9.tar.bz2 
to /data/port_tmp/portage/rxvt-unicode-2.9/work 
>>> Source unpacked. 
configure: WARNING: If you wanted to set the --build type, don't use --host. 
    If a cross compiler is detected then cross compile mode will be used. 
  
configuring for rxvt 2.9 
  
checking for x86_64-pc-linux-gnu-gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ANSI C... none needed 
checking for x86_64-pc-linux-gnu-g++... g++ 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts -g... yes 
checking how to run the C preprocessor... gcc -E 
checking for a BSD-compatible install... /bin/install -c 
checking for gawk... gawk 
checking for main in -lsupc++... yes 
checking how to run the C++ preprocessor... g++ -E 
checking for egrep... grep -E 
checking for AIX... no 
checking for library containing strerror... none required 
checking for setlocale in -lxpg4... no 
checking for gethostbyname in -lnsl... yes 
checking for socket in -lsocket... no 
checking build system type... x86_64-unknown-linux-gnu 
checking host system type... x86_64-pc-linux-gnu 
checking for ld used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld 
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes 
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... 
-r 
checking for BSD-compatible nm... nm 
checking whether ln -s works... yes 
checking how to recognise dependant libraries... file_magic ELF [0-9]
[0-9]*-bit [LM]SB (shared object|dynamic lib ) 
checking command to parse nm output... ok 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking dlfcn.h usability... yes 
checking dlfcn.h presence... yes 
checking for dlfcn.h... yes 
checking for x86_64-pc-linux-gnu-file... no 
checking for file... /usr/bin/file 
checking for x86_64-pc-linux-gnu-ranlib... no 
checking for ranlib... ranlib 
checking for x86_64-pc-linux-gnu-strip... no 
checking for strip... strip 
checking for objdir... .libs 
checking for gcc option to produce PIC... -fPIC 
checking if gcc PIC flag -fPIC works... yes 
checking if gcc static flag -static works... yes 
checking if gcc supports -c -o file.o... no 
checking if we can lock with hard links... yes 
checking if gcc supports -fno-rtti -fno-exceptions... yes 
checking whether the linker (/usr/x86_64-pc-linux-gnu/bin/ld) supports shared 
libraries... yes 
checking how to hardcode library paths into programs... immediate 
checking whether stripping libraries is possible... yes 
checking dynamic linker characteristics... GNU/Linux ld.so 
checking if libtool supports shared libraries... yes 
checking whether -lc should be explicitly linked in... no 
creating libtool 
checking for mv... /bin/mv 
checking for rm... /bin/rm 
checking for cp... /bin/cp 
checking for ln... /bin/ln 
checking for sed... /bin/sed 
checking for echo... /bin/echo 
checking for cmp... /usr/bin/cmp 
checking for tbl... /usr/bin/tbl 
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include 
checking for gethostbyname... yes 
checking for connect... yes 
checking for remove... yes 
checking for shmat... yes 
checking for IceConnectionNumber in -lICE... yes 
checking for libXpm... -I, -L/usr/X11R6/lib 
checking for sys/wait.h that is POSIX.1 compatible... yes 
checking assert.h usability... yes 
checking assert.h presence... yes 
checking for assert.h... yes 
checking fcntl.h usability... yes 
checking fcntl.h presence... yes 
checking for fcntl.h... yes 
checking grp.h usability... yes 
checking grp.h presence... yes 
checking for grp.h... yes 
checking libc.h usability... no 
checking libc.h presence... no 
checking for libc.h... no 
checking lastlog.h usability... yes 
checking lastlog.h presence... yes 
checking for lastlog.h... yes 
checking stdarg.h usability... yes 
checking stdarg.h presence... yes 
checking for stdarg.h... yes 
checking for stdlib.h... (cached) yes 
checking for string.h... (cached) yes 
checking termios.h usability... yes 
checking termios.h presence... yes 
checking for termios.h... yes 
checking for unistd.h... (cached) yes 
checking sys/byteorder.h usability... no 
checking sys/byteorder.h presence... no 
checking for sys/byteorder.h... no 
checking sys/ioctl.h usability... yes 
checking sys/ioctl.h presence... yes 
checking for sys/ioctl.h... yes 
checking sys/select.h usability... yes 
checking sys/select.h presence... yes 
checking for sys/select.h... yes 
checking sys/sockio.h usability... no 
checking sys/sockio.h presence... no 
checking for sys/sockio.h... no 
checking sys/strredir.h usability... no 
checking sys/strredir.h presence... no 
checking for sys/strredir.h... no 
checking sys/time.h usability... yes 
checking sys/time.h presence... yes 
checking for sys/time.h... yes 
checking utmp.h usability... yes 
checking utmp.h presence... yes 
checking for utmp.h... yes 
checking utmpx.h usability... yes 
checking utmpx.h presence... yes 
checking for utmpx.h... yes 
checking for stdint.h... (cached) yes 
checking whether time.h and sys/time.h may both be included... yes 
checking whether termios.h and sys/ioctl.h may both be included... yes 
checking for -rpath dynamic library path recording... no 
checking for -R dynamic library path recording... no 
checking for XPointer... yes 
checking for an ANSI C-conforming const... yes 
checking for inline... inline 
checking for mode_t... yes 
checking for pid_t... yes 
checking for uid_t in sys/types.h... yes 
checking for char... yes 
checking size of char... 1 
checking for short... yes 
checking size of short... 2 
checking for int... yes 
checking size of int... 4 
checking for long... yes 
checking size of long... 8 
checking for long long... yes 
checking size of long long... 8 
checking for int *... yes 
checking size of int *... 8 
checking for int16_t... yes 
checking for uint16_t... yes 
checking for int32_t... yes 
checking for uint32_t... yes 
checking return type of signal handlers... void 
checking for atexit... yes 
checking for revoke... no 
checking for unsetenv... yes 
checking for setutent... yes 
checking for seteuid... yes 
checking for setreuid... yes 
checking for setsid... yes 
checking for setpgrp... yes 
checking for setpgid... yes 
checking for openpty... no 
checking for _getpty... no 
checking for grantpt... yes 
checking for unlockpt... yes 
checking for isastream... yes 
checking for on_exit... yes 
checking for nanosleep... yes 
checking for updwtmp... yes 
checking for ttyslot... yes 
checking for utmp.h... (cached) yes 
checking for struct utmp... yes 
checking for ut_host in utmp struct... yes 
checking for ut_pid in utmp struct... yes 
checking for utmpx.h... (cached) yes 
checking for struct utmpx... yes 
checking for host in utmpx struct... yes 
checking for struct lastlog... yes 
checking for struct lastlogx... no 
checking where utmp is located... /var/run/utmp 
checking where utmpx is located... /var/run/utmp 
checking where wtmp is located... /var/log/wtmp 
checking where wtmpx is located... /var/log/wtmp 
checking where lastlog is located... /var/log/lastlog 
checking where lastlogx is located... 
checking where ttys/ttytab is located... 
checking for working Xlocale... yes 
checking for working X setlocale... no 
checking for working plain setlocale... yes 
checking for working nl_langinfo... yes 
checking for getpt... yes 
checking for pty/tty type... GLIBC 
configure: checking for pty ranges... 
checking X11/Xft/Xft.h usability... yes 
checking X11/Xft/Xft.h presence... yes 
checking for X11/Xft/Xft.h... yes 
checking for XftDrawString32 in -lXft... yes 
configure: creating ./config.status 
config.status: creating autoconf/Make.common 
config.status: creating Makefile 
config.status: creating doc/Makefile 
config.status: creating src/Makefile 
config.status: creating src/test/Makefile 
config.status: creating src/rxvtlib.h 
config.status: creating W11/Makefile 
config.status: creating config.h 
Configuration: 
  
  Rxvt version:               2.9 : 2004-05-08 
  Source code location:       . 
  Install path:               /usr/bin 
  Compiler:                   g++ 
  Compiler flags:             -O2 -march=athlon64 -mtune=athlon64 -pipe 
-maccumulate-outgoing-args -fomit-frame-pointer -fweb -I/usr/X11R6/include 
-I/usr/include/freetype2 -I/usr/include/freetype2/config 
  Linker:                     gcc 
  malloc support:             system default 
  Xpm library:                -L/usr/X11R6/lib -lXpm 
  
The following are set in config.h 
  
  pty/tty type:               GLIBC 
  utmp support:               enabled 
  utmp file:                  /var/run/utmp 
  utmpx file:                 /var/run/utmp 
  wtmp file:                  /var/log/wtmp 
  wtmpx file:                 /var/log/wtmp 
  lastlog file:               /var/log/lastlog 
  ttys/ttytab file: 
  
  set TERM to:                rxvt 
  default resource name:      urxvt 
  resource class:             URxvt 
  resource class fallback:    Rxvt 
  
  *** Please check src/feature.h for further options *** 
  
.----------------------------------------------------------------. 
. NOTE: most features are disabled by default, try               . 
. configure --help to get an idea of the optional features       . 
.----------------------------------------------------------------. 
  
make[1]: Entering directory 
`/data/port_tmp/portage/rxvt-unicode-2.9/work/rxvt-unicode-2.9/src' 
gawk -f ./makeextprotos-awk defaultfont.C > defaultfont.extpro 
gawk -f ./makeextprotos-awk init.C > init.extpro 
gawk -f ./makeextprotos-awk logging.C > logging.extpro 
gawk -f ./makeextprotos-awk main.C > main.extpro 
gawk -f ./makeextprotos-awk menubar.C > menubar.extpro 
gawk -f ./makeextprotos-awk misc.C > misc.extpro 
gawk -f ./makeextprotos-awk netdisp.C > netdisp.extpro 
gawk -f ./makeextprotos-awk command.C > command.extpro 
gawk -f ./makeextprotos-awk ptytty.C > ptytty.extpro 
gawk -f ./makeextprotos-awk screen.C > screen.extpro 
gawk -f ./makeextprotos-awk scrollbar.C > scrollbar.extpro 
gawk -f ./makeextprotos-awk scrollbar-rxvt.C > scrollbar-rxvt.extpro 
gawk -f ./makeextprotos-awk scrollbar-next.C > scrollbar-next.extpro 
gawk -f ./makeextprotos-awk scrollbar-xterm.C > scrollbar-xterm.extpro 
gawk -f ./makeintprotos-awk scrollbar-plain.C > scrollbar-plain.intpro 
gawk -f ./makeextprotos-awk xdefaults.C > xdefaults.extpro 
gawk -f ./makeextprotos-awk xpm.C > xpm.extpro 
gawk -f ./makeintprotos-awk command.C > command.intpro 
gawk -f ./makeintprotos-awk defaultfont.C > defaultfont.intpro 
gawk -f ./makeintprotos-awk init.C > init.intpro 
gawk -f ./makeintprotos-awk logging.C > logging.intpro 
gawk -f ./makeextprotos-awk strings.C > strings.extpro 
gawk -f ./makeintprotos-awk menubar.C > menubar.intpro 
gawk -f ./makeintprotos-awk misc.C > misc.intpro 
gawk -f ./makeintprotos-awk netdisp.C > netdisp.intpro 
gawk -f ./makeintprotos-awk ptytty.C > ptytty.intpro 
gawk -f ./makeintprotos-awk screen.C > screen.intpro 
gawk -f ./makeintprotos-awk scrollbar.C > scrollbar.intpro 
gawk -f ./makeintprotos-awk main.C > main.intpro 
gawk -f ./makeintprotos-awk scrollbar-next.C > scrollbar-next.intpro 
gawk -f ./makeintprotos-awk scrollbar-rxvt.C > scrollbar-rxvt.intpro 
gawk -f ./makeintprotos-awk scrollbar-xterm.C > scrollbar-xterm.intpro 
gawk -f ./makeintprotos-awk strings.C > strings.intpro 
gawk -f ./makeintprotos-awk xdefaults.C > xdefaults.intpro 
gawk -f ./makeintprotos-awk xpm.C > xpm.intpro 
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H  -D_GNU_SOURCE 
-D_XOPEN_SOURCE  -I/usr/X11R6/include -I/usr/X11R6/include 
-I/usr/include/freetype2 -I/usr/include/freetype2/config    -O2 
-march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/freetype2/config    -DDEBUG_STRICT   -I/usr/X11R6/include  -I.. 
-I. -I. -c rxvtstl.C 
date >.protos 
g++ -DHAVE_CONFIG_H  -D_GNU_SOURCE -D_XOPEN_SOURCE  -I/usr/X11R6/include 
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config    
-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/freetype2/config    -DDEBUG_STRICT   -I/usr/X11R6/include  -I.. 
-I. -I. -c rxvt.C 
In file included from rxvtcolor.h:10, 
                 from rxvt.h:17, 
                 from rxvt.C:24: 
iom.h: In member function `void 
io_manager_vec<watcher>::erase_unordered(unsigned int)': 
iom.h:75: error: there are no arguments to `size' that depend on a template 
parameter, so a declaration of `size' must be available 
iom.h:75: error: (if you use `-fpermissive', G++ will accept your code, but 
allowing the use of an undeclared name is deprecated) 
iom.h:76: error: there are no arguments to `pop_back' that depend on a 
template parameter, so a declaration of `pop_back' must be available 
iom.h:78: error: there are no arguments to `size' that depend on a template 
parameter, so a declaration of `size' must be available 
make[1]: *** [rxvt.o] Error 1 
make[1]: *** Waiting for unfinished jobs.... 
mkdir .libs 
g++ -DHAVE_CONFIG_H -D_GNU_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include 
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config 
-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/freetype2/config -DDEBUG_STRICT -I/usr/X11R6/include -I.. -I. 
-I. -c rxvtstl.C  -fPIC -DPIC 
mv -f rxvtstl.o .libs/rxvtstl.lo 
g++ -DHAVE_CONFIG_H -D_GNU_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include 
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config 
-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/freetype2/config -DDEBUG_STRICT -I/usr/X11R6/include -I.. -I. 
-I. -c rxvtstl.C >/dev/null 2>&1 
mv -f .libs/rxvtstl.lo rxvtstl.lo 
make[1]: Leaving directory 
`/data/port_tmp/portage/rxvt-unicode-2.9/work/rxvt-unicode-2.9/src' 
make: *** [all] Error 1 
  
!!! ERROR: x11-terms/rxvt-unicode-2.9 failed. 
!!! Function src_compile, Line 50, Exitcode 2 
!!! (no error message) 
 

Expected Results:  
Should have compiled and emerged. 

gcc-3.4 
Up to date ~amd64 
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb" 
CXXFLAGS="${CFLAGS}"
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-07-14 07:47:07 UTC
this is fixed in rxvt-unicode-3.0, at least when using gcc 3.4.1