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]

Re: AIX 4.1 shared library support, egcs1.1b


Andrey Slepuhin wrote:
> 
> On 10-Sep-98 Klaus Wiehler wrote:
> > Hi out there,
> >
> > I have still not managed to build a simple shared library.
> > (actually I'm trying to build a shared kde tool kit...)
> >
> > g++ -c function.c                   (containing a dummy function)
> > g++ -shared -o libtest.a function.o  (.. this should produce a shared
> > lib)
> >
> > g++ -c main.cc                      (calling the dummy)
> > g++ -o test main.o -L$cwd -ltest
> >
> > will compile but is complaining at run time:
> >  0509-037 System error - error data is: test
> >  0509-022 Cannot load library ..
> >  0509-026 System error: The file access permissions do not allow the
> > specified action.
> >
> > BTW gcc 2.7.2 is producing a shared lib which can be loaded!
> > also dump -H produces a "good" result - I really don't know what's going
> > on?
> 
> Can you send me compiler output with options "-v -Wl,-v" specified and
> a result of "dump -H"? This can help to find a problem.
> 
> Regards,
> Andrey.
here we go:
g++ -Wl,-v -v -shared -o libtest.a function.o
Reading specs from
/software/egcs-1.1b/AIX4.1.4/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)

/software/egcs-1.1b/AIX4.1.4/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/egcs-2.91.57/collect2
-bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -bM:SRE -bnoentry
-o libtest.a
-L/software/egcs-1.1b/AIX4.1.4/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/egcs-2.91.57
-L/software/egcs-1.1b/AIX4.1.4/powerpc-ibm-aix4.1.4.0/lib
-L/software/egcs-1.1b/AIX4.1.4/lib -v function.o -lstdc++ -lm
/software/egcs-1.1b/AIX4.1.4/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/egcs-2.91.57/libgcc.a
-lc
/software/egcs-1.1b/AIX4.1.4/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/egcs-2.91.57/libgcc.a
collect2 version egcs-2.91.57 19980901 (egcs-1.1 release)
/software/egcs-1.1b/AIX4.1.4/bin/g++ -x c -c -o /tmp/cc8ieD6K.o
-fno-exceptions /tmp/ccmrSu6W.c
/bin/ld -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -bM:SRE
-bnoentry -o libtest.a
-L/software/egcs-1.1b/AIX4.1.4/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/egcs-2.91.57
-L/software/egcs-1.1b/AIX4.1.4/powerpc-ibm-aix4.1.4.0/lib
-L/software/egcs-1.1b/AIX4.1.4/lib -v function.o /tmp/cc8ieD6K.o
-lstdc++ -lm -lc -bE:/tmp/ccwGkwqA.x -bI:/tmp/cc8cYDTo.p
ld: 0711-323 WARNING: Storage-mapping class of symbol errno
        changed from XMC_UA to XMC_RW because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __terminate
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __get_eh_context
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __sjthrow
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __udivdi3
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __umoddi3
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __builtin_delete
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol
__builtin_vec_delete
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __builtin_vec_new
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __rtti_class
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __rtti_si
        changed from XMC_UA to XMC_DS because of references.
ld: 0711-323 WARNING: Storage-mapping class of symbol __rtti_user
        changed from XMC_UA to XMC_DS because of references.
g++ -o test main.o -L/home2/wiehler/tmp/shared -ltest



... hope that will help...

klaus



-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Klaus Wiehler, http://www.ti1.tu-harburg.de/~wiehler
eMail: k.wiehler@tu-harburg.de, Tel: +49 (0)40 7718-3536, Fax: -2911
Technische Uni Hamburg-Harburg
Arbeitsbereich Technische Informatik, Raum 117

Harburger Schlosstrasse 20
21071 Hamburg, Germany


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