emiliano |
06/23/2006 04:47PM (Read 8291 times)
|
|
|
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.
|
|
|
|
fitz |
06/23/2006 04:47PM
|
|
|
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
|
|
|
|
emiliano |
06/23/2006 04:47PM
|
|
|
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 Cheers,
Emiliano
|
|
|
|
fitz |
06/23/2006 04:47PM
|
|
|
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
|
|
|
|
emiliano |
06/23/2006 04:47PM
|
|
|
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.
|
|
|
|
jturner |
06/23/2006 04:47PM
|
|
|
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.
|
|
|
|
jturner |
06/23/2006 04:47PM
|
|
|
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.
|
|
|
|