* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-15 4:00 ` Murray S. Kucherawy
@ 1996-04-17 4:00 ` Allen M. Cohen
1996-04-17 4:00 ` Norbert Berzen
1996-04-18 4:00 ` Tim Lucia
1996-05-01 4:00 ` Daniel S. Riley
` (4 subsequent siblings)
5 siblings, 2 replies; 13+ messages in thread
From: Allen M. Cohen @ 1996-04-17 4:00 UTC (permalink / raw)
Murray S. Kucherawy wrote:
>
> In article <4ktph9$o2n@odo.amherst.com>,
> Carm Frascatore <cjf@odo.amherst.com> wrote:
> >I am trying to build gcc 2.7.2 on an Alpha running Digital UNIX v3.2.
> >I am able to build stage1 of the compiler ok, but when I use 'stage1/xgcc'
> >to compile the next stage, I get the following warning:
> >
> >/usr/bin/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 version.o).
> >
> I only get this when compiling .c files that contain static data but no code,
> like (as you cited) a source file which just contains a char[] definition,
> like an RCSid.
I get this Warning whatever I build -- It's rather annoying!
If you find a fix, let me know!
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-17 4:00 ` Allen M. Cohen
@ 1996-04-17 4:00 ` Norbert Berzen
1996-04-25 4:00 ` Radenko Kalajdzic
1996-04-18 4:00 ` Tim Lucia
1 sibling, 1 reply; 13+ messages in thread
From: Norbert Berzen @ 1996-04-17 4:00 UTC (permalink / raw)
"Allen M. Cohen" <amc@wlv.iipo.gtegsc.com> writes:
>Murray S. Kucherawy wrote:
>>
>> In article <4ktph9$o2n@odo.amherst.com>,
>> Carm Frascatore <cjf@odo.amherst.com> wrote:
>> >I am trying to build gcc 2.7.2 on an Alpha running Digital UNIX v3.2.
>> >I am able to build stage1 of the compiler ok, but when I use 'stage1/xgcc'
>> >to compile the next stage, I get the following warning:
>> >
>> >/usr/bin/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 version.o).
>> >
>> I only get this when compiling .c files that contain static data but no code,
>> like (as you cited) a source file which just contains a char[] definition,
>> like an RCSid.
>I get this Warning whatever I build -- It's rather annoying!
>If you find a fix, let me know!
Hello,
enclosed is a uuencoded, gnuzip'ped and tar'ed archive, which
contains the necessary stuff to modify gcc-2.7.2 not to
issue the warning(s) mentioned above.
You may apply it as follows by the following assumptions:
a) The uunecoded arcchive resides in a file named "xxx.uu"
b) The gcc source directory is "/usr/local/src/GNU/GCC/gcc-2.7.2"
Now do the following ...
decode the archive
$ uudecode < xxx.uu
This produces the file "gcc-2.7.2-decAlpha3.2d.tar.gz" in your
current directory. Copy this file into the >> parent directory <<
of the gcc source directory.
$ cp gcc-2.7.2-decAlpha3.2d.tar.gz /usr/local/src/GNU/GCC
Change into that directory:
$ cd /usr/local/src/GNU/GCC
Unpack the archive:
$ gunzip <gcc-2.7.2-decAlpha3.2d.tar.gz | tar xvf -
This generates two files
1) "gcc-2.7.2/config/alpha/osf32.h"
2) "./gcc-2.7.2-decAlpha3.2d.patch"
Now, apply the patch file:
$ patch <./gcc-2.7.2-decAlpha3.2d.patch
This patches two files:
2) gcc-2.7.2/ChangeLog
1) gcc-2.7.2/configure
After having done this you can re-build gcc/g++ the usual way ...
$ cd gcc-2.7.2
$ ./configure
$ make bootstrap
After having done you must re-build and install the
library "libg++.a" using the newly made g++.
Here is the uu-stuff:
--- cut here --- cut here --- cut here --- cut here --- cut here ---
begin 644 gcc-2.7.2-decAlpha3.2d.tar.gz
<uuencoded_portion_removed>
'1/W[`"@``&]`
`
end
--- cut here --- cut here --- cut here --- cut here --- cut here ---
Hope this helps
Norbert
P.S. I would be appreciated if you could drop me a few lines
telling if all went good.
--
Norbert [norbert@dune.gia.rwth-aachen.de (134.130.159.38)]
N. Berzen, Geod. Inst. der RWTH-Aachen, Templergraben 55, 52056 Aachen
--
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] 13+ messages in thread* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-17 4:00 ` Norbert Berzen
@ 1996-04-25 4:00 ` Radenko Kalajdzic
1996-05-01 4:00 ` Phil Edwards
0 siblings, 1 reply; 13+ messages in thread
From: Radenko Kalajdzic @ 1996-04-25 4:00 UTC (permalink / raw)
: $ uudecode < xxx.uu
: $ cp gcc-2.7.2-decAlpha3.2d.tar.gz /usr/local/src/GNU/GCC
: $ cd /usr/local/src/GNU/GCC
: $ gunzip <gcc-2.7.2-decAlpha3.2d.tar.gz | tar xvf -
: $ patch <./gcc-2.7.2-decAlpha3.2d.patch
: $ cd gcc-2.7.2
: $ ./configure
: $ make bootstrap
: Norbert [norbert@dune.gia.rwth-aachen.de (134.130.159.38)]
It's OK !
I have rebuilt gcc2.7.2 and libg++ 2.7.1. But the warning:
Warning: clog defined as GLOBAL DATA but is defined in a shared
lib as a GLOBAL FUNC
is still here !
Example before the rebuilding of gcc an libg++:
------
didec25: ~/projets/adaline > make
g++ -c -g main.cc
g++ -c -g neurone.cc
g++ -c -g neurones_concrets.cc
g++ -c -g random.cc
g++ -g main.o neurone.o neurones_concrets.o random.o -o adaline
/usr/bin/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
/usr/bin/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
didec25: ~/projets/adaline >
------
Exemple after rebuiding:
------
didec30: ~/projets/adaline > make
g++ -c -g main.cc
g++ -c -g neurone.cc
g++ -c -g neurones_concrets.cc
g++ -c -g random.cc
g++ -g main.o neurone.o neurones_concrets.o random.o -o adaline
/usr/bin/ld:
Warning: clog defined as GLOBAL DATA but is defined in a shared
lib as a GLOBAL FUNC
/usr/bin/ld:
Warning: clog defined as GLOBAL DATA but is defined in a shared
lib as a GLOBAL FUNC
didec30: ~/projets/adaline >
------
What doing ?
Thanks in advance , Radenko
--
+------------------------------------------+--------------------------------+
| Radenko KALAJDZIC | |
| Departement d'Informatique (IB) | e-mail: rkalajdz@di.epfl.ch |
| Ecole Polytechnique Federale de Lausanne | http://diwww.epfl.ch/~rkalajdz |
| SWITZERLAND | tel.: (+4121) 646 55 93 |
+------------------------------------------+--------------------------------+
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-25 4:00 ` Radenko Kalajdzic
@ 1996-05-01 4:00 ` Phil Edwards
0 siblings, 0 replies; 13+ messages in thread
From: Phil Edwards @ 1996-05-01 4:00 UTC (permalink / raw)
With <4lo9l0$n8g@disunms.epfl.ch>,
it seems Radenko Kalajdzic (rkalajdz@di.epfl.ch) sez:
[snip rebuild notes]
+ /usr/bin/ld:
+ Warning: clog defined as GLOBAL DATA but is defined in a shared
+ lib as a GLOBAL FUNC
+ /usr/bin/ld:
+ Warning: clog defined as GLOBAL DATA but is defined in a shared
+ lib as a GLOBAL FUNC
+ didec30: ~/projets/adaline >
+ ------
The problem is due to a conflict between iostream.h and libm.a. The
iostream header file contains this declaration:
extern _IO_ostream_withassign cout, cerr, clog;
The conflict lies with the complex logarithm function declared in
the mathematics library:
[11 gamma]> cd /tmp
[12 gamma]> ar xv /usr/ccs/lib/libm.a clog.o
x - clog.o
[13 gamma]> nm clog.o
Name Value Type
Size
__dpml_globals_table | 0000000000000000 | N | 0000000000000000
_fpdata | 0000000000000000 | U | 0000000000000000
atan2 | 0000000000000000 | U | 0000000000000008
* clog | 0000000000000016 | T | 0000000000000008
hypot | 0000000000000000 | U | 0000000000000008
log | 0000000000000000 | U | 0000000000000008
[14 gamma]>
The *'ed line is the actual clog(3) function, and therein lies the
conflict: the GLOBAL DATA is the clog declared in the header file,
and the GLOBAL FUNCtion is the result of g++ automatically linking
in the math library even though one usually doesn't ask g++ to do
so.
The solution is one of:
1) Ignore it. ld(1) is just confused because the kind
folks at GNU are making stupid assumptions again.
2) Build a g++ which doesn't call for -lm, and thus not
link in the math library. If you do this, be certain
to keep backups of the original g++.
3) Build a math library which doesn't contain clog(3), and
name it libm.a; keep the "real" one as liboldm.a or
something. This is probably easier than (2), since all
it requires is lots of time spent with ar(1), but will
break any compilations requiring the complex logarithm
function. Probably a bad idea, all in all.
4) Find a version of g++ in which "g++" is just a script
which calls gcc with command-line arguments, and then
remove "-lm" from the script. Personally, I think GNU
made a /big/ mistake when they moved g++ to a separate
executable: their goal of "an integrated compiler" is
now further away, and "gcc" doesn't correctly detect a
C++ program anymore. Just my two timeslices there.
I went with option (1), and have been happier ever since.
Luck++;
Phil
--
#include<std/disclaimer.h> The gods do not protect fools. Fools
finger pedwards@gamma.cs.wright.edu are protected by more capable fools.
email pedwards@valhalla.cs.wright.edu -Larry Niven
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-17 4:00 ` Allen M. Cohen
1996-04-17 4:00 ` Norbert Berzen
@ 1996-04-18 4:00 ` Tim Lucia
1 sibling, 0 replies; 13+ messages in thread
From: Tim Lucia @ 1996-04-18 4:00 UTC (permalink / raw)
To: Allen M. Cohen
Allen M. Cohen wrote:
> > Carm Frascatore <cjf@odo.amherst.com> wrote:
> > >I am trying to build gcc 2.7.2 on an Alpha running Digital UNIX v3.2.
> > >I am able to build stage1 of the compiler ok, but when I use 'stage1/xgcc'
> > >to compile the next stage, I get the following warning:
> > >
> > >/usr/bin/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 version.o).
.
.
.
>
> I get this Warning whatever I build -- It's rather annoying!
> If you find a fix, let me know!
It is harmless. You may safely ignore it. gcc does not generate exception
frames.
--
Timothy J. Lucia Email: mailto:lucia@zko.dec.com
Digital Equipment Corporation Phone: 603.881.2615
110 Spitbrook Road ZK2-3Q08 Fax: 603.881.0120
Nashua, NH USA 03062-2698 I'd rather be cycling.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-15 4:00 ` Murray S. Kucherawy
1996-04-17 4:00 ` Allen M. Cohen
@ 1996-05-01 4:00 ` Daniel S. Riley
1996-05-01 4:00 ` Dale Hagglund
` (3 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: Daniel S. Riley @ 1996-05-01 4:00 UTC (permalink / raw)
With <4lo9l0$n8g@disunms.epfl.ch>,
it seems Radenko Kalajdzic (rkalajdz@di.epfl.ch) sez:
rkalajdz> /usr/bin/ld:
rkalajdz> Warning: clog defined as GLOBAL DATA but is defined in a shared
rkalajdz> lib as a GLOBAL FUNC
In article <4m6a4n$em2@valhalla.cs.wright.edu>
pedwards@valhalla.cs.wright.edu (Phil Edwards) writes:
pedwards> The problem is due to a conflict between iostream.h and
pedwards> libm.a. The iostream header file contains this declaration:
pedwards> extern _IO_ostream_withassign cout, cerr, clog;
[...]
pedwards> 3) Build a math library which doesn't contain clog(3), and
pedwards> name it libm.a; keep the "real" one as liboldm.a or
Won't fix it. The problem is with libm.so, not libm.a. If it were
libm.a, the linker would just ignore the object module with clog in it,
unless clog were actually called somewhere (in which case you have
trouble anyway). It doesn't have that option with shared libraries,
hence the message. To fix it, you either have to change the name of
clog in libm.so, or fix g++ to link explicitly to libm.a instead of -lm.
pedwards> 4) Find a version of g++ in which "g++" is just a script
pedwards> which calls gcc with command-line arguments, and then
pedwards> remove "-lm" from the script. Personally, I think GNU
pedwards> made a /big/ mistake when they moved g++ to a separate
pedwards> executable: their goal of "an integrated compiler" is
pedwards> now further away,
I don't understand this remark at all. g++ is just a front end that
calls gcc with the appropriate arguments; whether it is a shell script
or a C program makes no difference to how "integrated" the compiler
is, as long as the C program has the same functionality as the shell
script. The front-ends have very little to do with how "integrated"
the compiler is anyway--everything interesting is in the back-ends.
pedwards> and "gcc" doesn't correctly detect a C++ program
pedwards> anymore.
Works for me--the only thing gcc doesn't do is insert the C++
libraries and -lm on the link line. And it must work for you, if g++
works, since all g++ does is construct an appropriate invocation of
gcc (just like the shell script did). Compile with 'g++ -v' if you
don't believe me.
--
Dan Riley Internet: dsr@lns598.lns.cornell.edu
Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr)
http://w4.lns.cornell.edu/ "Distance means nothing/To me." -Kate Bush
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-15 4:00 ` Murray S. Kucherawy
1996-04-17 4:00 ` Allen M. Cohen
1996-05-01 4:00 ` Daniel S. Riley
@ 1996-05-01 4:00 ` Dale Hagglund
1996-05-08 4:00 ` Phil Edwards
` (2 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: Dale Hagglund @ 1996-05-01 4:00 UTC (permalink / raw)
In article, <4lo9l0$n8g@disunms.epfl.ch>, Radenko Kalajdzic writes:
radenko> [snip rebuild notes]
radenko> + /usr/bin/ld:
radenko> + Warning: clog defined as GLOBAL DATA but is defined in a shared
radenko> + lib as a GLOBAL FUNC
radenko> + /usr/bin/ld:
radenko> + ------
In article <4m6a4n$em2@valhalla.cs.wright.edu> pedwards@valhalla.cs.wright.edu (Phil Edwards) writes:
pedwards> The problem is due to a conflict between iostream.h
pedwards> and libm.a. [Both declare a "clog", one as a
pedwards> function, and the other as data.]
pedwards> The solution is one of:
pedwards> 1) Ignore it. ld(1) is just confused because
pedwards> the kind folks at GNU are making stupid
pedwards> assumptions again.
In addition to the message above, users of g++ here get the message
mentioned above, but they also get an additional warning out of
the linker when linking with g++ built for an ``alpha-dec-osf3.2''.
Warning: Linking some objects which contain exception
information and some which do not. This may cause
fatal runtime exception handling problems (last obj
encountered with out exceptions was [libstdc++.a].
This sounds rather ominous. Should I be concerned, or does can
solution (1) be used here as well?
Just to be clear, this is with gcc-2.7.2 and libg++-2.7.1.
Thanks in advance . . .
Dale.
--
Dale Hagglund rdh@microunity.com
MicroUnity Systems Engineering +1 408 734 8100
"The right thing, and two shillings, will get you a cup of tea." --R.P.Gabriel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-15 4:00 ` Murray S. Kucherawy
` (2 preceding siblings ...)
1996-05-01 4:00 ` Dale Hagglund
@ 1996-05-08 4:00 ` Phil Edwards
1996-05-08 4:00 ` Jason Merrill
1996-05-09 4:00 ` Gary Holt
5 siblings, 0 replies; 13+ messages in thread
From: Phil Edwards @ 1996-05-08 4:00 UTC (permalink / raw)
With <shybnctr78.fsf@lns100.lns.cornell.edu>,
it seems Daniel S. Riley (dsr@lns598.lns.cornell.edu) sez:
[...]
+ [...]
+ pedwards> 3) Build a math library which doesn't contain clog(3), and
+ pedwards> name it libm.a; keep the "real" one as liboldm.a or
+
+ Won't fix it. The problem is with libm.so, not libm.a. If it were
+ libm.a, the linker would just ignore the object module with clog in it,
+ unless clog were actually called somewhere (in which case you have
+ trouble anyway). It doesn't have that option with shared libraries,
+ hence the message. To fix it, you either have to change the name of
+ clog in libm.so, or fix g++ to link explicitly to libm.a instead of -lm.
Good point. IMHO, this might still pop up when compiling statically,
but as you say, they would have trouble anyway. And I'd love to "fix
g++ to link explicitly ...", but see below.
+ pedwards> 4) Find a version of g++ in which "g++" is just a script
+ pedwards> which calls gcc with command-line arguments, and then
+ pedwards> remove "-lm" from the script. Personally, I think GNU
+ pedwards> made a /big/ mistake when they moved g++ to a separate
+ pedwards> executable: their goal of "an integrated compiler" is
+ pedwards> now further away,
+
+ I don't understand this remark at all. g++ is just a front end that
+ calls gcc with the appropriate arguments; whether it is a shell script
+ or a C program makes no difference to how "integrated" the compiler
+ is,
It means I can't get inside the script and "fix g++" now. It used to
be very easy to change and customize without recompiling the entire
package. That flexibility is gone now.
+ as long as the C program has the same functionality as the shell
+ script. The front-ends have very little to do with how "integrated"
+ the compiler is anyway--everything interesting is in the back-ends.
My main beef with the g++ "integration" is...
+ pedwards> and "gcc" doesn't correctly detect a C++ program
+ pedwards> anymore.
+
+ Works for me--the only thing gcc doesn't do is insert the C++
+ libraries and -lm on the link line. And it must work for you, if g++
+ works, since all g++ does is construct an appropriate invocation of
+ gcc (just like the shell script did). Compile with 'g++ -v' if you
+ don't believe me.
1) I never asked GNU to automatically link the math library. Just
because I'm using C++ instead of C doesn't imply that I require the
hefty math functions present only in libm. I used to just invoke gcc
-- since the docs specify that it shouldn't matter, that gcc will see a
.C or .cc file and start looking for C++. Until...
2) I no longer have my little test bed program which would demonstrate
this, but I finally got fed up one day with gcc giving me braindead
errors on two pieces of reasonable C++ code. So I bit my tongue and
tried calling it as g++ instead. The first piece of code turned out to
be just fine -- it was simply a part of C that had been changed in the
C++ specifications, and the compiler was still treating it like illegal
C. The second piece of code still failed, but it failed with a
completely different error -- which turned out to be the /real/ problem
with that code.
I kept that .cc file for a long time, just to be able to demonstrate
that the testing of file extensions is broken in gcc 2.6.x and later,
and that to insure "C++ mode" one must call it as g++ -- which means
putting up with all of the moronic conflicts in the math library. One
/used/ to be able to simply use "gcc -x c++ -x none" along with any
other needed options -- much like the script would do -- and achieve a
perfect compilation. It still does this in 2.7.2, and now the docs
begin to imply that to get a perfect, really-C++-I-mean-it compilation,
one must use g++ because the binary image and only the binary image can
get the options correct.
I'm /this/ close to writing a dammit_i_never_asked_for_libm++
script, which calls g++, grabs the output, and greps out the two
clog-conflict lines, passing the rest onwards. :-|
Luck++;
Phil
--
pedwards@cs.wright.edu http://www.cs.wright.edu/people/students/pedwards/
The gods do not protect fools. Fools are
protected by more capable fools. -Larry Niven
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-15 4:00 ` Murray S. Kucherawy
` (3 preceding siblings ...)
1996-05-08 4:00 ` Phil Edwards
@ 1996-05-08 4:00 ` Jason Merrill
1996-05-09 4:00 ` Gary Holt
5 siblings, 0 replies; 13+ messages in thread
From: Jason Merrill @ 1996-05-08 4:00 UTC (permalink / raw)
>>>>> Phil Edwards <pedwards@valhalla.cs.wright.edu> writes:
> 1) I never asked GNU to automatically link the math library. Just
> because I'm using C++ instead of C doesn't imply that I require the
> hefty math functions present only in libm. I used to just invoke gcc
> -- since the docs specify that it shouldn't matter, that gcc will see a
> .C or .cc file and start looking for C++. Until...
The problem is that libstdc++ shared libraries depend on libm.
> 2) I no longer have my little test bed program which would demonstrate
> this, but I finally got fed up one day with gcc giving me braindead
> errors on two pieces of reasonable C++ code. So I bit my tongue and
> tried calling it as g++ instead. The first piece of code turned out to
> be just fine -- it was simply a part of C that had been changed in the
> C++ specifications, and the compiler was still treating it like illegal
> C.
You sure that file didn't have a .c extension? I've never heard of any
problems with recognising extensions before.
> I kept that .cc file for a long time, just to be able to demonstrate
> that the testing of file extensions is broken in gcc 2.6.x and later,
> and that to insure "C++ mode" one must call it as g++ -- which means
> putting up with all of the moronic conflicts in the math library. One
> /used/ to be able to simply use "gcc -x c++ -x none" along with any
> other needed options -- much like the script would do -- and achieve a
> perfect compilation. It still does this in 2.7.2, and now the docs
> begin to imply that to get a perfect, really-C++-I-mean-it compilation,
> one must use g++ because the binary image and only the binary image can
> get the options correct.
Nope, nope, nope. I usually use 'gcc'.
Jason
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: gcc 2.7.2, ld warnings on Digital UNIX v3.2
1996-04-15 4:00 ` Murray S. Kucherawy
` (4 preceding siblings ...)
1996-05-08 4:00 ` Jason Merrill
@ 1996-05-09 4:00 ` Gary Holt
5 siblings, 0 replies; 13+ messages in thread
From: Gary Holt @ 1996-05-09 4:00 UTC (permalink / raw)
In article <4mopm2$tvo@valhalla.cs.wright.edu> pedwards@valhalla.cs.wright.edu (Phil Edwards) writes:
I'm /this/ close to writing a dammit_i_never_asked_for_libm++
script, which calls g++, grabs the output, and greps out the two
clog-conflict lines, passing the rest onwards. :-|
What's the problem with removing clog from libg++ when you compile on the DEC
alpha? I got fed up myself and just changed libg++. It's a trivial patch to
make; you just have to modify two lines of source code. (I forget where; just
search through the .h and .c and .cc files for clog.)
If you really need to use clog in libg++, you could add the following line to
the appropriate include file in libg++:
#define clog clog_private
(You might also have to mess around with some of the other #defines, because I
think there's a #undef clog or something like that.) This would allow you to
use 'clog' in your C++ code, but when you link it would be called clog_private
and would not conflict with clog in libm.
--
Gary Holt (818)-395-2882
holt@klab.caltech.edu http://www.klab.caltech.edu/~holt/
^ permalink raw reply [flat|nested] 13+ messages in thread