an installation bug in either gcc, gld, or readline -- I don't know which

Andrew Koenig ark@research.att.com
Wed Dec 26 14:36:00 GMT 2001


Phil> This might be readline assuming that, because you're on a
Phil> Solaris system, that Solaris' ld is being used.  Clearly you're
Phil> using GNU's ld.  (Which is usually a smart thing to do on
Phil> Solaris.)  The compiler knows this, but the readline makefile
Phil> wouldn't.

Ah, that's interesting.  So I guess I could try changing my PATH to put
/bin/ld ahead of /usr/gnu/bin/ld when installing readline and see what happens.

Phil> I don't have GNU readline installed, so I can't verify this.  I do see
Phil> that there is a 4.2a released.  I will grab a copy and take a look.

Thanks.

Phil> In this case, it wouldn't help anyway: the -Wl switch is a hook,
Phil> which passes its argument(s) to the linker directly.  The linker
Phil> sees the -i without any rewriting.  For one linker it would be
Phil> okay, for another linker it isn't; so I suspect readline's
Phil> configuration is understandably assuming Sun's linker is
Phil> present.

It is present; it's just that the GNU linker is first on my search path.

Phil> P.S.- As an aside, I see that you yourself took the cover photo for
Phil> Accelerated C++.  Might I ask where that photo was taken?

It's a mountain pass in Norway named Trollstigveien.  It is even more
astonishing in person than in the photo.




						Regards,

						Andrew Koenig



More information about the Gcc-bugs mailing list