(I'm following Camm in copying gcl-devel; to be honest I'm not sure if this is debian specific; I _think_ not)
Hi All; I finally isolated the problem which causes the gcl configure script in Debian gcl 2.6.7-42 to fail in when run under dpkg-buildpackage. The problem is the snippet used to test for personality(ADDR_NO_RANDOMIZE) fails to compile (I tested gcc 4.1, 4.2, and 4.3 on i386) with -Ox, for x>0. For the archives, I include the snippet below. void gprof_cleanup() {}; int main(int argc,char *argv[],char *envp[]) { #include <sys/personality.h> #include <syscall.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> { long pers = personality(0xffffffffUL); if (!(pers & ADDR_NO_RANDOMIZE) && !getenv("GCL_UNRANDOMIZE")) if (personality(pers | ADDR_NO_RANDOMIZE) != -1 && personality(0xffffffffUL) & ADDR_NO_RANDOMIZE) { int i; char **n; for (i=0;envp[i];i++); n=alloca((i+2)*sizeof(*n)); n[i+1]=0; n[i--]="GCL_UNRANDOMIZE=t"; for (;i>=0;i--) n[i]=envp[i]; #ifdef GCL_GPROF gprof_cleanup(); #endif execve(*argv,argv,n); } } return 0;} -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]