SCIENTIFIC-LINUX-USERS Archives

July 2005

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Olf Epler <[log in to unmask]>
Reply To:
Olf Epler <[log in to unmask]>
Date:
Tue, 5 Jul 2005 11:19:22 +0200
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (56 lines)
 Dear colleagues, sl-40 maintainers,

to upgrade our machines to scientific linux 4.0 it's necessary
to solve some problems with an older - but our default - version of root.
During the compilation of the root sources I get two error
messages from the compiler:
1.)
In function `int G___operatorlElE_1_14(G__value*, const char*, G__param*, int)':
cint/src/gcc3strm.cxx:1829: error: call of overloaded
`operator<<(std::basic_ostream<char, std::char_traits<char> >&,
                                     std::fpos<mbstate_t>&)' is ambiguous

If I change in G___operatorlElE_1_14 line 1829:

const ostream& obj=operator<<(*(ostream*)libp->para[0].ref,*(streampos*)libp->para[1].ref);

the cast to streampos against long int the compiler accepts this but
I know this not fully correct because streampos is a typedefed as long long.

2.)
The linking process of h2root, g2root and g2rootold breaks with
/usr/lib/gcc/i386-redhat-linux/3.4.3/libstdc++.so: undefined reference to
[log in to unmask]
collect2: ld returned 1 exit status

The function call _Unwind_Resume_or_Rethrow is part of libunwind but not
[log in to unmask]

Does anyone know if there exist a switch for gcc-3.4.3 to include libunwind?

3.)
If I start root after changing the cast in part 1.) I get the error:

root [0] cout << ""
Error: operator- not defined for basic_ostream<char,char_traits<char> >
FILE:(tmpfile) LINE:1
*** Interpreter error recovered ***
root [1]

The last is our main problem because I believe it affects most/all of the
C++ calls in the root cint. Calls to standard C functions like printf are ok.

I've already written to Masaharu Goto - the cint developer of root - but
got no answer.
Can anyone help me or give me a tip where I should start to debug the cint?

 With best regards, Olf

----------------------------------------------------------
Olf Epler                          phone: +49 30 2093-7804
Humboldt University Berlin           fax: +49 30 2093-7642
Department of Physics
Newtonstr. 15
12489 Berlin              email: [log in to unmask]
----------------------------------------------------------

ATOM RSS1 RSS2