From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9416 invoked by alias); 30 Sep 2002 07:43:37 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 9395 invoked from network); 30 Sep 2002 07:43:36 -0000 Received: from unknown (HELO avsmtps.huge.ad.hcuge.ch) (129.195.248.138) by sources.redhat.com with SMTP; 30 Sep 2002 07:43:36 -0000 Received: from saruman.hcuge.ch (unverified) by avsmtps.huge.ad.hcuge.ch (Content Technologies SMTPRS 4.2.10) with SMTP id for ; Mon, 30 Sep 2002 09:41:45 +0200 Received: from pet7.hcuge.ch (pet7 [129.195.171.45]) by saruman.hcuge.ch (8.11.6/8.11.6) with SMTP id g8U7hSZ19668 for ; Mon, 30 Sep 2002 09:43:29 +0200 (MEST) Date: Mon, 30 Sep 2002 10:36:00 -0000 From: "F. Schoenahl" To: gsl-discuss@sources.redhat.com Subject: Re: Core dumped with test prog. Message-Id: <20020930094311.7454073e.ceo@free.fr> In-Reply-To: <15763.21685.739777.148653@debian> References: <20020926122335.3c068996.ceo@free.fr> <15763.21685.739777.148653@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2002-q3/txt/msg00241.txt.bz2 [Brian Gough =E9crivait/wrote :] =20 > > I receive a core dumped when trying to execute a small binary > > (GCC 2.95.3, Solaris Sparc 2.7) compiled with gcc -g main.c -o > > sample -lgsl -lgslcblas > > main.c is the example program of the documentation (bessel_sf_J0). > > Program received signal SIGSEGV, Segmentation fault. > > 0xff31a958 in __do_global_ctors_aux () from > > /usr/local/lib/libgsl.so.0 > > Any help?=20 >=20 > Try explicitly linking with the static version library=20 > gcc -g main.c -o sample /usr/local/lib/libgsl.a \ > /usr/local/lib/libgslcblas.a > to see if the problem is related to shared libraries on Solaris. That's it! I just had to add "-lm" to your line, the binary is now OK..=20 Keep on the good work on the library... I stay at disposition if I can help= more on this problem. Regards, Frederic