Re: [ROOT] Beginner - difficulty compiling root (3.10.02) on debian

From: Jiri Masik (masik@fzu.cz)
Date: Wed Jan 21 2004 - 15:16:13 MET


Boris Barbour <barbour@ens.fr> writes:

> Hi,
>
> I'm having trouble compiling root from source. Any ideas on how I can progress 
> would be gratefully received.
>
> Using:
>
> root 3.10.02
>
> Dell PC Intel P-III 1GHz, 256Mb
>
> Debian testing
> kernel 2.4.24-1-686 (debian kernel image, kernel-headers-2.4.24-1-686
> installed)
> gcc 3.3.2 (Debian)
> GNU Make version 3.79.1
>
> I configure thus
>
> $ ./configure --prefix=/usr/local --enable-soversion
> --enable-thread --disable-cern --disable-mysql --disable-sapdb
> --disable-rfio --disable-pythia --disable-pythia6 --disable-venus 
> --disable-srp
>
> (I'm interested in trying out the root/cint system for analysis that has 
> nothing to do with supercolliders.)
>
> then I enter
>
> $ make
>
> wait a long time (many messages)
>
> ...
>
> then the process shudders to a halt
>
> g++ -O1 -pipe -Wall -fPIC -Iinclude -DHAVE_CONFIG -D_REENTRANT  -DR__SRP_1_1 
> -DR__SHADOWPW      -o rootd/src/rootd.o -c rootd/src/rootd.cxx
> In file included from /usr/include/asm/sigcontext.h:4,
>                  from /usr/include/bits/sigcontext.h:28,
>                  from /usr/include/signal.h:326,
>                  from rootd/src/rootd.cxx:297:
> /usr/include/linux/compiler.h:17: warning: `__attribute_used__' redefined
> /usr/include/sys/cdefs.h:195: warning: this is the location of the previous 
> definition
> rootd/src/rootd.cxx: In function `void RootdAuthCleanup(const char *, int)':
> rootd/src/rootd.cxx:460: implicit declaration of function `int setresgid(...)'
> rootd/src/rootd.cxx:463: implicit declaration of function `int setresuid(...)'
> make: *** [rootd/src/rootd.o] Error 1
>
> [the warnings about cdefs.h and compiler.h have already been emitted
> about a thousand times by this point - are they important?]
>


Hi Boris,

the warnings with cdefs.h and compiler.h should disappear with newer
kernel-header package. I have a recent version and it fixes this bug
(see the changelog). 

I cannot reproduce the error in rootd.cxx even if I invoke configure
as you did. You can find several posts on the topic of missing
prototypes of setresuid/setresgid in the roottalk archive however this
should not happen with recent Root and Debian versions. I suggest you
to try 

make distclean
./configure linuxdeb2
check whether include/config.h defines #define HAS_SETRESUID 
run make again

cheers,
Jiri



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET