[ROOT] problem compiling rootd/src/rootd.cxx under linux RH9 gcc 3.2

From: Johann Cohen-Tanugi (johann.cohen@pi.infn.it)
Date: Tue Apr 29 2003 - 13:57:23 MEST


Hi there,
root did not compile on my RH9 box. I have the following:
g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude -DHAVE_CONFIG 
-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

I saw in roottalk archive the setresuid has already caused problems, but 
not of this kind: here it seems that the new glibc is causing some 
trouble related to extern calls.
My machine has the following:
glibc-2.3.2-27.9
glibc-common-2.3.2-27.9
glibc-debug-2.3.2-27.9
glibc-devel-2.3.2-27.9
glibc-kernheaders-2.4-8.10
glibc-profile-2.3.2-27.9
glibc-utils-2.3.2-27.9
gcc-3.2.2-5
gcc-java-3.2.2-5
compat-gcc-c++-7.3-2.96.118
gcc-c++-3.2.2-5
compat-gcc-7.3-2.96.118
gcc-gnat-3.2.2-5
gcc-objc-3.2.2-5
gcc-g77-3.2.2-5
compat-gcc-g77-7.3-2.96.118
compat-gcc-objc-7.3-2.96.118
libgcc-3.2.2-5
compat-gcc-java-7.3-2.96.118

any advice?
thanks,
Johann



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET