libstdc++ broken in gcc-2.95.2 on AIX

James Carlson carlson@workingcode.com
Sat Apr 8 22:26:00 GMT 2000


Libstdc++ gets built incorrectly on gcc-2.95.2 on AIX 4.1.5; it
attempts to reference a non-existent shared library file called ".".
This causes all applications built with "g++" on this platform to fail
like this:

% cat foo.cc
#include <iostream.h>
int main() { cout << "Hello, world!\n"; }
% g++ -o foo foo.cc
% foo
Could not load program foo 
Could not load library .
Error was: Permission denied
%

Other information:

% gcc -v
Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/2.95.2/specs
gcc version 2.95.2 19991024 (release)
% ls -sl /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/2.95.2/libstdc++.a
   0 lrwxrwxrwx   1 root     prog          28 Apr 03 22:15 /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/2.95.2/libstdc++.a@ -> ../../../libstdc++.so.2.10.0
% ldd /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/2.95.2/libstdc++.a
Could not load program /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/2.95.2/libstdc++.a 
Could not load library .
% 

Gcc was configured with:

	/cdstaging/tmp/gcc-2.95.2/configure --enable-shared --with-gnu-as --enable-threads

And compiled with:

	make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean

It appears to compile regular C programs with no trouble.  I built all
of perl-5.6.0, gtk-1.2.7, and gimp-1.0.4 as a test.  I'm experimenting
now to see if I can't clear up the libstdc++ problems by tinkering.

-- 
James Carlson                                  <carlson@workingcode.com>
"PPP Design and Debugging" --- http://people.ne.mediaone.net/carlson/ppp


More information about the Gcc-bugs mailing list