ROOT3.10.02 and g++296

Hello rooters

We are trying to compile ROOT3.10.02 with gcc/g++ 296 for backward
compatibility reasons with existing software.
We are running on Fedora Core 1. Accordingly we have changed the definition of gcc/g++ in config/Makefile.linux to gcc296/g++296 (yes also the LD command was changed). Compiling proceeds without trouble for quite a while, but when compiling rootd.cxx the compiler complains:

[quote]g++296 -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -D_REENTRANT -DR__KRB5 -Iinclude -o rootd/src/rootd.o -c rootd/src/rootd.cxx
rootd/src/rootd.cxx: In function void RootdAuthCleanup (const char *, int)': rootd/src/rootd.cxx:460:setresgid’ undeclared (first use this
function)
rootd/src/rootd.cxx:460: (Each undeclared identifier is reported only
once for each function it appears in.)
rootd/src/rootd.cxx:463: `setresuid’ undeclared (first use this
function)
gmake: *** [rootd/src/rootd.o] Error 1[/quote]

The following foo.cc compiles nevertheless without problems:

#include <unistd.h> int main() { setresgid(0,0,0); return 0; }

Can someone help us?

Thanks in advance

Michael

Hi,

Try to modify the file include/config.h adding (or replacing)

#define HAS_SETRESUIDby

Note that this file is automatically generate by the configure script.

Cheers,
Philippe.