My apologies if this post runs too verbose... but if there's one thing I
hate, it's when people ask for help, post a vague error message, and
scamper off. I've tried to post as much as I can without going overboard,
as well as detailing what I know that I don't know, so

Alright, let me be straight up honest from the get go about a few
important things:

1. I'm absolutely HORRIBLE with make files. HORRIBLE. I've been spoiled
by years of Visual Studio / Netbeans / Codeblocks / foo-ide programming.
So forgive whatever idiocy I convey in that category.

2. I didn't write the program I'm trying to build (although I know most
of it, have been working on it for a while, OpenGL over C++ mostly) or the
makefile (reference 1).

3. I'm not GREAT with Linux yet. I love it from what I've done seen of
it thus far, but I've still got a long ways to go.

Okay. So onto the bizarre story of the program which currently exists in
two versions.. old version and new version, both of which have a major
linking problem...

OLD VERSION LINKING PROBLEM

Had a working version of the program. Worked fine. Built a new version
of the app in a completely separate directory of the HD to work on some
new features. Had issues getting that new app to build (that's part two
below... ). Anyway, came back to run old version of the app and it won't
run. The error message and ldd say it's trying to link against
libstdc++.so.5, when version 6 is the only one on the drive, and
previously the program... well, ran fine. No rebuilds, no updates (the
machine is on a server which isn't connected to the internet to be able to
pull updates), nothing. I'd been working on that new version of the
program on a separate location on the drive, that's the ONLY thing I can
think of that had been going on between when it worked and when it
didn't.. but I can't imagine how it would have changed which library it
linked against.

I have a copy of the program on three other machines, they all show ldd as
linking against libstdc++.so.6 as well. I'm horribly confused and
frustrated. I hadn't ever run ldd on it before, so I don't know what it
pointed to in the past, but it currently wants libstdc++.so.5 and I have
ZERO idea why.

NEW VERSION LINKING PROBLEM

I can't get the $*#% thing to build properly. libGl.so is included in
the makefile via -lGL, when it gets to that phase, I start getting the
following errors:

warning: libGLcore.so.1, needed by /usr/lib64/libGL.so, not found (try
using -rpath or -rpath-link)
warning: libnvidia-tls.so.1, needed by /usr/lib64/libGL.so, not found
(try using -rpath or -rpath-link)
warning: every frigging library on your hard drive, needed by
/usr/lib64/libGL.so, not found (try using -rpath or -rpath-link)

I've checked, double checked, quintuple checked, and checked some more,
and every library that it says it can't find reside in /usr/lib64/. I've
tried adding /usr/lib64 to my ld.so.conf, ran ldconfig, tried adding
-L/usr/lib64 to the makefile. Tried asking nicely and threatening
menacingly. Nothing going. Why in the world can't it find these
libraries, particularly if it can find /usr/lib64/libGL.so?

-------

Any advice at this point is welcome... other than remaking the old one
until I can prove I can make the new one, because as badly as that's
going, I'm too paranoid to even TRY to make the old one again...