This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Shared Libraries by GCC 3.0.4 on AIX 5.1
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: "Jubin" <jubind at subexgroup dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 06 May 2002 14:19:22 -0400
- Subject: Re: Shared Libraries by GCC 3.0.4 on AIX 5.1
>>>>> Jubin writes:
Jubin> From the mailing list archive i understand that GCC 3.0.4 cannot create
Jubin> shared libraries reliably on AIX 5.1. Is this correct ?.
Jubin> What ever shared libraries i tried to create does'nt get copied to install
Jubin> directory.
Jubin> When i copied it manually and loaded it crashed giving error "Illegal
Jubin> Instruction".
I am not aware of shared library problems with GCC 3.0.4.
Make sure that you do not have other copies of the libraries
installed on the system.
If you moved any shared libraries around or removed them, make
sure that you have run "slibclean" so that AIX does not use an old, cached
copy.
Depending on how you linked your application to the shared
library, you may need to include the directory where the shared library is
installed in your LIBPATH environment variable.
If your shared library expects SVR4 behavior, you will need to use
the AIX "run-time linking" feature (AIX linker -G/-brtl options).
GCC "-shared" will invoke the AIX linker with the appropriate
flags to create an AIX-style, tightly-bound shared library. No additional
flags are needed when linking the application to the shared library. If
one needs to create a SVR4-style shared library, the shared library needs
to be created with the "-G" flag (GCC -Wl,-G) and the application needs to
be linked to the library with the "-brtl" flag (GCC -Wl,-brtl). Please
read the AIX linker documentation the GCC compiler documentation for
further information about creating shared libraries and these compiler and
linker commandline options.
David