2.13beta2 on Mac OS X/ppc 10.3.9: can’t compile packages
Emilliano Gregori wrote on Jun 23, 2006
Hello Mike,
when compiling external packages I get a linker error:
ld: Undefined symbols:
_sprintf$LDBLStub
I'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):
Sources get compiled but when linking I get always the same error. Am I missing something?
Many many thanks for your patience,
Emiliano.[/code]
when compiling external packages I get a linker error:
ld: Undefined symbols:
_sprintf$LDBLStub
I'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):
# tcsh
% setenv iraf /iraf/iraf/
% setenv IRAFARCH macosx
% source $iraf/unix/hlib/irafuser.csh
% cd /iraf/extern/color
% mkpkg macosx
% mkpkg -p color update
Sources get compiled but when linking I get always the same error. Am I missing something?
Many many thanks for your patience,
Emiliano.[/code]
Mike Fitzpatrick wrote on Jun 23, 2006
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
If you need binaries let me know, some of these may already be on the ftp://iraf.noao.edu/iraf/extern site.
Cheers,
-Mike
Emilliano Gregori wrote on Jun 23, 2006
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 :roll:
Cheers,
Emiliano
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 :roll:
Cheers,
Emiliano
Mike Fitzpatrick wrote on Jun 23, 2006
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
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
Emilliano Gregori wrote on Jun 23, 2006
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.
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.
James Turner wrote on Jun 23, 2006
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.
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.
James Turner wrote on Jun 23, 2006
Actually, I see that gcc4 is also available on the machine, so perhaps using that is the "correct" option.
James.
James.
Last post on Jun 23, 2006