Bug#140186: g++-3.0, result of using the : undefined symbol: __dso_handle
Package: g++-3.0
Version: 1:3.0.3-1 and 1:3.0.4-6
Severity: serious
Compilation is fine. When I try to execute, I get the following
problem :
relocation error:
undefined symbol: __dso_handle
The error literally looks like so :
flatmax@relationax:~/research/fft$ ./complexFFTExample
./complexFFTExample: relocation error:
/home/flatmax/lib/libfft.so.0.1: undefined symbol:
__dso_handle
The same error happens with anything compiled using dynamic libraries.
The same error does not exist if everything is staticaly compiled.
libfft.so.0.1 is linked like so :
ld -shared -soname libfft.so.0.1 -o libfft.so.0.1 $(OBJ)
Where the objects are compiled using the following rules :
g++-3.0 -fPIC -c source.cc
The required libraries for dynamic linking are :
flatmax@relationax:~/research/fft$ ldd ./complexFFTExample
librfftw.so.2 => /usr/lib/librfftw.so.2 (0x4001d000)
libfftw.so.2 => /usr/lib/libfftw.so.2 (0x4004b000)
libfft.so.0.1 => /home/flatmax/lib/libfft.so.0.1 (0x4007f000)
libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x4008e000)
libm.so.6 => /lib/libm.so.6 (0x4011f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40141000)
libc.so.6 => /lib/libc.so.6 (0x40148000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Static linking requires the following libraries :
flatmax@relationax:~/research/fft$ ldd ./complexFFTExample
librfftw.so.2 => /usr/lib/librfftw.so.2 (0x4001d000)
libfftw.so.2 => /usr/lib/libfftw.so.2 (0x4004b000)
libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x4007f000)
libm.so.6 => /lib/libm.so.6 (0x40110000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40132000)
libc.so.6 => /lib/libc.so.6 (0x40139000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
thanks
Matt
--
http://mffm.darktech.org
WSOLA TimeScale Audio Mod : http://mffmtimescale.sourceforge.net/
Vector Bass : http://mffmvectorbass.sourceforge.net/
Multimedia Time Code : http://mffmtimecode.sourceforge.net/
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: