From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23621 invoked by alias); 6 May 2002 18:19:58 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23583 invoked from network); 6 May 2002 18:19:54 -0000 Received: from unknown (HELO igw3.watson.ibm.com) (198.81.209.18) by sources.redhat.com with SMTP; 6 May 2002 18:19:54 -0000 Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57]) by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g46IJMQ10442; Mon, 6 May 2002 14:19:22 -0400 Received: from makai.watson.ibm.com (makai.watson.ibm.com [9.2.216.144]) by sp1n293en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g46IJMd27416; Mon, 6 May 2002 14:19:22 -0400 Received: from watson.ibm.com (localhost [127.0.0.1]) by makai.watson.ibm.com (AIX4.3/8.9.3/8.9.3/01-10-2000) with ESMTP id OAA14010; Mon, 6 May 2002 14:19:22 -0400 Message-Id: <200205061819.OAA14010@makai.watson.ibm.com> To: "Jubin" cc: gcc-help@gcc.gnu.org Subject: Re: Shared Libraries by GCC 3.0.4 on AIX 5.1 In-Reply-To: Message from "Jubin" of "Mon, 06 May 2002 23:18:10 +0530." <000001c1f526$30d4f670$4be610ac@JUBINd> Date: Mon, 06 May 2002 11:19:00 -0000 From: David Edelsohn X-SW-Source: 2002-05/txt/msg00065.txt.bz2 >>>>> 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