View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

problem compiling finder v2.2.1

Kathleen Labrie wrote on Oct 06, 2007

When I try to compile finder v2.2.1 I get the following errors:

prtabo:
fits_read.c: In function ‘printr_’:
fits_read.c:578: error: conflicting types for ‘fnroot_’
fits_read.c:126: error: previous declaration of ‘fnroot_’ was here

...

replae:
t_tpeak.c: In function ‘tpcoln_’:
t_tpeak.c:1059: error: conflicting types for ‘sscan_’
t_tpeak.c:206: error: previous declaration of ‘sscan_’ was here

I am using tables v3.7

How should I modify the source code to enable a smooth compilation?

Kathleen

Mike Fitzpatrick wrote on Oct 06, 2007

Hi Kathleen,

What compiler and platform is complaining about this? Anyway, the fixes are simple:

fits_read.x:
Line 226 fnroot used as subroutine, should be int func()

t_tpeak.x:
Line 109/179 sscan() declared as int func(), should be subroutine

The most common errors you'll see are these sorts of mixed uses of functions and subroutines as well as mixed use of int/bool variables (e.g. an int used in a conditional or a bool set to YES instead of TRUE). Most all of these have been weeded out of the core system by now.

Cheers,
-Mike

Last post on Oct 06, 2007