This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc version 3.0.4: problem with shared library


Dear sir/madam,

I have tried to install gcc version 3.0.4,  on Debian 2.4.8: downloaded
the source, CVS'ed and then make bootstrap, make install (no options
whatsoever). Still after exporting the LD_LIBRARY_PATH=/usr/local/bin, I
run into trouble when using libstdc++.so.3.

Here is the program that fails:

#include <iostream>
int main()
{
  std::cout << "hello, world" << std::endl;
}

I compile with g++ -c -Wall main.cc   g++ -o hello hello.o and when I
run it, I receive the following error:

./hello: error in loading shared libraries:
/usr/local/lib/libstdc++.so.3: undefined symbol: __dso_handle

This is actually the second time I install the same gcc version. I have
removed the files in usr/local/bin usr/local/lib and usr/local/include.
The old gcc compiler was in usr/bin, version 2.95.2

Here is the output of the config.guess, gcc -v and uname -a files
michele@arco:/usr/src/gcc$ ./config.guess
i686-pc-linux-gnu

michele@arco:/usr/src/gcc$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/specs
Configured with: /usr/src/gcc/configure
Thread model: single
gcc version 3.0.4

michele@arco:/usr/src/gcc$ uname -a
Linux arco 2.4.8 #2 Fri Sep 21 00:04:22 CEST 2001 i686 unknown

best regards
michele zaffalon




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]