Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Building ctio from source fails using IRAF v2.14 for cygwin

 
Post new topic   Reply to topic    iraf.net Forum Index -> Systems
View previous topic :: View next topic  
Author Message
emma
Active IRAF User


Joined: 23 Jan 2006
Posts: 98
Location: Chile

PostPosted: Fri Nov 18, 2011 8:05 pm    Post subject: Building ctio from source fails using IRAF v2.14 for cygwin Reply with quote

Hi Mike,

A colleague of mine is unable to register to iraf.net at the moment (when will new users be able to register again?), so I'm posting a question from him on his behalf:

Hi,

I'm trying to install iraf (v214) for Cygwin, and all is going OK apart from the ctio package. I can't find the 2.14 binaries anymore, so I'm building from source -- but I get the error messages attached below (I'm not sure of exactly where the cause lies, so I've included the whole dump. This is the result of running "mkpkg -p ctio" for the second time, and x_fabry.e was successfully built the first time through). Does anyone have any idea where/why this build is failing? Is there a library I need to install in Cygwin first? stsdas/tables/fitsutil have all built OK from source.
Alternatively, are the v214 external binaries for Cygwin still available anywhere (or a v215 cygwin distribution??)

Many thanks,
Fraser (thanks to Emma for posting for me!)

Code:
Library libpkg.a is up to date
Object x_fabry.o is up to date
xc -Nz -p ctio x_fabry.o libpkg.a -lxtools -o xx_fabry.e
move `xx_fabry.e' to `pkgbin$x_fabry.e'
purge directory `pkgbin$'
warning: library `libpkg.a' not found
xc -c -w -p ctio comrebin.x debug.x edit.x expscale.x idsm_keywrds.x lam2pix.x load_hdr.x plot.x rebin.x setd
ef.x sort.x spcombine.x struct.x t_spcombine.x
comrebin.x:
   rebin_spectra:
   rebin_adjust:
   rebin_spectrum:
debug.x:
   debug_in:
   debug_out:
   dump_in:
   dump_out:
edit.x:
   edit_spectrum:
   default_ranges:
   get_range:
   fudge_line:
   shift_horiz:
   shift_vert:
expscale.x:
   exp_scale:
idsm_keywrds.x:
   store_keywords:
   ids_addi:
   ids_addr:
   ids_sex:
lam2pix.x:
   lambda_to_pixel2:
load_hdr.x:
   load_ids_hdr:
   ids_hdri:
   ids_hdrr:
   get_hdrr:
   init_ids_values:
plot.x:
   plot_spectra:
   plot_spectrum:
rebin.x:
   resum:
   pixel_parts:
   reinterp:
setdef.x:
   set_defaults:
sort.x:
   sort_hdrs:
spcombine.x:
   combine_spectra:
   combine_spectrum:
struct.x:
   init_inspec:
   init_outspec:
   copy_inspec:
   copy_outspec:
t_spcombine.x:
   t_spcombine:
   write_spectra:
comrebin.f:
   rebina:
Error on line 49 of comrebin.f: Declaration error for p2r: attempt to use untyped function
   rebint:
   rebinm:
/iraf/iraf/unix/hlib/f77.sh: line 186: comrebin.c: No such file or directory
mv: cannot stat `comrebin.t': No such file or directory
gcc: comrebin.c: No such file or directory
gcc: no input files
ar r /iraf/extern/ctio/spcombine/libpkg.a comrebin.o debug.o edit.o expscale.o idsm_keywrds.o lam2pix.o load_
hdr.o plot.o rebin.o setdef.o sort.o spcombine.o struct.o t_spcombine.o
ar: creating /iraf/extern/ctio/spcombine/libpkg.a
ar: comrebin.o: No such file or directory
ranlib libpkg.a
ranlib: 'libpkg.a': No such file
Updated 14 files in libpkg.a
Warning, mkpkg line 12: module `libpkg.a' not found or returned error
Object x_spcombine.o is up to date
xc -Nz -p ctio x_spcombine.o libpkg.a -lxtools -liminterp -o xx_spcombine.e
Warning: file `libpkg.a' not found
x_spcombine.o:x_spcombine.c:(.text+0x264): undefined reference to `_tspcoe_'
collect2: ld returned 1 exit status
Warning, mkpkg line 7: module `relink' not found or returned error
move `xx_spcombine.e' to `pkgbin$x_spcombine.e'
$move: file `xx_spcombine.e' not found
Warning, mkpkg line 18: error moving file xx_spcombine.e
purge directory `pkgbin$'
Subdirectory src/apropos is up to date
xc -c -w -p ctio t_bin2iraf.x
t_bin2iraf.x:
   t_bin2iraf:
   bin2iraf:
Error on line 159 of t_bin2iraf.x: cannot find include file
ar r /iraf/extern/ctio/src/libpkg.a t_bin2iraf.o
ar: t_bin2iraf.o: No such file or directory
Warning, mkpkg line 15: module `generic' not found or returned error
Subdirectory src/bitstat is up to date
Subdirectory src/chpixfile is up to date
Subdirectory src/colselect is up to date
Subdirectory src/compairmass is up to date
Subdirectory src/coords is up to date
Warning, mkpkg line 14: module `generic' not found or returned error
Subdirectory src/cureval is up to date
xc -c -w -p ctio fits_rpixels.x
fits_rpixels.x:
   rft_init_read_pixels:
Error on line 50 of fits_rpixels.x: cannot find include file
   rft_getbuf:
ar r /iraf/extern/ctio/src/libpkg.a fits_dheader.o fits_disp.o fits_rpixels.o print.o read_formats.o t_dfits.
o
ar: fits_rpixels.o: No such file or directory
Subdirectory src/eqwidths is up to date
Subdirectory src/fft1d is up to date
Warning, mkpkg line 17: module `generic' not found or returned error
Subdirectory src/filecalc is up to date
Subdirectory src/findfiles is up to date
Warning, mkpkg line 17: module `generic' not found or returned error
Subdirectory src/fitrad is up to date
Subdirectory src/gki2cad is up to date
Subdirectory src/helio is up to date
Subdirectory src/imcreate is up to date
Subdirectory src/immatch is up to date
Subdirectory src/imsort is up to date
Subdirectory src/imspace is up to date
Subdirectory src/imtest is up to date
Warning, mkpkg line 16: module `generic' not found or returned error
xc -c -w -p ctio iraf2bin.x t_iraf2bin.x
iraf2bin.x:
   i2b_procs:
Error on line 30 of iraf2bin.x: cannot find include file
   i2b_proci:
Error on line 138 of iraf2bin.x: cannot find include file
   i2b_procl:
Error on line 246 of iraf2bin.x: cannot find include file
   i2b_procr:
Error on line 354 of iraf2bin.x: cannot find include file
   i2b_procd:
Error on line 462 of iraf2bin.x: cannot find include file
t_iraf2bin.x:
   t_iraf2bin:
   i2b_header:
t_iraf2bin.f:
   tirafn:
   i2bher:
Error on line 224 of t_iraf2bin.f: Declaration error for szint2: attempt to use undefined variable
/iraf/iraf/unix/hlib/f77.sh: line 186: t_iraf2bin.c: No such file or directory
mv: cannot stat `t_iraf2bin.t': No such file or directory
gcc: t_iraf2bin.c: No such file or directory
gcc: no input files
ar r /iraf/extern/ctio/src/libpkg.a iraf2bin.o t_iraf2bin.o
ar: iraf2bin.o: No such file or directory
Subdirectory src/irlincor is up to date
Subdirectory src/lambda is up to date
Warning, mkpkg line 15: module `generic' not found or returned error
Warning, mkpkg line 26: module `generic' not found or returned error
Subdirectory src/library/mctable is up to date
Subdirectory src/library is up to date
Subdirectory src/magband is up to date
Subdirectory src/mapkeyword is up to date
Subdirectory src/mjoin is up to date
Warning, mkpkg line 16: module `generic' not found or returned error
Subdirectory src/pixselect is up to date
Subdirectory src/sphot is up to date
Subdirectory src/statspec is up to date
Subdirectory src/wairmass is up to date
ranlib libpkg.a
Updated 9 files in libpkg.a
Object x_ctio.o is up to date
xc -Nz -p ctio x_ctio.o libpkg.a -lxtools -lcurfit -liminterp -o xx_ctio.e
x_ctio.o:x_ctio.c:(.text+0x294): undefined reference to `_tbin2f_'
x_ctio.o:x_ctio.c:(.text+0x3c1): undefined reference to `_tdfits_'
x_ctio.o:x_ctio.c:(.text+0x5f0): undefined reference to `_tirafn_'
collect2: ld returned 1 exit status
Warning, mkpkg line 7: module `relink' not found or returned error
move `xx_ctio.e' to `pkgbin$x_ctio.e'
$move: file `xx_ctio.e' not found
Warning, mkpkg line 20: error moving file xx_ctio.e
purge directory `pkgbin$'


Many thanks,

Emma Smile
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3256
Location: Tucson

PostPosted: Sat Nov 19, 2011 1:05 pm    Post subject: Reply with quote

The errors are coming from code changes required for v2.15 compatibility. You'll need to get the source from ftp://iraf.noao.edu/iraf/extern-v214 and compile from that (there aren't Cygwin binaries at the moment).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Systems All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.20 seconds