View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Compiling DAOPHOT w/ g77

bcb wrote on Sep 19, 2006

Dear IRAF HelpDesk,

Presently I am using PC Desktop with OS as Fedora Core 5 and working with
IRAF also.

With 'g77' I am compiling 'daophot' fortran programme. While running the
'make', it needs some 'IRAF' libraries which seems not to be compitable
with fortran programme. Can you suggest anything. The error comes like:

''/iraf/iraf/unix/bin.redhat/libos.a(zfacss.o): In function
`zfacss_':zfacss.c:(.text+0x139): undefined reference to `__ctype_b'
/iraf/iraf/unix/bin.redhat/libos.a(zfioks.o): In function
`zopnks_':zfioks.c:(.text+0x28): undefined reference to `__ctype_b'
:zfioks.c:(.text+0xb5): undefined reference to `__ctype_b'
:zfioks.c:(.text+0xee): undefined reference to `__ctype_b'
:zfioks.c:(.text+0x121): undefined reference to `__ctype_b'
/iraf/iraf/unix/bin.redhat/libos.a(zfioks.o):zfioks.c:(.text+0x133): more
undefined references to `__ctype_b' follow''

Thanks...

with regards...

BCBhatt.../CREST-Indian Institute of Astrophysics, Bangalore

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

Mike Fitzpatrick wrote on Sep 19, 2006

You need to add a "-lcompat" to the list of IRAF libraries in your Makefile. This refers to 'libcompat.a' that lives in the /iraf/iraf/unix/bin.redhat directory (i.e. next to the libos.a). This will resolve the symbols, if you don't have a libcompat.a then you need a more recent IRAF (or I can send it to you).

Cheers,
-Mike

Last post on Sep 19, 2006