IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 2, 2008, 2:07:38 PM (18 years ago)
Author:
Paul Price
Message:

I've been getting a flood of messages:

ffgcnn could not find column: UNCOMPRESSED_DATA
ffgcnn could not find column: ZSCALE
ffgcnn could not find column: ZZERO
ffgcnn could not find column: ZBLANK

when reading compressed images. I know that Steve and Bill have been
seeing this too.

I've tracked this down to ricecomp.h in Ohana, which defines a
function, ffpmsg, that conflicts with a function in cfitsio. The
cfitsio calls to ffpmsg were going to the Ohana version.

To get around this, I've changed the function definition to a macro so
there's no symbol to produce a conflict.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/extern/ricecomp.h

    r18269 r18408  
    44// decompression.  In order to include this .c file (or future upgrades), we include our own
    55// version of ricecomp.h (not the one available in the CFITSIO tree) and include it instead of
    6 // fitsio2.h.  This file defines our own version of ffpmsg. 
     6// fitsio2.h.  This file defines our own version of ffpmsg.
    77
    8 int ffpmsg (char *line) {
    9    
    10     fprintf (stderr, "%s\n", line);
    11     return 1;
    12 }
     8#define ffpmsg(MSG) fprintf(stderr, "%s\n", MSG)
Note: See TracChangeset for help on using the changeset viewer.