View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

problem with imclos

Guest wrote on Apr 09, 2009

I am having a problem with ressurecting an imfort program which I wrote a few years ago
and which worked fine running under Solaris on a Sun. I have downloaded the latest version of IRAF
and am now working on a linux box
Linux 2.6.18-53.el5xen #1 SMP Wed Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

 My program stops with the error message
PANIC in `': Memory has been corrupted
as soon as I try to close an image using
call imclos(im0,ier)
(opening the image and reading in the data seems fine)

Any ideas please?  I have a lot of IRAF programs I want to revive and this is a show stopper.
My makefile is listed below.

Thanks for your help.

Stuart Jefferies

*************************************************************************************
# Makefile for Mag_align

# Stuart Jefferies 8th April 2009

#*********************  MACROS  **************************************
# object files in working directory
OBJS = Mag_align.o questions.o input.o fourn.o

# Libraries required by IMFORT interface for IRAF
LIBS = /iraf/iraf/bin.redhat/libimfort.a
       /iraf/iraf/bin.redhat/libsys.a
       /iraf/iraf/bin.redhat/libvops.a
       /iraf/iraf/unix/bin.redhat/libos.a
       /iraf/iraf/unix/bin.redhat/libcompat.a
       /iraf/iraf/unix/bin.redhat/libf2c.a

#********************************************************************
Mag_align   : ${OBJS}
    xc -h -m32   -o Mag_align -O  ${OBJS} $(LIBS)

Mag_align.o : Mag_align.f Mag_align.h
    xc -h -O  -m32   -c Mag_align.f
fourn.o : fourn.f
    xc -h -O -m32   -c fourn.f
input.o: input.f Mag_align.h
    xc -h -O -m32   -c input.f
questions.o : questions.f
    xc -h -O -m32   -c questions.f

# clean up all object files
clean :
    rm -f *.o
**********************************************end Make file ***************************

Post generated using Mail2Forum (http://www.mail2forum.com)

Mike Fitzpatrick wrote on Apr 09, 2009

See http://iraf.net/phpBB2/viewtopic.php?t=85593

yuniraf wrote on Apr 09, 2009

Is it still not possible to use IMFORT on a 64-bit machine?
I cannot compile (fc does not work) my old programs in my x86-64 machine.
Thanks for any info on this subject.

Last post on Apr 09, 2009