Welcome to iraf.net Saturday, April 20 2024 @ 11:37 AM GMT
footstyle |
11/11/2005 01:05AM (Read 4296 times)
|
|
|
Status: offline
Registered: 11/10/2005
Posts: 5
|
Hi - I am having difficulty building FOCAS (i.e. iraffocas) under RedHat Linux 9.0. The log of 'make ALL' is given beneath. I had to give the full path to the libraries for xc to find them in the first place. I think the problem is with the cbind.c that comes with the FOCAS tarball, as simply trying 'gcc cbind.c' from the command line gives all the same errors beyond the "c_macck" line beneath.I tried the /usr/lib/libf2c.so.0.10 workaround you suggest in a reply to a different posting, but that has not made a difference. Is there a workaround I can use here? (perhaps the cbind.c is out of date on the FTP archive?)Alternatively, one of the replies to installation mentions a pre-compiled set of linux binaries. I'm willing to try them, but couldn't find them in the /iraf/extern/ FTP directory. Have they moved to a different location?thanks! Will Clarkson
STSCIP.S. here is the log of the make process.xc -h -O -Inolibc -/DKNET -/Bstatic avfld.o imlib.a -L/home/iraf/irafbin/bin.redhat/libimfort.a -L/home/iraf/irafbin/bin.redhat/libsys.a -L/home/iraf/irafbin/bin.redhat/libvops.a -L/home/iraf/iraf/unix/bin.redhat/libos.a -o avfld
imlib.a(imageio.o)(.text+0xc91): In function `modimhdr':
: the `gets' function is dangerous and should not be used.
imlib.a(cbind.o)(.text+0x23): In function `c_imacck':
: undefined reference to `imacck_'
imlib.a(cbind.o)(.text+0x65): In function `c_imaddk':
: undefined reference to `imaddk_'
imlib.a(cbind.o)(.text+0xaa): In function `c_imakwb':
: undefined reference to `imakwb_'
imlib.a(cbind.o)(.text+0xf9): In function `c_imakwc':
: undefined reference to `imakwc_'
imlib.a(cbind.o)(.text+0x13e): In function `c_imakwi':
: undefined reference to `imakwi_'... and so forth.
|
|
|
|
fitz |
11/11/2005 01:05AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Will,
From the '-Bstatic' flag it appears the Makefile hasn't been modified for
the proper linux flags. I was able to compile on a RH9 with no problem
after editing the makefile to uncomment the first CC/TERM flags for Linux.
The cbind.c defines the procedures correctly but it you're using a GCC 4
compiler it might not have worked properly (can't test it directly just now).
In any case, I've put the binaries I compiled at ftp://iraf.noao.edu/pub/fitz/focas-bin.redhat.tgz in case it helps.Cheers,
-Mike
|
|
|
|
footstyle |
11/11/2005 01:05AM
|
|
|
Status: offline
Registered: 11/10/2005
Posts: 5
|
thanks for this - I have tried uncommenting the Linux flags, which has had no effect (log again beneath): for info I'm on gcc version 3.2.2. However I did find the precompiled binaries, thanks very much for that. Most of those do appear to function without crashing out, I will test them in more depth over the next few days as I apply FOCAS to the science problem.thanks! Will Here is the output of the most recent compilation run with the Linux flags uncommented in the makefile[iraf@wic3-laptop focas]$ make ALL
xc -h -O -Inolibc -/DKNET -I/usr/include/ncurses avfld.o imlib.a -L/home/iraf/irafbin/bin.redhat/libimfort.a -L/home/iraf/irafbin/bin.redhat/libsys.a -L/home/iraf/irafbin/bin.redhat/libvops.a -L/home/iraf/iraf/unix/bin.redhat/libos.a -o avfld
imlib.a(imageio.o)(.text+0xc91): In function `modimhdr':
: the `gets' function is dangerous and should not be used.
imlib.a(cbind.o)(.text+0x23): In function `c_imacck':
: undefined reference to `imacck_'
imlib.a(cbind.o)(.text+0x65): In function `c_imaddk':
: undefined reference to `imaddk_'... and so forth.
|
|
|
|
| |
|
Content generated in: 0.11 seconds |
|