[ROOT] ROOT v3-05-07 and Intel icc 7.1

From: Konstantin Olchanski (olchansk@sam.triumf.ca)
Date: Fri Aug 22 2003 - 05:53:30 MEST


FWIW, I had to make these changes to ROOT v3-05-07 to compile it with
Intel compiler icc "Version 7.1   Build 20030813Z":

add #include <sys/types.h> and <sys/time.h> for "struct timespec"
add #define __SWORD_TYPE int for #include <sys/vfs.h>
manually define setresuid() and setresgid()

I do not quite understand why these changes are required- the /usr/include
headers appear to have all the right definitions. Maybe intel are playing
games with header files?

Anyway, here is a pseudo cvs diff of changed files:

Index: gui/src/TGFSContainer.cxx
===================================================================
RCS file: /user/cvs/root/gui/src/TGFSContainer.cxx,v
retrieving revision 1.12
diff -r1.12 TGFSContainer.cxx
> #include <sys/time.h>
Index: net/src/TAuthenticate.cxx
===================================================================
RCS file: /user/cvs/root/net/src/TAuthenticate.cxx,v
retrieving revision 1.9
diff -r1.9 TAuthenticate.cxx
> #include <sys/types.h>
Index: proofd/src/proofd.cxx
===================================================================
RCS file: /user/cvs/root/proofd/src/proofd.cxx,v
retrieving revision 1.32
diff -r1.32 proofd.cxx
> // Kludge the definition of setresuid() and setresgid()
> #include <unistd.h>
> extern "C" int setresuid (__uid_t __euid, __uid_t __ruid, __uid_t __suid);
> extern "C" int setresgid (__gid_t __egid, __gid_t __rgid, __gid_t __sgid);
Index: rootd/src/rootd.cxx
===================================================================
RCS file: /user/cvs/root/rootd/src/rootd.cxx,v
retrieving revision 1.51
diff -r1.51 rootd.cxx
> // Kludge the definition of setresuid() and setresgid()
> #include <unistd.h>
> extern "C" int setresuid (__uid_t __euid, __uid_t __ruid, __uid_t __suid);
> extern "C" int setresgid (__gid_t __egid, __gid_t __rgid, __gid_t __sgid);
> // Why does the __SWORD_TYPE definition from bits/types.h not work?
> #define __SWORD_TYPE int
Index: unix/src/TUnixSystem.cxx
===================================================================
RCS file: /user/cvs/root/unix/src/TUnixSystem.cxx,v
retrieving revision 1.66
diff -r1.66 TUnixSystem.cxx
> // Why does __SWORD_TYPE definition in /usr/include/bits/types.h not work?
> #   define __SWORD_TYPE int
....
<    const char *cppfiltarg = "--format=gnu-new-abi";
>    const char *cppfiltarg = "";

-- 
Konstantin Olchanski
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada



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