From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11059 invoked by alias); 27 Jul 2009 16:56:11 -0000 Received: (qmail 11050 invoked by uid 22791); 27 Jul 2009 16:56:10 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Jul 2009 16:56:04 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6RGu2UB010633; Mon, 27 Jul 2009 12:56:02 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6RGu1il026187; Mon, 27 Jul 2009 12:56:01 -0400 Received: from pearl.pink (vpn-12-70.rdu.redhat.com [10.11.12.70]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6RGtxql015542; Mon, 27 Jul 2009 12:56:00 -0400 Message-ID: <4A6DDC1E.4060304@redhat.com> Date: Mon, 27 Jul 2009 16:56:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: David Michel CC: java@gcc.gnu.org Subject: Re: converting a jar into a shared lib - requirements ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00076.txt.bz2 On 07/27/2009 06:02 PM, David Michel wrote: > Hi All, > > While it works fine most of the tine, I have trouble converting some > jar files into shared lib where I get errors like: > > $ gcj -O0 -g0 -shared java-getopt-1.0.13.jar -o libgetopt-1.0.13.so > gnu/getopt/LongOpt.java: In class 'gnu.getopt.LongOpt': > gnu/getopt/LongOpt.java: In constructor > '(java.lang.String,int,java.lang.StringBuffer,int)': > gnu/getopt/LongOpt.java:103: internal compiler error: Segmentation fault > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. > For Debian GNU/Linux specific bug reporting instructions, > see . > > What are the requirements for a jar to be "convertible" into shared > lib ? I must be missing something trivial there !.... Maybe. If you can make an easily reproducible test case from this I'll have a look. You must supply all the files involved, the exact command used, the exact version of gccj, tec. Andrew.