[vox-tech] misc. XF86 4 upgrade and accel 3D issues
Rod Roark
vox-tech@lists.lugod.org
Fri, 15 Feb 2002 06:59:44 -0800
On Friday 15 February 2002 03:04 am, nbs wrote:
> ...
> Terminus, unfortunately, won't run due to a libstdc++ conflict. (A
> simple symblink won't fix it, so I've had to resort to e-mailing
> Vicarious Vision's support address.) ....
It's unfortunate that the libstdc++ so in various versions of gcc-2.9x
have exactly the same name, yet are incompatible. This makes it a pain
to use, for example, gcc-2.95.3 alongside Red Hat's various 2.96 versions.
What you can do is install the needed gcc and rename all occurrences of
libstdc++ to something else (like libstdx++) in both this gcc installation
and in the apps that need it. Here's a little script I wrote that helps
with this:
#!/bin/bash
#
# Replace 'libstdc++' with 'libstdx++' in all "regular" files in
# the current directory tree.
#
touch rodsgarbage1 rodsgarbage2
echo " "
echo "Be patient, this may take a few minutes..."
sleep 1
echo "Scanning for 'libstdc++'..."
perl -pi -e 's/libstdc[+][+]/libstdx++/g' rodsgarbage2 `find -type f -exec grep -q libstdc[+][+] {} \; -print`
echo "Scanning for '-lstdc++'..."
perl -pi -e 's/-lstdc[+][+]/-lstdx++/g' rodsgarbage2 `find -type f -exec grep -q lstdc[+][+] {} \; -print`
echo " "
echo "The following files were changed:"
echo " "
rm rodsgarbage2
find -type f -newer rodsgarbage1
rm rodsgarbage1
echo " "
-- Rod
http://www.sunsetsystems.com/