Hi Krzyszek, i'm having problems using the cfitsio library on christo.
Would you be able to install it on christo etc please? This is so that the Shape of The Universe monograph class: http://adjani.astro.uni.torun.pl/cgi-bin/twiki/view/Cosmo/MonographCosmo can work on some cosmology software.
i tried the version installed (as user) by Andrzej Marecki, but i had problems with compiling the header files
(1) printerror.c is a program unit which compiles OK on adjani gcc -D__USE_FIXED_PROTOTYPES__ -Wall -c -o printerror.o printerror.c printerror.c:14: fitsio.h: Nie ma takiego pliku ani katalogu
i tried gcc -D__USE_FIXED_PROTOTYPES__ -Wall -c -o printerror.o printerror.c -I/home2/boud/include where i have a copy of /home2/amr/cwicz/fitsio/cfitsio.h
renamed to
fitsio.h
since /home2/amr/cwicz/fitsio/fitsio.h is a header file for iraf, not for C.
This gives In file included from /home2/boud/include/fitsio.h:227, from printerror.c:14: /home2/boud/include/cfortran.h:115: parse error before `?' printerror.c:28: warning: type defaults to `int' in declaration of `exit' printerror.c:28: warning: parameter names (without types) in function declaration printerror.c:28: conflicting types for `exit' /usr/include/stdlib.h:520: previous declaration of `exit' printerror.c:28: warning: data definition has no type or storage class printerror.c:29: parse error before `}'
(2) i tried compiling the package myself Version 2.470 - 18 August 2003 http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
but had problems with included header files like <linux/limits.h> (seems to be a general problem on christo) which are not found automatically:
./configure loading cache ./config.cache checking for uname... (cached) 1 checking for cc... (cached) cc checking for gcc... (cached) cc checking whether the C compiler (cc ) works... yes checking whether the C compiler (cc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether cc accepts -g... (cached) yes checking for f77... (cached) f77 checking whether we are using GNU Fortran... yes cfitsio: == Adding wrapper support for GNU Fortran... done checking for ranlib... (cached) ranlib checking how to run the C preprocessor... (cached) cc -E checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for math.h... (cached) yes checking for limits.h... no *********** WARNING: CFITSIO CONFIGURE FAILURE ************ cfitsio: ANSI C environment NOT found. Aborting cfitsio configure. cfitsio: You're missing a needed ANSI header file. cfitsio: You need an ANSI C compiler and all ANSI trappings cfitsio: to build cfitsio. *******************************************************
Even when i add this in manually, i just get more similar problems...
So it might be easier if this is installed by someone who knows the system.
thanks boud