Opened 18 years ago
Closed 17 years ago
#1044 closed enhancement (fixed)
psckeckperl -build tries to build Astro-FITS-CFITSIO against default include/lib directory without checking whether cfitsio actually lives there
| Reported by: | Owned by: | eugene | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | psconfig | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: |
Description
psckeckperl -build tries to build Astro-FITS-CFITSIO against non-existent include directory - it uses /usr/local/cfitsio as default location for cfitsio headers and library files without checking whether that directory exists or whether cfitsio is anywhere near /usr/local (/usr/local/lib seemed to work!)
The installation of Astro-FITS-CFITSIO worked after setting the CFITSIO environment variable to the IPP install dir, where cfitsio does exist.
Below the output from the failed run:
tar xvzf Astro-FITS-CFITSIO-1.05.tar.gz
Astro::FITS::CFITSIO: missing
extract Astro::FITS::CFITSIO from Astro-FITS-CFITSIO-1.05.tar.gz
Astro-FITS-CFITSIO-1.05/
Astro-FITS-CFITSIO-1.05/util.h
Astro-FITS-CFITSIO-1.05/util.c
...
perl Makefile.PL PREFIX=/IPPipp-2.4.lin64 LIB=/IPPipp-2.4.lin64/lib
tardir: Astro-FITS-CFITSIO-1.05
CFITSIO environment variable not found, assuming /usr/local/cfitsio
Note (probably harmless): No library found for -lcfitsio
Writing Makefile for Astro::FITS::CFITSIO
make < /dev/null
cc -c -I/usr/local/cfitsio -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fPIC "-I/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE" CFITSIO.c
CFITSIO.xs:11:20: error: fitsio.h: No such file or directory
In file included from CFITSIO.xs:12:
util.h:10: error: expected specifier-qualifier-list before $-1òøfitsfileòù
util.h:32: error: expected $-1òø)òù before òønòù
util.h:33: error: expected declaration specifiers or $-1òø...òù before òøLONGLONGòù
util.h:34: error: expected declaration specifiers or $-1òø...òù before òøLONGLONGòù
util.h:35: error: expected declaration specifiers or $-1òø...òù before òøLONGLONGòù
util.h:36: error: expected declaration specifiers or $-1òø...òù before òøLONGLONGòù
util.h:37: error: expected declaration specifiers or $-1òø...òù before òøLONGLONGòù
util.h:39: error: expected declaration specifiers or $-1òø...òù before òøLONGLONGòù
util.h:45: error: expected $-1òø)òù before òø*òù token
util.h:48: error: expected declaration specifiers or $-1òø...òù before òøLONGLONGòù
Change History (2)
comment:1 by , 18 years ago
| Cc: | added |
|---|---|
| Status: | new → assigned |
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |

This no longer appears to be an issue. extlibs and extperl are included in the distribution. Running pschecklibs -build followed by pscheckperl -build (order important) creates the required files without the need to set the CFITSIO environment variable.