Hi,
The problem appears to be this block of code ...
at (L345) in $ROOTSYS/rootd/src/rootd.cxx
and
at (L245) in $ROOTSYS/proofd/src/proofd.cxx,
=====
#if !defined(__hpux) /*need to add code here ... see below*/
static int setresgid(gid_t r, gid_t e, gid_t)
{
if (setgid(r) == -1)
return -1;
return setegid(e);
}
static int setresuid(uid_t r, uid_t e, uid_t)
{
if (setuid(r) == -1)
return -1;
return seteuid(e);
}
#endif
=====
add the following piece of code:
&& !defined(linux)
The solution is from a previous thread:
http://root.cern.ch/root/roottalk/roottalk03/1557.html
Cheers,
Greg King
gking@triumf.ca
>I'm trying to build and install root v.3.04.02 under RedHat 8.0 using
>gcc-3.2 and glibc-2.3.2. I started the build with `configure linux'
>and `gmake', but it fails with the following error:
>
>g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude -D_REENTRANT -DR__SHADOWPW -DR__KRB5 -I/usr/kerberos/include -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:347: `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:354: `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)'
>gmake: *** [rootd/src/rootd.o] Error 1
>
>Has anyone else run into this, or successfully built root with this
>development system?
>
>
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET