Welcome to iraf.net Thursday, March 28 2024 @ 01:59 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 2.13beta2 on Mac OS X/ppc 10.3.9: can't compile packages
   
emiliano
 06/23/2006 04:47PM (Read 8291 times)  
+++--
Chatty

Status: offline


Registered: 12/05/2005
Posts: 38
Hello Mike,
when compiling external packages I get a linker error:ld: Undefined symbols:
_sprintf$LDBLStubI'm using the patched iraf binaries you provided yesterday, and source packages "color" and "guiapps" downloaded from the 2.13beta2 distribution directory.
This is how I tried to compile from root user (I don't have iraf user):
1:ABD1C757D7 Formatted Code

# tcsh
% setenv iraf /iraf/iraf/
% setenv IRAFARCH macosx
% source $iraf/unix/hlib/irafuser.csh
% cd /iraf/extern/color
% mkpkg macosx
% mkpkg -p color update
[/code:1:abd1c757d7]

Sources get compiled but when linking I get always the same error. Am I missing something?

Many many thanks for your patience,
Emiliano.

 
Profile Email
 Quote
fitz
 06/23/2006 04:47PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
It is a known incompatability between the GCC 4 (default Tiger) and GCC 3 compilers. I can put up binaries for the needed packages faster than I can solve this, in the end we may need separate binaries for 10.3 ppc systems to have compiler-support (or else ask users to install GCC 4).If you need binaries let me know, some of these may already be on the ftp://iraf.noao.edu/iraf/extern site.Cheers,
-Mike

 
Profile Email
 Quote
emiliano
 06/23/2006 04:47PM  
+++--
Chatty

Status: offline


Registered: 12/05/2005
Posts: 38
Mike,
many thanks for the quick reply...Since I have gcc 4.1 installed with fink, I modified the irafuser.csh script, to force the use of gcc 4.1, but it's the same story. Well, maybe it's time for me to upgrade to Tiger Rolling Eyes Cheers,
Emiliano

 
Profile Email
 Quote
fitz
 06/23/2006 04:47PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try also 'gcc_select' at the prompt to change the default version of GCC used. Inside the XC compiler it will use the default 'cc' command, the gcc_select changes this. Alternatively, you can define setenv XC_CC /usr/bin/gcc-4.1(or whatever the path is) in your .cshrc file (so its picked up through the call within mkpkg) and it will specifically use that command.-Mike

 
Profile Email
 Quote
emiliano
 06/23/2006 04:47PM  
+++--
Chatty

Status: offline


Registered: 12/05/2005
Posts: 38
Mike,
gcc_select can't see gcc4 installed with fink; I also tried setting XC_CC but it's the same story... I'll try to recompile the whole iraf system... or, better, move to 10.4 as soon as possible!
Anyway, many thanks for your support.Cheers,
Emiliano.

 
Profile Email
 Quote
jturner
 06/23/2006 04:47PM  
+++++
Active Member

Status: offline


Registered: 12/29/2005
Posts: 165
Hi Mike,Emma and I ran into this problem today when compiling external packages for IRAF 2.14 on a server running "Darwin 8.8.0" for PPC, using GCC 3.3. We seem to have found an easy solution, which is to add "-lSystemStubs" to LFLAGS in the macosx section of hlib$mkpkg.inc. We figured this out from a couple of Internet forum threads where the same error message is discussed in another context. Does this seem like a good solution to the problem? If so, perhaps you wouldn't mind adding the extra flag to mkpkg.inc by default?Thanks,James.

 
Profile Email
 Quote
jturner
 06/23/2006 04:47PM  
+++++
Active Member

Status: offline


Registered: 12/29/2005
Posts: 165
Actually, I see that gcc4 is also available on the machine, so perhaps using that is the "correct" option.James.

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