Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lots of compilation errors on Kubuntu 20.04 #132

Closed
Arcky87 opened this issue Jan 16, 2021 · 4 comments
Closed

Lots of compilation errors on Kubuntu 20.04 #132

Arcky87 opened this issue Jan 16, 2021 · 4 comments

Comments

@Arcky87
Copy link

Arcky87 commented Jan 16, 2021

Good day,

I faced some problems building latest IRAF release from the source on Kubuntu 20.04. I made all the steps according to the installation instruction, everything seems to work fine until I run $ make sysgen 2>&1 | tee build.log and get multiple errors like this:

In file included from irafpath.c:11:
/usr/local/iraf/include/iraf.h:1:1: error: expected identifier or ‘(’ before ‘.’ token
    1 | ../unix/hlib/libc/iraf.h
      | ^
In file included from prwait.c:11:
/usr/local/iraf/include/iraf.h:1:1: error: expected identifier or ‘(’ before ‘.’ token
    1 | ../unix/hlib/libc/iraf.h
      | ^
prwait.c:31:11: error: ‘MAXPROCS’ undeclared here (not in a function)
   31 | } prtable[MAXPROCS];


Complete build.log is attached.
build.log

I believe these errors probably occur due to wrong gcc definitions but need some help to solve them. Thanks!

@olebole
Copy link
Member

olebole commented Jan 16, 2021

Why don't you just use the IRAF that comes with kubuntu? sudo apt install iraf gives it in a minute.
In you case it seems that you have an old IRAF installation in /usr/local/iraf, and your $iraf environment variable points there. All the IRAF environment vars should be cleaned before starting to compile.

@Arcky87
Copy link
Author

Arcky87 commented Jan 16, 2021

Why don't you just use the IRAF that comes with kubuntu?

Will give it a try, thank you. Does it still support gui packages like spectool?

In you case it seems that you have an old IRAF installation in /usr/local/iraf
This is exactly the folder i wanna install iraf to.

@olebole
Copy link
Member

olebole commented Jan 16, 2021

The IRAF in Ubuntu is built from the same sources and therefore has the same features. GUI is rather a matter of x11iraf, and there the versions included in Debian and Ubuntu have all non-free stuff removed, so you should test whether this includes the features you need.

If you want to have it installed in /usr/local, you should unpack the tarball there, removing the old installation before. IRAF is there different from other programs that it does an "in-place" installation only.

@Arcky87
Copy link
Author

Arcky87 commented Jan 16, 2021

Thanks for the help. I'm closing the issue

@Arcky87 Arcky87 closed this as completed Jan 16, 2021
@iraf-community iraf-community locked and limited conversation to collaborators Apr 10, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

2 participants