* Core dumped with test prog.
@ 2002-09-26 7:38 F. Schoenahl
2002-09-26 17:01 ` Brian Gough
0 siblings, 1 reply; 3+ messages in thread
From: F. Schoenahl @ 2002-09-26 7:38 UTC (permalink / raw)
To: gsl-discuss
Hi,
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).
Here are some details:
uname -a
SunOS ultraphys 5.7 Generic_106541-20 sun4u sparc
gcc --version
2.95.3
gcc -dumpmachine
sparc-sun-solaris2.7
gdb (>>run)
Program received signal SIGSEGV, Segmentation fault.
0xff31a958 in __do_global_ctors_aux () from /usr/local/lib/libgsl.so.0
Any help?
I can send the core file to a personal adress if someone can use it.
Thanks a lot,
--
frederic.schoenahl [at] hcuge [dot] ch
PET & Neuroscience research group - Div. Nucl. Med. /Geneva Univ. Hosp.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Core dumped with test prog.
2002-09-26 7:38 Core dumped with test prog F. Schoenahl
@ 2002-09-26 17:01 ` Brian Gough
2002-09-30 10:36 ` F. Schoenahl
0 siblings, 1 reply; 3+ messages in thread
From: Brian Gough @ 2002-09-26 17:01 UTC (permalink / raw)
To: F. Schoenahl; +Cc: gsl-discuss
F. Schoenahl writes:
> 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?
Try explicitly linking with the static version library
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.
regards
Brian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Core dumped with test prog.
2002-09-26 17:01 ` Brian Gough
@ 2002-09-30 10:36 ` F. Schoenahl
0 siblings, 0 replies; 3+ messages in thread
From: F. Schoenahl @ 2002-09-30 10:36 UTC (permalink / raw)
To: gsl-discuss
[Brian Gough <bjg@network-theory.co.uk> écrivait/wrote :]
> > 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?
>
> Try explicitly linking with the static version library
> 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..
Keep on the good work on the library... I stay at disposition if I can help more on this problem.
Regards,
Frederic
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-30 7:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26 7:38 Core dumped with test prog F. Schoenahl
2002-09-26 17:01 ` Brian Gough
2002-09-30 10:36 ` F. Schoenahl
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).