This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Shared libs on AIX 4.1?
- To: egcs at cygnus dot com
- Subject: Shared libs on AIX 4.1?
- From: Martin Reinecke <martin at mpa-garching dot mpg dot de>
- Date: Tue, 19 May 1998 11:31:39 +0200
Hello,
yesterday I grabbed a copy of egcs-1.0.3a (core and g++ package)
and compiled it under AIX 4.1.4.0 with --enable-shared, --enable-haifa and
--prefix=some directory.
There were no problems during compilation and installation.
Then I compiled a hello world program:
#include <iostream.h>
int main() { cout << "Hello world" << endl << flush; }
This also compiled and linked without error messages, but executing a.out
produced the following output:
Could not load program a.out
Could not load library .
Error was: Permission denied
The program works when linking is done against the static C++ library
(libstdc++-ar.a).
Is there a possibility to create shared libraries with egcs under AIX 4.1?
If so, can anyone give me a hint what went wrong?
Thanks in advance,
Martin Reinecke (martin@mpa-garching.mpg.de)
P.S.: This is the verbose compiler output:
Reading specs from /afs/mpa/common/pdsoft/appl/egcs//lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
/afs/mpa/common/pdsoft/appl/egcs//lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -Asystem(unix) -Asystem(aix) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -D_ARCH_COM test.cc /tmp/ccRq65aa.ii
GNU CPP version egcs-2.90.29 980515 (egcs-1.0.3 release)
#include "..." search starts here:
#include <...> search starts here:
/afs/mpa/common/pdsoft/appl/egcs/include/g++
/usr/local/include
/afs/mpa/common/pdsoft/appl/egcs/rs6000-ibm-aix4.1.4.0/include
/afs/mpa/common/pdsoft/appl/egcs/lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29/include
/usr/include
End of search list.
/afs/mpa/common/pdsoft/appl/egcs//lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29/cc1plus /tmp/ccRq65aa.ii -quiet -dumpbase test.cc -version -o /tmp/ccRq65aa.s
GNU C++ version egcs-2.90.29 980515 (egcs-1.0.3 release) (rs6000-ibm-aix4.1.4.0) compiled by GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release).
as -u -mcom -o /tmp/ccRq65aa1.o /tmp/ccRq65aa.s
/afs/mpa/common/pdsoft/appl/egcs//lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29/ld -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect /lib/crt0.o -L/afs/mpa/common/pdsoft/appl/egcs//lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29 -L/afs/mpa/common/pdsoft/appl/egcs//rs6000-ibm-aix4.1.4.0/lib -L/afs/mpa/common/pdsoft/appl/egcs//lib /tmp/ccRq65aa1.o -lstdc++ -lm /afs/mpa/common/pdsoft/appl/egcs//lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29/libgcc.a -lc /afs/mpa/common/pdsoft/appl/egcs//lib/gcc-lib/rs6000-ibm-aix4.1.4.0/egcs-2.90.29/libgcc.a