tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Valerie Caro <valerie () cs ! umass ! edu>
To: tru64-unix-managers
Subject: Are there OS patches that solve the G++ symbol clash problem?
Date: Fri, 13 Oct 2000 16:32:15 +0000	[thread overview]
Message-ID: <97145460202143.tru64-unix-managers.marc@archive.invalid> (raw)


	Many thanks to all who have helped figure out how to resolve the
symbol clash problem that occurs when linking the dynamic stdc++ library
on Alpha (more info at  http://gcc.gnu.org/install/specific.html#alpha*-dec-osf*)

	Seeing as our environment is already using the shared libstdc++,
we can't remove it (it would break programs for many users), nor can we
create future incompatibilities by inserting libgcc symbols into
libstdc++; instead, we have devised another workaround:

	We run g++ with the "-v" flag, and modify the produced "collect2"
command (it's the link command) to frame the "-lstdc++" directive with
"-no_so" and "-so_shared" directives. Executing this modified linker
directive allows the linker to link only libstdc++ statically, but not
other libraries.

	The problem is that this process is rather cumbersome. One would
imagine that there would be OS patches which would repair this linker
problem. Does anyone know if such patches are available for Digital Unix 4.0d?

---
Valerie Caro            Computer Science Computing Facility,
valerie@cs.umass.edu    CmpSci Room 126
                        University of Massachusetts
                        Amherst, MA           01003

                 reply	other threads:[~2000-10-13 16:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox