On Mon, 8 Nov 2010 16:08:40 -0700, Jerry wrote:
unexelf.c: In function 'int unexec(Extbyte*, Extbyte*,
uintptr_t,
uintptr_t, uintptr_t)':
unexelf.c:696: error: cast from 'void*' to 'Elf32_Addr' loses precision
[..]
gmake[1]: Leaving directory
`/home/buildbot/asjo_openbsd_cfg3/build/src'
[..]
Notice that is "Elf32" instead of "Elf64".
Somehow, we managed to get
the wrong word size in our definition of ElfW. Is sys/exec_elf.h
supposed to provide that definition? See lines 477 to 499 in
unexelf.c.
It doesn't seem to do so on the OpenBSD I am running¹:
$ grep ElfW /usr/include/sys/exec_elf.h
$ grep -Ri ElfW /usr/include/
$ head -1 /usr/include/sys/exec_elf.h
/* $OpenBSD: exec_elf.h,v 1.48 2010/06/07 09:41:16 sthen Exp $ */
$
Best regards,
Adam
¹ OpenBSD 4.8 (GENERIC) #182: Mon Aug 16 09:02:40 MDT 2010
--
"Grr. Very annoyingly non-obvious." Adam Sjøgren
asjo(a)koldfront.dk
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta