* Re: OSF/1 3.2D --- g++-2.7.2 --- libg++-2.7.1
@ 1996-02-27 5:00 Norbert Berzen
1996-02-28 5:00 ` John C. Fowler
0 siblings, 1 reply; 4+ messages in thread
From: Norbert Berzen @ 1996-02-27 5:00 UTC (permalink / raw)
Hello all,
a few days ago I posted some lines about gcc/libg++ problems
which occurred after upgrading my machine to DEC-Unix 3.2D
I got some private mail from people which have the same problems.
In the meanwhile I have fixed the problems as follows:
1st Problem:
Warning: clog defined as GLOBAL DATA but is defined in a shared lib as a
GLOBAL FUNC
Solution:
I use a patched version of "libm.so" which resides in
"/usr/local/lib/libm.so". It has the symbol `clog'
patched out, since "clog" is not of any use it C/C++
because the return type "double_complex" is not defined.
2nd Problem:
/usr/ucb/ld:
Warning: Linking some objects which contain exception information sections
and some which do not. This may cause fatal runtime exception handling
problems (last obj encountered without exceptions was
/usr/local/lib/libstdc++.a).
Solution:
I slightly changed the gcc sources (~/gcc-2.7.2/config/alpha/*)
to place the symbols "gcc2_compiled." and "__gnu_compiled_c" in
the ".rconst" section. I compiled gcc and libg++ again, and all
went good.
Now, all works fine :-).
Greetings Norbert
--
Norbert [norbert@dune.gia.rwth-aachen.de (134.130.159.38)]
N. Berzen, Geod. Inst. der RWTH-Aachen, Templergraben 55, 52056 Aachen
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: OSF/1 3.2D --- g++-2.7.2 --- libg++-2.7.1
1996-02-27 5:00 OSF/1 3.2D --- g++-2.7.2 --- libg++-2.7.1 Norbert Berzen
@ 1996-02-28 5:00 ` John C. Fowler
[not found] ` <norbert.825586806@dune.gia.rwth-aachen.de>
0 siblings, 1 reply; 4+ messages in thread
From: John C. Fowler @ 1996-02-28 5:00 UTC (permalink / raw)
In article <norbert.825436414@dune.gia.rwth-aachen.de>,
Norbert Berzen <norbert@gia.rwth-aachen.de> wrote:
<Hello all,
Hello. I too have had the problem you described and fixed on your
system, but I'm not quite sure how you fixed it. (I'm quite a bit
less knowledgable than you)
<1st Problem:
<
< Warning: clog defined as GLOBAL DATA but is defined in a shared lib as a
< GLOBAL FUNC
<
<Solution:
<
< I use a patched version of "libm.so" which resides in
< "/usr/local/lib/libm.so". It has the symbol `clog'
< patched out, since "clog" is not of any use it C/C++
< because the return type "double_complex" is not defined.
Where did you get a patched version of libm.so? Did you patch it?
If so, where did you get the sources to patch it and rebuild it? And
how can I do the same?
<2nd Problem:
<
< /usr/ucb/ld:
< Warning: Linking some objects which contain exception information...
<
<Solution:
<
< I slightly changed the gcc sources (~/gcc-2.7.2/config/alpha/*)
< to place the symbols "gcc2_compiled." and "__gnu_compiled_c" in
< the ".rconst" section. I compiled gcc and libg++ again, and all
< went good.
Well, I've been poking around in the config/alpha directory, but I
can't find any ".rconst" section in any of the files, and as a result,
I have no clue how to add the "gcc2_compiled." and "__gnu_compiled_c".
Could you tell me (specifically) what you added and where you added
it?
<Now, all works fine :-).
<
<Greetings Norbert
Any help would be greatly appreciated. Thank you.
john...
'When peace like a river attendeth my way,
when sorrows like sea billows roll;
Whatever my lot thou hast taught me to say,
"It is Well! It is Well, with my soul!"'
^ permalink raw reply [flat|nested] 4+ messages in thread
* OSF/1 3.2D --- g++-2.7.2 --- libg++-2.7.1
@ 1996-02-20 5:00 Norbert Berzen
0 siblings, 0 replies; 4+ messages in thread
From: Norbert Berzen @ 1996-02-20 5:00 UTC (permalink / raw)
Hello DEC Unix users,
a few days ago I upgraded my DEC3000/400 from OSF-1.2
to DEC-Unix-3.2(D). When having finished the upgrade
I installed gcc-2.7.2 along with libg++-2.7.1.
To my surprise the compilation of the following program ...
#include <iostream.h>
void
main ()
{
cout << "hello world" << endl;
}
... and compiling it with ...
g++ -o hello hello.cc
... produced the following output:
/usr/ucb/ld:
Warning: Linking some objects which contain exception information sections
and some which do not. This may cause fatal runtime exception handling
problems (last obj encountered without exceptions was /usr/local/lib/libstdc++.a).
Warning: clog defined as GLOBAL DATA but is defined in a shared lib as a GLOBAL FUNC
... but the executable `hello' just works fine!
I do know the cause of the second warning (clog ...):
It's because there are two symbols with identical names
"clog" defined;
1st) The "clog" instance of class `ostream_withassign'
which is defined in the C++ iostream library as GLOBAL DATA.
2nd) The "clog" complex logarithm function,
which is defined in the math library as GLOBAL FUNC.
And now, here are my questions (concerning the first warning):
1) Does anyone of you know the cause of the 1st warning?
2) Did I do something wrong when bootstrapping/installing gcc/libg++?
3) What can I do to make the things work right?
Many thanks in advance
Norbert
--
Norbert [norbert@dune.gia.rwth-aachen.de (134.130.159.38)]
N. Berzen, Geod. Inst. der RWTH-Aachen, Templergraben 55, 52056 Aachen
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-03-01 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-27 5:00 OSF/1 3.2D --- g++-2.7.2 --- libg++-2.7.1 Norbert Berzen
1996-02-28 5:00 ` John C. Fowler
[not found] ` <norbert.825586806@dune.gia.rwth-aachen.de>
1996-03-01 5:00 ` John C. Fowler
-- strict thread matches above, loose matches on Subject: below --
1996-02-20 5:00 Norbert Berzen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox