Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24456 - sys-apps/procps-3.1.10 doesn't build on a gentoo 1.2 system
Summary: sys-apps/procps-3.1.10 doesn't build on a gentoo 1.2 system
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-14 07:16 UTC by Tristan Henderson
Modified: 2003-07-15 07:18 UTC (History)
1 user (show)

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 Tristan Henderson 2003-07-14 07:16:33 UTC
Can't emerge sys-apps/procps-3.1.10 - I suspect it's probably a gcc-2.95 or glibc 2.2 issue?

>>> Unpacking procps-3.1.10.tar.gz to /var/tmp/portage/procps-3.1.10/work
>>> Source unpacked.
gcc -MM -MG proc/alloc.c proc/devname.c proc/escape.c proc/ksym.c proc/prof.c proc/pwcache.c 
proc/readproc.c proc/sig.c proc/status.c proc/sysinfo.c proc/version.c proc/whattime.c > proc/.
depend
gcc -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -c -o uptime.o uptime.c
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/alloc.c -o proc/alloc.o
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/devname.c -o proc/devname.o
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/escape.c -o proc/escape.o
In file included from proc/devname.c:18:
/usr/include/unistd.h:966: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/stdio.h:583: warning: previous declaration of `ctermid'
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/ksym.c -o proc/ksym.o
In file included from proc/ksym.c:18:
/usr/include/unistd.h:966: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/stdio.h:583: warning: previous declaration of `ctermid'
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/prof.c -o proc/prof.o
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/pwcache.c -o proc/pwcache.o
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/readproc.c -o proc/readproc.o
In file included from proc/readproc.c:18:
/usr/include/stdio.h:583: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/unistd.h:966: warning: previous declaration of `ctermid'
proc/readproc.c: In function `status2proc':
proc/readproc.c:216: warning: array subscript has type `char'
proc/readproc.c:216: warning: array subscript has type `char'
proc/readproc.c:216: warning: array subscript has type `char'
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/sig.c -o proc/sig.o
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/status.c -o proc/status.o
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/sysinfo.c -o proc/sysinfo.o
gcc -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic -DVERSION=\"3\" -DSUBVERSION=\"1\" 
-DMINORVERSION=\"10\" -c -o proc/version.o proc/version.c
gcc -c -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -DSHARED=1 -fpic proc/whattime.c -o proc/whattime.o
In file included from proc/sysinfo.c:18:
/usr/include/unistd.h:966: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/stdio.h:583: warning: previous declaration of `ctermid'
In file included from proc/whattime.c:20:
/usr/include/unistd.h:966: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/stdio.h:583: warning: previous declaration of `ctermid'gcc -D_GNU_SOURCE 
-mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W -Wall -Wshadow 
-Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return 
 -c -o tload.o tload.c
In file included from tload.c:19:
/usr/include/unistd.h:966: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/stdio.h:583: warning: previous declaration of `ctermid'
tload.c:33: warning: redundant redeclaration of `optind' in same scope
/usr/include/getopt.h:61: warning: previous declaration of `optind'
tload.c:34: warning: redundant redeclaration of `optarg' in same scope
/usr/include/getopt.h:47: warning: previous declaration of `optarg'
gcc -D_GNU_SOURCE -mcpu=i686 -march=i686 -O2  -pipe -g3 -fno-common -ffast-math -I proc -W 
-Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings 
-Waggregate-return  -c -o free.o free.c
proc/sysinfo.c: In function `getdiskstat':
proc/sysinfo.c:677: parse error before `int'
proc/sysinfo.c:685: `units' undeclared (first use in this function)
proc/sysinfo.c:685: (Each undeclared identifier is reported only once
proc/sysinfo.c:685: for each function it appears in.)
proc/sysinfo.c:689: `i' undeclared (first use in this function)
proc/sysinfo.c:694: `disk_type' undeclared (first use in this function)
proc/sysinfo.c:694: `disk_num' undeclared (first use in this function)
proc/sysinfo.c:696: `cDisk' undeclared (first use in this function)
proc/sysinfo.c:715: `cPartition' undeclared (first use in this function)
proc/sysinfo.c:731: warning: control reaches end of non-void function
In file included from free.c:10:
/usr/include/unistd.h:966: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/stdio.h:583: warning: previous declaration of `ctermid'
proc/sysinfo.c: In file included from free.c:12:
/usr/include/getopt.h:47: warning: redundant redeclaration of `optarg' in same scope
/usr/include/getopt.h:47: warning: previous declaration of `optarg'
/usr/include/getopt.h:61: warning: redundant redeclaration of `optind' in same scope
/usr/include/getopt.h:61: warning: previous declaration of `optind'
/usr/include/getopt.h:66: warning: redundant redeclaration of `opterr' in same scope
/usr/include/getopt.h:66: warning: previous declaration of `opterr'
/usr/include/getopt.h:70: warning: redundant redeclaration of `optopt' in same scope
/usr/include/getopt.h:70: warning: previous declaration of `optopt'
/usr/include/getopt.h:145: In function `get_pid_digits':
proc/sysinfo.c:763: warning: declaration of `buf' shadows global declaration
warning: redundant redeclaration of `getopt' in same scope
/usr/include/getopt.h:145: warning: previous declaration of `getopt'
make: *** [proc/sysinfo.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/procps-3.1.10 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




palmer / # emerge info
Portage 2.0.48-r1 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8)
==============================================================
===
System uname: 2.4.21 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.
org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 apm avi crypt cups encode libg++ mmx mpeg ncurses pdflib quicktime spell truetype 
xml2 xmms xv berkdb esd gdbm gif gnome-libs gpm gtk imlib java libwww motif oggvorbis pam 
python readline sdl snmp ssl svga tcpd -3dnow alsa apache2 -arts bonobo cdr curses dga dvd 
emacs ethereal evo fbcon gnome gtk2 gtkhtml guile jpeg -kde lcms -lirc -mikmod mysql nas -nls 
odbc -opengl oss pcmcia pda perl pic plotutils png pnp -qt -qtmt samba -slang smooth tcltk tetex tiff 
trusted usb vim-with-x xml X zlib"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -march=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -march=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="ccache digest sandbox strict"
Comment 1 Tristan Henderson 2003-07-14 15:53:29 UTC
sys-apps/procps-3.1.11 has fixed this problem. Thanks!
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-07-15 00:18:46 UTC
fixed with upstream release
Comment 3 Brandon Low (RETIRED) gentoo-dev 2003-07-15 07:18:28 UTC
known issue, thats why 3.1.11 exists.