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 

linking on V2.16

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


Joined: 08 Mar 2006
Posts: 43

PostPosted: Wed Sep 05, 2012 6:02 pm    Post subject: linking on V2.16 Reply with quote

On some of our linux systems (critical ones for running iraf on our cluster), I seem to be unable to get one of my packages to link. The error messages (below) have something to do with pthread. The xc command and the message I get are:

xc -Nz -/g -/m64 -e x_travelt.o libpkg.a aravr.o awvgr.o cartography.o -lxtools -linterp -liminterp -ldeboor -o x_travelt.e
/iraf/iraf/bin.linux64/libVO.a(abyss_thread_pthread.o)(.text+0x80): In function `pthreadStart':
/iraf/iraf.v216/vendor/voclient/libsamp/libxrpc/xmlrpc-c-1.16.29/lib/abyss/src/thread_pthread.c:47: undefined reference to `__pthread_register_cancel'
/iraf/iraf/bin.linux64/libVO.a(abyss_thread_pthread.o)(.text+0x9e):/iraf/iraf.v216/vendor/voclient/libsamp/libxrpc/xmlrpc-c-1.16.29/lib/abyss/src/thread_pthread.c:51: undefined reference to `__pthread_unregister_cancel'
collect2: ld returned 1 exit status
Warning, mkpkg line 1: module `update' not found or returned error

Any idea what might be going on?
Thanks.
Tom
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Wed Sep 05, 2012 6:10 pm    Post subject: Reply with quote

If you've got an older v2.15 system also installed then it may just be that you're using the old 'xc' binary (i.e. you need to rerun the iraf install script for v2.16). Otherwise, I'd say that you don't have the Posix threads package installed on the machine.

XC should automatically include "-lpthread" on the link line, you can verify this using e.g.

Code:
xc -dv foo.x


If you see '-lpthread' at the end of the linker line but still see the error then your sysadmin needs to install the pthread package for your system. Otherwise, check whether the 'xc' command points to the v2.16 version.
Back to top
View user's profile Send private message
duvall
Active IRAF User


Joined: 08 Mar 2006
Posts: 43

PostPosted: Wed Sep 05, 2012 9:31 pm    Post subject: Reply with quote

We had removed the v2.15 stuff and only have the v2.16. So, we are looking at the right version of xc.

I believe we have the pthread package present:

ls /usr/lib64/libpthr*
/usr/lib64/libpthread.a /usr/lib64/libpthread.so
/usr/lib64/libpthread_nonshared.a

I did try the "xc -dv foo.x" with a simple task. The "-lpthread" was present in the linking statement. Also, this simple task did link correctly. And also executed. This task made a plot from some internally generated data (no image calls).

Tom
Back to top
View user's profile Send private message
duvall
Active IRAF User


Joined: 08 Mar 2006
Posts: 43

PostPosted: Thu Sep 06, 2012 5:07 pm    Post subject: Reply with quote

We did find a system that would compile everything. Thanks for your help.
Tom
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.10 seconds