Express-2 issues
Hi,
After installing Express 2 on my Gentoo distros (amd64 and x86),
I noticed the following problems :
1. prod/bin/ipo (possibly other executables too) have /usr/bin/bzip2
hardcoded. On Gentoo however bzip2 is usually in /bin/bzip2,
so the best bet would be to put in executables only 'bzip2'
without any paths.
The workaround is trivial : ln -s /bin/bzip2 /usr/bin/bzip2
2. sunstudio (possibly other) scripts call 'uname -p', which on Gentoo
returns for instance : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
This value is subsequently used in the script, but variables
are unquoted, which leads to :
/app/sun/studioexpress11/sunstudiomars/bin/sunstudio: line 293: [: too many arguments
/app/sun/studioexpress11/sunstudiomars/prod/scripts/jdk_chooser: line 187: $USERDIR/cache/jdkhome.ver: ambiguous redirect
The workaround would be to : either call 'uname -m' instead or
put relevant variables in doublequotes.
3. The -xipo option seems to have problem with binutils (?). for a
trivial program, like :
/******************************/
#include <stdio.h>
#include <stdlib.h>
int k;
intmain(int argc, char **argv)
{
k = atoi(argv[1]);
printf("argv1 = %d\n", k);
return(0);
}
/*********************************/
compiled with "-xipo", attempt to link it results in :
# suncc -fast -xipo f.c
/app/sun/studioexpress11/sunstudiomars/prod/lib/crt1x.o: In function `_start':
fsr.s:(.text+0x23): undefined reference to `main'
The reason is most likely, strange symbol prefix for main :
# nm f.o
00000000 b Bbss.bss
00000000 d Ddata.data
00000000 r Drodata.rodata
00000004 C k
00000000 R .XBeuUZQTv9hF0YA.main..L16
My setup : binutils-2.17 compiled with gcc-4.1.1 / libc-2.5

