Dear Florian,
I don't think that your gcc is configured correctly - otherwise it would
find math.h and stdlib.h (the very first warning messages). You should
find out where your glibc include files are located and add this folder to
your CFLAGS using -I/path/to/includes. BTW your compiler should print
english warnings if you unset your LC_... environment variables or set the
LANG variable to "C".
Viele Gruesse vom suedlichen Teil des Oberrheingrabens,
Volkmar
On Wed, 2 May 2007, Florian Beißner wrote:
> Dear SPMers,
>
>
>
> I just tried to compile SPM binaries for my 64bit Ubuntu Linux system that
> runs matlab2007a. Using make at /spm5/src results in an error about an
> implicit declaration of the function “floor” in spm_vol_utils.c
>
> Sorry, I only got the German version of the error since my compiler is in
> German.
>
>
>
> root@earth:/usr/local/spm5/src# make
>
> _____________________________________________________________
>
>
>
> Linux compilation (x86-64) - using gcc
>
> _____________________________________________________________
>
>
>
> gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o
> utils_uchar.mexa64.o spm_vol_utils.c -DSPM_UNSIGNED_CHAR
>
> spm_vol_utils.c:239:18: error: math.h: No such file or directory
>
> spm_vol_utils.c:240:20: error: stdlib.h: No such file or directory
>
> spm_vol_utils.c: In Funktion »resample_uchar_0«:
>
> spm_vol_utils.c:257: Warnung: Unverträgliche implizite Deklaration der
> eingebauten Funktion »floor«
>
> spm_vol_utils.c: In Funktion »resample_uchar_1«:
>
> spm_vol_utils.c:290: Warnung: Unverträgliche implizite Deklaration der
> eingebauten Funktion »floor«
>
> spm_vol_utils.c: In Funktion »resample_d_uchar_1«:
>
> spm_vol_utils.c:335: Warnung: Unverträgliche implizite Deklaration der
> eingebauten Funktion »floor«
>
> spm_vol_utils.c: In Funktion »slice_uchar_0«:
>
> spm_vol_utils.c:535: Warnung: Unverträgliche implizite Deklaration der
> eingebauten Funktion »floor«
>
> spm_vol_utils.c: In Funktion »slice_uchar_1«:
>
> spm_vol_utils.c:590: Warnung: Unverträgliche implizite Deklaration der
> eingebauten Funktion »floor«
>
> spm_vol_utils.c: In Funktion »slice_uchar«:
>
> spm_vol_utils.c:719: Warnung: Unverträgliche implizite Deklaration der
> eingebauten Funktion »fabs«
>
> spm_vol_utils.c:719: Warnung: Unverträgliche implizite Deklaration der
> eingebauten Funktion »floor«
>
> make: *** [utils_uchar.mexa64.o] Fehler 1
>
>
>
> I don’t know, what to do, since the compiler is installed correctly and the
> precompiled files that came with spm5 don’t work. For example Realign
> crashes with the error “Too many images”, when there is more than one image
> in the folder…
>
>
>
> I hope, someone can help!
>
>
>
> Florian Beißner
>
>
>
> ---
>
>
>
> Florian Beißner
>
> Diplom-Physiker
>
> Brain Imaging Center Frankfurt
> Schleusenweg 2-16
> 60528 Frankfurt
>
> Tel: 069-6301-83820
>
>
>
>
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5416
79106 Freiburg http://fbi.uniklinik-freiburg.de/
|