Version franaise
Home About Download Resources Contact us
Browse thread
ocamlgsl-0.6.0. fails to compile on ubuntu
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mikhalev, Alex <a.mikhalev@c...>
Subject: ocamlgsl-0.6.0. fails to compile on ubuntu
Dear All,
Any help will be appreciated as well as suggestion to any docs or
tutorial (I have seen README and website). All error messages and system
configuration below.
Regards,
Alex
>tar zxvf ocamlgsl-0.6.0.tar.gz 
>cd ocamlgsl-0.6.0/
>make
/ocamlgsl-0.6.0$ make
/bin/sh: gawk: not found
/bin/sh: gawk: not found
/bin/sh: gawk: not found
Makefile:100: mingw.mak: No such file or directory
/bin/sh: gawk: not found
make: *** No rule to make target `mingw.mak'. Stop.
>sudo aptitude install gawk
Setting up gawk (3.1.5.dfsg-4build1) ...
>make
....
ocamlc -ccopt ' -DHAVE_INLINE -DHAVE_FENV -g -O2 ' -c mlgsl_eigen.c
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymm_alloc’:
mlgsl_eigen.c:152: error: ‘gsl_eigen_nonsymm_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:152: error: (Each undeclared identifier is reported only
once
mlgsl_eigen.c:152: error: for each function it appears in.)
mlgsl_eigen.c:152: error: ‘ws’ undeclared (first use in this function)
mlgsl_eigen.c:152: warning: implicit declaration of function
‘gsl_eigen_nonsymm_alloc’
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymm_free’:
mlgsl_eigen.c:159: warning: implicit declaration of function
‘gsl_eigen_nonsymm_free’
mlgsl_eigen.c:159: error: ‘gsl_eigen_nonsymm_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:159: error: expected expression before ‘)’ token
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymm’:
mlgsl_eigen.c:167: warning: implicit declaration of function
‘gsl_eigen_nonsymm’
mlgsl_eigen.c:167: error: ‘gsl_eigen_nonsymm_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:167: error: expected expression before ‘)’ token
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymm_Z’:
mlgsl_eigen.c:177: warning: implicit declaration of function
‘gsl_eigen_nonsymm_Z’
mlgsl_eigen.c:177: error: ‘gsl_eigen_nonsymm_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:177: error: expected expression before ‘)’ token
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymmv_alloc’:
mlgsl_eigen.c:184: error: ‘gsl_eigen_nonsymmv_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:184: error: ‘ws’ undeclared (first use in this function)
mlgsl_eigen.c:184: warning: implicit declaration of function
‘gsl_eigen_nonsymmv_alloc’
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymmv_free’:
mlgsl_eigen.c:191: warning: implicit declaration of function
‘gsl_eigen_nonsymmv_free’
mlgsl_eigen.c:191: error: ‘gsl_eigen_nonsymmv_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:191: error: expected expression before ‘)’ token
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymmv’:
mlgsl_eigen.c:201: warning: implicit declaration of function
‘gsl_eigen_nonsymmv’
mlgsl_eigen.c:201: error: ‘gsl_eigen_nonsymmv_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:201: error: expected expression before ‘)’ token
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymmv_Z’:
mlgsl_eigen.c:213: warning: implicit declaration of function
‘gsl_eigen_nonsymmv_Z’
mlgsl_eigen.c:213: error: ‘gsl_eigen_nonsymmv_workspace’ undeclared
(first use in this function)
mlgsl_eigen.c:213: error: expected expression before ‘)’ token
mlgsl_eigen.c: In function ‘ml_gsl_eigen_nonsymmv_sort’:
mlgsl_eigen.c:225: warning: implicit declaration of function
‘gsl_eigen_nonsymmv_sort’
make: *** [mlgsl_eigen.o] Error 2

>uname -a
Linux * 2.6.20-16-generic #2 SMP Sun Sep 23 18:31:23 UTC 2007 x86_64
GNU/Linux
>ocaml -version
The Objective Caml toplevel, version 3.09.2
>gsl-config gsl-config --libs --prefix
-L/usr/lib -lgsl -lgslcblas -lm
/usr

>gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c
++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)