Fwd: problem with gsl

[email protected]
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>

---------- Forwarded message ----------
From: Omkar Pangarkar
Date: 22 Aug 2005 15:24:16 -0000
Subject: problem with gsl
To: [email protected]

Hi,
I have recently installed lush 1.0 and gsl 1.6 (gsl after installing
lush)
I have blas and lapack which came along with redhat 9.0
My computer configurations are
Red hat linux 9.0
Intel pentium 3 processor,192mb ram,650mhz.
gcc 3.2.2 with all the gnu utilities came along with Redhat 9

I have compiled gsl properly and did 'make install' (as root).
Hence there seemed no problem in gsl installation.
As u can see my library files; i have libgsl.so and all

[omkar@localhost lib]$ pwd
/usr/local/lib
[omkar@localhost lib]$ ls
ivtools                 	libcv.la                  	libgslcblas.a
   	libIV.so
libAttrGlyph.so         	libcv.so                  	libgslcblas.la
   		libIV.so.1.2.2
libAttrGlyph.so.1.2.2 	libcv.so.0                	libgslcblas.so
 	libOverlayUnidraw.so
libAttribute.so         	libcv.so.0.9.7            	libgslcblas.so.0
   	libOverlayUnidraw.so.1.2.2
libAttribute.so.1.2.2   	libcxcore.la             	libgslcblas.so.0.0.0
  	libTime.so
libComGlyph.so          	libcxcore.so              	libgsl.la
   		libTime.so.1.2.2
libComGlyph.so.1.2.2    	libcxcore.so.0            	libgsl.so
  		libTopoFace.so
libComTerp.so           	libcxcore.so.0.9.7        	libgsl.so.0
   		libTopoFace.so.1.2.2
libComTerp.so.1.2.2     	libdha.so.1               	libgsl.so.0.7.0
   	libUnidraw-common.so
libComUnidraw.so        	libdha.so.1.0             	libhighgui.la
   		libUnidraw-common.so.1.2.2
libComUnidraw.so.1.2.2  	libDrawServ.so            	libhighgui.so
   	libUnidraw.so
libComUtil.so           	libDrawServ.so.1.2.2      	libhighgui.so.0
  	libUnidraw.so.1.2.2
libComUtil.so.1.2.2     	libFrameUnidraw.so        	libhighgui.so.0.9.7
   	libUniIdraw.so
libcvaux.la            	libFrameUnidraw.so.1.2.2  	libIV-common.so
  	libUniIdraw.so.1.2.2
libcvaux.so            	libGraphUnidraw.so
	libIV-common.so.1.2.2  	mplayer
libcvaux.so.0          	libGraphUnidraw.so.1.2.2  	libIVGlyph.so
  	pkgconfig
libcvaux.so.0.9.7       	libgsl.a                  	libIVGlyph.so.1.2.2


When i tried to load the libnum.lsh file as told in the helptool;
lush gives the following message :

? (libload "/home/omkar/lush-1.0/packages/libnum/libnum.lsh")
 [libnum.lsh]
 [special.lsh]
 [gsl-config.lsh]
 [gsl-idx.lsh]
 [libc.lsh]
gcc -DHAVE_CONFIG_H   -DNO_DEBUG -Wall -O3 -mcpu=i686 -pthread
-I/usr/local/share/lush/include -I/usr/X11R6/include -c
/home/omkar/.lush/packages/gsl/C/gsl_idx.c -o
/home/omkar/.lush/packages/gsl/C/i686-pc-linux-gnu/gsl_idx.oIn file
included
from
/home/omkar/.lush/packages/gsl/C/gsl_idx.c:223:/usr/local/include/gsl/gsl_wavele
t.h:39: redefinition of `forward'/usr/local/include/gsl/gsl_fft.h:39:
`forward'
previously defined here/usr/local/include/gsl/gsl_wavelet.h:40:
redefinition of
`backward'/usr/local/include/gsl/gsl_fft.h:40: `backward' previously
defined
here*** dhc-make-o : Compiler returned error code : 256
Debug toplevel [y/n] ?y**
in:   (dhc-make-o src obj cflags)** from: (when (dhc-make-rebuild-p obj
(list
src)) (dhc-make- ...** from: (dhc-make-o-maybe cfname ofname)
** from: (let ((cfname (concat fname "." (or (getconf "CEXT")  ...
** from: (let* ((force ()) (snname ()) (sndir ()) (cdir ()) ( ...
** from: (dhc-make-all () (quote (dummy-gsl-idx gsl-vector-co ...
[Debug]
?


One more thing, I want to install lush 1.1 now, but I have lush 1.0
already installed.
So how should I do it?

I am a lush newbie and want to learn lush very much.

Also when i try to compile following gsl c program using gcc
as given in handbook of gsl:

#include <stdio.h>
     #include <gsl/gsl_sf_bessel.h>

     int
     main (void)
     {
       double x = 5.0;
       double y = gsl_sf_bessel_J0 (x);
       printf ("J0(%g) = %.18e\n", x, y);
       return 0;
     }

gcc gave me following error:

[omkar@localhost omkar]$ gcc gsl1.c
gsl1.c:13:1: warning: no newline at end of file
/tmp/ccuZcvz7.o(.text+0x28): In function `main':
: undefined reference to `gsl_sf_bessel_J0'
collect2: ld returned 1 exit status
[omkar@localhost omkar]$

Hence there might be problem in the gsl itself.
I want gsl badly.
Please help me to solve it.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.