Just for information in case anybody is interested.
To compile and link under SuSe Linux 5.2 I had to make the following changes:
In mmalloc.h commented some stuff out
/*
#if defined(HAVE_ANSIDECL_H) && !defined(R__AIXGCC)
# include <ansidecl.h>
#else
*/
# define PTR void *
# define CONST const
# define PARAMS(paramlist) paramlist
/*
#endif
*/
----------------------------------------------------------------
in C_mmapsup.c and C_mvalloc.c commented out:
/*
#if defined(R__LINUX) && !defined(R__MKLINUX) && !defined(R__GLIBC)
*/
and replaced by
#if defined(R__LINUX) && !defined(R__MKLINUX)
----------------------------------------------------------------
in UNIX_UnixSystem.cxx commented out all occureces of
/*
#if defined(R__GLIBC)
socklen_t optlen = sizeof(*val);
#else
*/
so that
int optlen = sizeof(*val);
is used instead.
There may be better solutions than commenting out. Mybe its usefull to
introduce some new definitions in the haederfiles.
Prost,
Norbert
Fons Rademakers wrote:
> Hi Norbert,
>
> just check which flags apply for getpagesize for Suse 5.2 in
> C_mmapsup.c and C_mvalloc.c. Should be easy to change.
>
> Cheers, Fons.
>
> Norbert Danneberg wrote:
> >
> > Hi Rooters,
> >
> > root 2.00/10 crashes on my Linux System, 2.00/07 was fine.:
> >
> > pc65 root/bin> gdb root
> > GDB is free software and you are welcome to distribute copies of it
> > under certain conditions; type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB; type "show warranty" for
> > details.
> > GDB 4.16.patched (i486-unknown-linux --target i486-linux),
> > Copyright 1996 Free Software Foundation, Inc...
> > (gdb) r
> > Starting program: /usr2/norbert/download/root/bin/root
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x80512cb in __underflow (fp=0x8073af0) at genops.c:249
> > genops.c:249: No such file or directory.
> > (gdb) where
> > #0 0x80512cb in __underflow (fp=0x8073af0) at genops.c:249
> > #1 0x80551ec in _IO_getline (fp=0x8073af0, buf=0xbfffe844 "\224\002",
> > n=1023,
> > delim=10, extract_delim=1) at iogetline.c:47
> > #2 0x8052b73 in fgets (buf=0xbfffe844 "\224\002", n=1024, fp=0x8073af0)
> >
> > at ./../iofgets.c:35
> >
> > ----------------------------------------
> > I tried to compile the source code but I go the following error :
> >
> > pc65 root/src> make
> > gcc -g -Wall -fPIC -DR__GLIBC -c C_mvalloc.c
> > C_mvalloc.c:35: conflicting types for `getpagesize'
> > /usr/include/unistd.h:561: previous declaration of `getpagesize'
> > make: *** [C_mvalloc.o] Error 1
> > pc65 root/src>
> > -----------------------------------------
> >
> > Im am running SuSe Linus 5.2 on this PC
> > gcc version 2.7.2.1
> >
> > --
> > -------------------------------------
> > Norbert Danneberg
> >
> > Institut f"ur Teilchenphysik
> > Eidg. Techn. Hochschule Z"urich
> > WLGA/E27
> > CH-5232 Villigen PSI
> >
> > Phone: 0041-56-310-3284
> > Fax : 0041-56-310-4362
> > email: Norbert.Danneberg@psi.ch
> > -------------------------------------
>
> --
> Org: CERN, European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248
> E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910
-- ------------------------------------- Norbert DannebergInstitut f"ur Teilchenphysik Eidg. Techn. Hochschule Z"urich WLGA/E27 CH-5232 Villigen PSI
Phone: 0041-56-310-3284 Fax : 0041-56-310-4362 email: Norbert.Danneberg@psi.ch -------------------------------------