Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29947 - dev-libs/root-3.03.04-r2 ebuild fails
Summary: dev-libs/root-3.03.04-r2 ebuild fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Heinrich Wendel (RETIRED)
URL: http://root.cern.ch/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-29 13:24 UTC by Hans Stabenau
Modified: 2003-10-06 12:30 UTC (History)
3 users (show)

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


Attachments
patch to fix. (root-redefine-functions.patch,1.00 KB, patch)
2003-10-04 14:18 UTC, James Harlow (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Stabenau 2003-09-29 13:24:32 UTC
When I compile root-3.03.04-r2 the compile aborts on my system while attempting to compile the 'rootd' component of the package.

Steps to Reproduce: heres my emerge info
hstabena@hansbox hstabena $ emerge info
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-pre7-aa1)
=================================================================
System uname: 2.4.22-pre7-aa1 i686 AMD Athlon(TM) XP 2200+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.noved.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex aalib svga tcltk java X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis qt kde motif opengl cdr scanner 3dnow acpi dga dvd emacs hyriand imap kerberos maildir tiff usb wmf Xaw3d -oss -apm -gnome -gtk"

and then do a 'emerge root'

Actual results: 
heres what it looks like:
hstabena@hansbox # emerge root
...snip...
g++ -O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -fprefetch-loop-arrays -pipe  -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude -DHAVE_CONFIG -D_REENTRANT -o rootd/src/netpar.o -c rootd/src/netpar.cxx
g++ -O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -fprefetch-loop-arrays -pipe  -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude -DHAVE_CONFIG -D_REENTRANT -DR__SHADOWPW      -o rootd/src/rootd.o -c rootd/src/rootd.cxx
rootd/src/rootd.cxx: In function `int setresgid(unsigned int, unsigned int,
   unsigned int)':
rootd/src/rootd.cxx:326: `int setresgid(unsigned int, unsigned int, unsigned
   int)' was declared `extern' and later `static'
/usr/include/unistd.h:658: previous declaration of `int setresgid(unsigned int,
   unsigned int, unsigned int)'
rootd/src/rootd.cxx: In function `int setresuid(unsigned int, unsigned int,
   unsigned int)':
rootd/src/rootd.cxx:333: `int setresuid(unsigned int, unsigned int, unsigned
   int)' was declared `extern' and later `static'
/usr/include/unistd.h:654: previous declaration of `int setresuid(unsigned int,
   unsigned int, unsigned int)'
make: *** [rootd/src/rootd.o] Error 1

!!! ERROR: dev-libs/root-3.03.04-r2 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! (no error message)

Expected Results: the package compiles correctly

Build date and platform: 09/29/03 on Gentoo Linux 1.4

Additional information: none.
Comment 1 James Harlow (RETIRED) gentoo-dev 2003-10-04 14:18:40 UTC
Created attachment 18760 [details, diff]
patch to fix.

This is an ugly workaround, but will allow compilation on recent gentoo
machines - it seems to be a problem in recent (~6-9 month old) glibc's. Fixing
this is really an upstream problem, if I'm right, so I'll report it to them.
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-06 06:50:56 UTC
does root-3.05.04.ebuild compile for you?
Comment 3 James Harlow (RETIRED) gentoo-dev 2003-10-06 10:09:32 UTC
Heinrich: yes, it does.
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-06 12:30:30 UTC
i marked it stable then.