Welcome to iraf.net Friday, April 19 2024 @ 11:48 PM GMT


 Forum Index > Help Desk > Non-IRAF Software New Topic Post Reply
 Installing Daospec on a Fc20 64 os
   
zwchen
 06/03/2015 02:27PM (Read 3218 times)  
+----
Newbie

Status: offline


Registered: 06/03/2015
Posts: 4
I searched solutions for the installation errors of the DAOSPEC package, which led me to this forum.

I pasted the Makefile :
--------------------------------------------------
F77 = g77
FFLAGS = -c -O2
LFLAGS = -O2 -Wall -Wsurprising --defsym,mem_=0 -fbounds-check
HOSTLIBS = -lm
IMFORT = /scisoft/share/iraf/iraf/bin.linux64/libimfort.a /scisoft/share/iraf/iraf/bin.linux64/libsys.a /scisoft/share/iraf/iraf/bin.linux64/libvops.a /scisoft/share/iraf/iraf/unix/bin.linux64/libos.a /home/zwchen/astrosoft/libcompat.a /scisoft/share/iraf/iraf/unix/bin.linux64/libf2c.a
FITLIB = /home/zwchen/astrosoft/star-namaka/lib/libcfitsio.a

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

 
Profile Email
 Quote
zwchen
 06/03/2015 02:39PM  
+----
Newbie

Status: offline


Registered: 06/03/2015
Posts: 4
a cut here.

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) $(FITLICool

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) $(FITLICool

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) $(FITLICool

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) $(FITLICool

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
g77 $(LFLAGS) -o daospec daospec.o lnxsubs.o iosubs.o mathsubs.o bothsubs.o \
$(IMFORT) $(HOSTLIBS) $(FITLICool -Bstatic -L/usr/local/lib -lplotsub -ldevices -lutils /usr/lib64/libX11.a

At the beginning, I could not find libcompat.a in my laptop, so I downloaded one from somewhere (this one might not suitable to my os). For other dependencies, I compiled supermongo v2.4.26 sucessfully, and IRAF 64 bit version is installed via the eso/scisoft package. After I type 'make daospec' in the terminal, error messages appeared :


 
Profile Email
 Quote
zwchen
 06/03/2015 02:41PM  
+----
Newbie

Status: offline


Registered: 06/03/2015
Posts: 4
continued:

g77 -O2 -Wall -Wsurprising --defsym,mem_=0 -fbounds-check -o daospec daospec.o lnxsubs.o iosubs.o mathsubs.o bothsubs.o \
/scisoft/share/iraf/iraf/bin.linux64/libimfort.a /scisoft/share/iraf/iraf/bin.linux64/libsys.a /scisoft/share/iraf/iraf/bin.linux64/libvops.a /scisoft/share/iraf/iraf/unix/bin.linux64/libos.a /home/zwchen/astrosoft/libcompat.a /scisoft/share/iraf/iraf/unix/bin.linux64/libf2c.a -lm /home/zwchen/astrosoft/star-namaka/lib/libcfitsio.a -Bstatic -L/usr/local/lib -lplotsub -ldevices -lutils /usr/lib64/libX11.a
/usr/lib64/libX11.a(xcb_io.o): In function `require_socket':
(.text+0x6d0): undefined reference to `xcb_take_socket'
/usr/lib64/libX11.a(xcb_io.o): In function `poll_for_event':
(.text+0x854): undefined reference to `xcb_poll_for_event'
/usr/lib64/libX11.a(xcb_io.o): In function `poll_for_response':
(.text+0x950): undefined reference to `xcb_poll_for_reply'
/usr/lib64/libX11.a(xcb_io.o): In function `_XSend':
(.text+0xbb3): undefined reference to `xcb_writev'
/usr/lib64/libX11.a(xcb_io.o): In function `_XEventsQueued':
(.text+0xc9d): undefined reference to `xcb_connection_has_error'
/usr/lib64/libX11.a(xcb_io.o): In function `_XReadEvents':
(.text+0xdb6): undefined reference to `xcb_connection_has_error'
/usr/lib64/libX11.a(xcb_io.o): In function `_XReadEvents':
(.text+0xe54): undefined reference to `xcb_wait_for_event'
/usr/lib64/libX11.a(xcb_io.o): In function `_XAllocIDs':
(.text+0xfcf): undefined reference to `xcb_generate_id'
/usr/lib64/libX11.a(xcb_io.o): In function `_XReply':
(.text+0x115d): undefined reference to `xcb_wait_for_reply'
/usr/lib64/libX11.a(OpenDis.o): In function `OutOfMemory':
(.text+0x484): undefined reference to `xcb_disconnect'
/usr/lib64/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0x8bd): undefined reference to `xcb_get_setup'
/usr/lib64/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0xb11): undefined reference to `xcb_get_maximum_request_length'
/usr/lib64/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x14c): undefined reference to `xcb_parse_display'
/usr/lib64/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1be): undefined reference to `xcb_connect_to_display_with_auth_info'
/usr/lib64/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1de): undefined reference to `xcb_get_file_descriptor'
/usr/lib64/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1fb): undefined reference to `xcb_generate_id'
/usr/lib64/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x26e): undefined reference to `xcb_connection_has_error'
/usr/lib64/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x286): undefined reference to `xcb_connect'
/usr/lib64/libX11.a(CrGlCur.o): In function `open_library':
(.text+0x32): undefined reference to `dlopen'
/usr/lib64/libX11.a(CrGlCur.o): In function `fetch_symbol':
(.text+0x61): undefined reference to `dlsym'
/usr/lib64/libX11.a(CrGlCur.o): In function `fetch_symbol':
(.text+0x85): undefined reference to `dlsym'
/usr/lib64/libX11.a(ClDisplay.o): In function `XCloseDisplay':
(.text+0xd3): undefined reference to `xcb_disconnect'
collect2: ld returned 1 exit status
make: *** [daospec] Error 1

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

I was stopped by this mess for a few days. Sincerely hope that someone could help me!

Many thanks !

Zhiwei

 
Profile Email
 Quote
fitz
 06/03/2015 04:32PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try adding a "-lxcb" to the HOSTLIBS definition in your Makefile, or even better would be following the inclusion of the /usr/lib64/libX11.a on the command for daospec specifically.

Note also that the libcompat.a isn't strictly required, this was an old solution to solve a compiler version issue but if you take it out and see different missing symbols just put it back.

 
Profile Email
 Quote
zwchen
 06/04/2015 08:16AM  
+----
Newbie

Status: offline


Registered: 06/03/2015
Posts: 4
Thank you for your hints. I finally compiled daospec by replacing /usr/lib64/libX11.a with -lX11. Another error occurred when running daospec in the terminal. No matter how much is the MXSPEC (maximum is 1,200,000), a segmentation fault happens all the time, and a notification of missing of a specific font is appeared. I tried to run daospec in both bash terminal and xgterm, these errors are still there. I am quire weird!






Quote by: fitz

Try adding a "-lxcb" to the HOSTLIBS definition in your Makefile, or even better would be following the inclusion of the /usr/lib64/libX11.a on the command for daospec specifically.

Note also that the libcompat.a isn't strictly required, this was an old solution to solve a compiler version issue but if you take it out and see different missing symbols just put it back.


 
Profile Email
 Quote
fitz
 06/05/2015 10:24PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Unfortunately I don't have DAOSPEC available and am not familiar with it beyond what Google might have to say, e.g. this is mentioned a few places in the "Cooking with DAOSPEC" doc (Google "daospec segmentation fault" to find it).

Typically the way to debug this is to run it under a debugger like GDB and getting a stack trace. If this reveals the error is in one of the IRAF libraries then it may be that DAOSPEC itself doesn't fully support 64-bit platforms and compiling it as a 32-bit binary by adding "-m32" to the compiler flags and linking in the iraf libraries from the 32-bit system (note doing so may mean you need to install 32-bit X11 libs on the system as well). If you do this then see also http://stackoverflow.com/questions/30539059/error-compiling-32-bit-on-64-bit-ubuntu-compatibility-issue-with-libgcc-s-32-so

 
Profile Email
 Quote
   
Content generated in: 0.21 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