32-bit binary compatibility on 5.3-amd64
Rob Watt
rob at hudson-trading.com
Fri Jan 28 08:08:42 PST 2005
On Fri, 28 Jan 2005, Joseph Koshy wrote:
> > I've run the /usr/src/tools/lib32/build32.sh script, and applied some
> > other changes that people have reccomended, but basically our 32-bit
> > applications all segfault when run on the amd64 machines.
>
> Exactly what is the segfault? Could you post the output of ktrace on an example
> process?
>
a ktrace is attached for this sample code:
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("char* %d\n", sizeof(char*));
printf("int* %d\n", sizeof(int*));
printf("void* %d\n", sizeof(void*));
printf("long %d\n", sizeof(long));
printf("double %d\n", sizeof(double));
printf("int %d\n", sizeof(int));
return 0;
}
this was compiled on a 5.3 i386 machine with: g++ -g
-
Rob Watt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ostest3.ktrace.out
Type: application/octet-stream
Size: 23210 bytes
Desc:
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20050128/7ffe8a6d/ostest3.ktrace.obj
More information about the freebsd-amd64
mailing list