public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Shared Libraries by GCC 3.0.4 on AIX 5.1
       [not found] <000001c1f526$30d4f670$4be610ac@JUBINd>
@ 2002-05-06 11:19 ` David Edelsohn
  0 siblings, 0 replies; only message in thread
From: David Edelsohn @ 2002-05-06 11:19 UTC (permalink / raw)
  To: Jubin; +Cc: gcc-help

>>>>> 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-06 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <000001c1f526$30d4f670$4be610ac@JUBINd>
2002-05-06 11:19 ` Shared Libraries by GCC 3.0.4 on AIX 5.1 David Edelsohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).