Yes, I did. (except for rootd, which I don't need). In TMath I lost patience
to find the real bug and just included <math.h>. Patch is below, hope that
helps.
-Rolf
--------8<-------8<-----
> diff -Nur root_v2.25.03_ori root_v2.25.03_rd
diff -Nur root_v2.25.03_ori/Makefile root_v2.25.03_rd/Makefile
--- root_v2.25.03_ori/Makefile Wed Feb 13 23:15:40 2002
+++ root_v2.25.03_rd/Makefile Fri Nov 9 23:17:36 2001
@@ -23,7 +23,7 @@
treeplayer treeviewer physics postscript rint html eg
ifneq ($(ARCH),win32)
-MODULES += unix x11 x3d rootx rootd proofd
+MODULES += unix x11 x3d rootx proofd
SYSTEMO = $(UNIXO)
SYSTEMDO = $(UNIXDO)
else
diff -Nur root_v2.25.03_ori/cint/src/Method.cxx
root_v2.25.03_rd/cint/src/Method.cxx
--- root_v2.25.03_ori/cint/src/Method.cxx Wed Feb 13 23:15:29 2002
+++ root_v2.25.03_rd/cint/src/Method.cxx Fri Nov 9 22:45:27 2001
@@ -494,7 +494,7 @@
ifunc = (struct G__ifunc_table*)handle;
#endif
if(ifunc->pentry[index]->filenum>=0) {
- return((long)ifunc->pentry[index]->pos);
+ return((long)ifunc->pentry[index]->pos.__pos);
}
else {
return(invalid);
diff -Nur root_v2.25.03_ori/cint/src/macro.c root_v2.25.03_rd/cint/src/macro.c
--- root_v2.25.03_ori/cint/src/macro.c Wed Feb 13 23:14:36 2002
+++ root_v2.25.03_rd/cint/src/macro.c Fri Nov 9 22:41:40 2001
@@ -517,7 +517,7 @@
if(G__ifile.line_number == callfuncmacro->line &&
G__ifile.filenum == callfuncmacro->call_filenum) {
#else
- if(call_pos == callfuncmacro->call_pos &&
+ if( call_pos.__pos == callfuncmacro->call_pos.__pos &&
G__ifile.filenum == callfuncmacro->call_filenum) {
#endif
#else
@@ -895,7 +895,7 @@
if(G__ifile.line_number == callfuncmacro->line &&
G__ifile.filenum == callfuncmacro->call_filenum)
#else
- if(call_pos == callfuncmacro->call_pos &&
+ if(call_pos.__pos == callfuncmacro->call_pos.__pos &&
G__ifile.filenum == callfuncmacro->call_filenum)
#endif
#else
diff -Nur root_v2.25.03_ori/cint/src/parse.c root_v2.25.03_rd/cint/src/parse.c
--- root_v2.25.03_ori/cint/src/parse.c Wed Feb 13 23:14:48 2002
+++ root_v2.25.03_rd/cint/src/parse.c Fri Nov 9 22:42:35 2001
@@ -312,7 +312,7 @@
G__asm_inst[G__asm_cp]=G__CATCH;
G__asm_inst[G__asm_cp+1]=G__ifile.filenum;
G__asm_inst[G__asm_cp+2]=G__ifile.line_number;
- G__asm_inst[G__asm_cp+3]=(long)fpos1;
+ G__asm_inst[G__asm_cp+3]=(long)fpos1.__pos;
G__inc_cp_asm(5,0);
G__fignorestream("(");
}
diff -Nur root_v2.25.03_ori/cint/src/pcode.c root_v2.25.03_rd/cint/src/pcode.c
--- root_v2.25.03_ori/cint/src/pcode.c Wed Feb 13 23:14:55 2002
+++ root_v2.25.03_rd/cint/src/pcode.c Fri Nov 9 22:43:54 2001
@@ -9918,7 +9918,8 @@
fpos_t store_pos;
struct G__input_file store_ifile = G__ifile;
char statement[G__LONGLINE];
- fpos_t pos = (fpos_t)G__asm_inst[pc+3];
+ fpos_t pos;
+ pos.__pos = (__off_t)G__asm_inst[pc+3];
fgetpos(G__ifile.fp,&store_pos);
G__ifile.filenum = G__asm_inst[pc+1];
G__ifile.line_number = G__asm_inst[pc+2];
diff -Nur root_v2.25.03_ori/include/TMath.h root_v2.25.03_rd/include/TMath.h
--- root_v2.25.03_ori/include/TMath.h Wed Feb 13 23:15:49 2002
+++ root_v2.25.03_rd/include/TMath.h Fri Nov 9 22:57:57 2001
@@ -294,23 +294,25 @@
# include <math.h>
#else
// don't want to include complete <math.h>
-extern "C" {
- extern double sin(double);
- extern double cos(double);
- extern double tan(double);
- extern double sinh(double);
- extern double cosh(double);
- extern double tanh(double);
- extern double asin(double);
- extern double acos(double);
- extern double atan(double);
- extern double atan2(double, double);
- extern double sqrt(double);
- extern double exp(double);
- extern double pow(double, double);
- extern double log(double);
- extern double log10(double);
-}
+/* extern "C" { */
+/* extern double sin(double); */
+/* extern double cos(double); */
+/* extern double tan(double); */
+/* extern double sinh(double); */
+/* extern double cosh(double); */
+/* extern double tanh(double); */
+/* extern double asin(double); */
+/* extern double acos(double); */
+/* extern double atan(double); */
+/* extern double atan2(double, double); */
+/* extern double sqrt(double); */
+/* extern double exp(double); */
+/* extern double pow(double, double); */
+/* extern double log(double); */
+/* extern double log10(double); */
+// but I want to (RD)
+//}
+# include <math.h>
#endif
inline Double_t TMath::Sin(Double_t x)
--------8<-------8<-----
On Wednesday 13 February 2002 09:50 pm, you wrote:
> Just wondering. Did someone succeed to compile
> root-2.25/03 sources on RedHat-7.2 ? It sounds
> strange but I would like have it running for
> version compatibility reasons. I tried both
> configure linux and configure linuxegcs but
> make does not make it through in both cases.
> Thanks in advance
> Martin
--
Cheers,
Rolf
***************************************************************
Rolf Dubitzky
e-mail: Rolf.Dubitzky@Physik.TU-Dresden.de
s-mail see http://hep.phy.tu-dresden.de/~dubitzky/
***************************************************************
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:41 MET