Welcome to iraf.net Thursday, April 25 2024 @ 04:39 PM GMT


 Forum Index > Help Desk > Non-IRAF Software New Topic Post Reply
 daospec
   
danimolina
 03/17/2014 02:30PM (Read 2817 times)  
+----
Newbie

Status: offline


Registered: 03/13/2014
Posts: 3
I'm trying to install (for several astronomers) Mr. Stetson's daospec in a 64bit Linux CentOS. I already installed the needed system packages plus supermongo (version 2.4.34) plus 64bit Iraf 3.16.

Once I set the Iraf directories at Makefile (Makefile attached below), I compile and I get many references to /net iraf files (¿?) (see below the full output).

Please, If you've installed it, or you know someone who did, help me, it's important, we need it

Thanks in advance,

----------------

See the Makefile:

F77 = gfortran
FFLAGS = -c -O2 -fd-lines-as-comments
LFLAGS = -O2 -Wall -Wsurprising --defsym,mem_=0 -fbounds-check -C -lgcc
HOSTLIBS = -lm
IMFORT = /usr/local/iraf/iraf/bin.linux64/libimfort.a /usr/local/iraf/iraf/bin.linux64/libsys.a /usr/local/iraf/iraf/bin.linux64/libvops.a /usr/local/iraf/iraf/unix/bin.linux64/libos.a /usr/local/iraf/iraf/bin.linux64/libcompat.a
FITLIB = /usr/local/iraf/iraf/bin.linux64/libcfitsio.a
SMLIB = /usr/pkg/smongo/sm/lib


# RULES:
.SUFFIXES: .o .f
.f.o:
$(F77) $(FFLAGS) $

 
Profile Email
 Quote
danimolina
 03/17/2014 02:57PM  
+----
Newbie

Status: offline


Registered: 03/13/2014
Posts: 3
It got cut.
The Makefile was:

F77 = gfortran
FFLAGS = -c -O2 -fd-lines-as-comments
LFLAGS = -O2 -Wall -Wsurprising --defsym,mem_=0 -fbounds-check -C -lgcc
HOSTLIBS = -lm
IMFORT = /usr/local/iraf/iraf/bin.linux64/libimfort.a /usr/local/iraf/iraf/bin.linux64/libsys.a /usr/local/iraf/iraf/bin.linux64/libvops.a /usr/local/iraf/iraf/unix/bin.linux64/libos.a /usr/local/iraf/iraf/bin.linux64/libcompat.a
FITLIB = /usr/local/iraf/iraf/bin.linux64/libcfitsio.a
SMLIB = /usr/pkg/smongo/sm/lib


# RULES:
.SUFFIXES: .o .f
.f.o:
$(F77) $(FFLAGS) $<

daophot: daophot.o pckpsf.o find.o fotometry.o \
psf.o peak.o nstar.o fudge.o addstar.o substar.o \
group.o sort.o lnxsubs.o bothsubs.o iosubs.o mathsubs.o
$(F77) $(LFLAGS) -o daophot daophot.o pckpsf.o find.o fotometry.o \
psf.o peak.o nstar.o fudge.o addstar.o substar.o \
group.o sort.o lnxsubs.o bothsubs.o \
iosubs.o mathsubs.o \
$(IMFORT) $(HOSTLIBS) $(FITLIB\$this-\$this->_split2($m[0])_normalize_entities2($m[0])

allstar: allstar.o allstsubs.o lnxsubs.o \
iosubs.o mathsubs.o bothsubs.o
$(F77) $(LFLAGS) -o allstar allstar.o allstsubs.o \
lnxsubs.o iosubs.o mathsubs.o bothsubs.o \
$(IMFORT) $(HOSTLIBS) $(FITLIB\$this-\$this->_split2($m[0])_normalize_entities2($m[0])

daomaster: daomaster.o iosubs.o mathsubs.o lnxsubs.o dummysm.o
$(F77) $(LFLAGS) -o daomaster daomaster.o iosubs.o mathsubs.o lnxsubs.o dummysm.o

daomatch: daomatch.o iosubs.o mathsubs.o lnxsubs.o
$(F77) $(LFLAGS) -o daomatch daomatch.o iosubs.o mathsubs.o lnxsubs.o

montage2: montage2.o mathsubs.o iosubs.o lnxsubs.o bothsubs.o
$(F77) $(LFLAGS) -o montage2 montage2.o mathsubs.o iosubs.o lnxsubs.o bothsubs.o \
$(HOSTLIBS) $(IMFORT) $(FITLIB\$this-\$this->_split2($m[0])_normalize_entities2($m[0])

allframe: allframe.o bothsubs.o lnxsubs.o iosubs.o mathsubs.o
$(F77) $(LFLAGS) -o allframe allframe.o bothsubs.o \
lnxsubs.o iosubs.o mathsubs.o \
$(IMFORT) $(HOSTLIBS) $(FITLIB\$this-\$this->_split2($m[0])_normalize_entities2($m[0])

daogrow: daogrow.o iosubs.o mathsubs.o lnxsubs.o
$(F77) $(LFLAGS) -o daogrow daogrow.o iosubs.o mathsubs.o lnxsubs.o

daospec: daospec.o lnxsubs.o iosubs.o mathsubs.o bothsubs.o
$(F77) $(LFLAGS) -o daospec daospec.o lnxsubs.o iosubs.o mathsubs.o bothsubs.o \
$(IMFORT) $(HOSTLIBS) $(FITLIB\$this-\$this->_split2($m[0])_normalize_entities2($m[0]) -Bstatic -L$(SMLIB\$this-\$this->_split2($m[0])_normalize_entities2($m[0]) -lplotsub -ldevices -lutils -lX11

 
Profile Email
 Quote
danimolina
 03/17/2014 02:58PM  
+----
Newbie

Status: offline


Registered: 03/13/2014
Posts: 3
And the full output is:

$ make daospec
gfortran -O2 -Wall -Wsurprising --defsym,mem_=0 -fbounds-check -C -lgcc -o daospec daospec.o lnxsubs.o iosubs.o mathsubs.o bothsubs.o \
/usr/local/iraf/iraf/bin.linux64/libimfort.a /usr/local/iraf/iraf/bin.linux64/libsys.a /usr/local/iraf/iraf/bin.linux64/libvops.a /usr/local/iraf/iraf/unix/bin.linux64/libos.a /usr/local/iraf/iraf/bin.linux64/libcompat.a -lm /usr/local/iraf/iraf/bin.linux64/libcfitsio.a -Bstatic -L/usr/pkg/smongo/sm/lib -lplotsub -ldevices -lutils -lX11
/usr/local/iraf/iraf/bin.linux64/libimfort.a(imemsg.o): In function `imemsg_':
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imemsg.x:28: undefined reference to `s_copy'
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imemsg.x:31: undefined reference to `s_copy'
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imemsg.x:34: undefined reference to `s_copy'
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imemsg.x:37: undefined reference to `s_copy'
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imemsg.x:40: undefined reference to `s_copy'
/usr/local/iraf/iraf/bin.linux64/libimfort.a(imemsg.o):/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imemsg.x:43: more undefined references to `s_copy' follow
/usr/local/iraf/iraf/bin.linux64/libimfort.a(imemsg.o): In function `imemsg_':
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imemsg.x:204: undefined reference to `i_len'
/usr/local/iraf/iraf/bin.linux64/libimfort.a(imgetl.o): In function `imgetl_':
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/db/imgetl.x:25: undefined reference to `i_dnnt'
/usr/local/iraf/iraf/bin.linux64/libimfort.a(imfdir.o): In function `imgdir_':
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/imfdir.x:17: undefined reference to `i_len'
/usr/local/iraf/iraf/bin.linux64/libimfort.a(idbpstr.o): In function `idbpug_':
/net/iraf/u3/iraf/iraf.v2161/sys/imfort/db/idbpstr.x:37: undefined reference to `i_dnnt'
/usr/local/iraf/iraf/bin.linux64/libsys.a(ctod.o): In function `ctod_':
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/ctod.x:82: undefined reference to `pow_ri'
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/ctod.x:130: undefined reference to `pow_di'
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/ctod.x:147: undefined reference to `pow_di'
/usr/local/iraf/iraf/bin.linux64/libsys.a(dtoc.o): In function `dtoc_':
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/dtoc.x:50: undefined reference to `pow_ri'
/usr/local/iraf/iraf/bin.linux64/libsys.a(dtoc3.o): In function `dtoc3_':
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/dtoc3.x:120: undefined reference to `pow_ri'
/usr/local/iraf/iraf/bin.linux64/libsys.a(dtcscl.o): In function `dtcscl_':
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/dtcscl.x:7: undefined reference to `pow_di'
/usr/local/iraf/iraf/bin.linux64/libsys.a(parg.o): In function `pargg_':
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/parg.x:119: undefined reference to `i_dnnt'
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/parg.x:176: undefined reference to `i_dnnt'
/usr/local/iraf/iraf/bin.linux64/libsys.a(xtoc.o): In function `xtoc_':
/net/iraf/u3/iraf/iraf.v2161/sys/fmtio/xtoc.x:19: undefined reference to `r_imag'
/usr/local/iraf/iraf/bin.linux64/libvops.a(f77pak.o): In function `f77pak_':
/net/iraf/u3/iraf/iraf.v2161/sys/osb/f77pak.f:11: undefined reference to `i_len'
/net/iraf/u3/iraf/iraf.v2161/sys/osb/f77pak.f:28: undefined reference to `s_copy'
/net/iraf/u3/iraf/iraf.v2161/sys/osb/f77pak.f:30: undefined reference to `s_copy'
/usr/local/iraf/iraf/bin.linux64/libvops.a(f77upk.o): In function `f77upk_':
/net/iraf/u3/iraf/iraf.v2161/sys/osb/f77upk.f:15: undefined reference to `i_len'
collect2: ld returned 1 exit status
make: *** [daospec] Error 1

 
Profile Email
 Quote
ncaon
 03/17/2014 03:29PM  
++---
Junior

Status: offline


Registered: 10/30/2005
Posts: 29
Hi Dani

I have sucessfully compiled and installed DAOSPEC myself, in a Fedora 19 Linux box.

Comparing my Makefile with yours, I see that my IMFORT line includes also the library unix/bin.linux64/libf2c.a, which seems to be missing in the Makefile you posted.

Add it and try again.

Cheers

Nicola

 
Profile Email
 Quote
fitz
 03/17/2014 03:44PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I think Nicola's suggestion should work, the cause is that you're compiling the daospec code with gfortran, but the IRAF libraries were build using the iraf XC command (which is basically F2C/GCC). Note that the /usr/lib/libf2c.a that might already be on the machine won't always work depending on versions, it is best to use the one in $iraf/unix/bin.

 
Profile Email
 Quote
   
Content generated in: 0.13 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login