More bugs in 0.9.4.1


Subject: More bugs in 0.9.4.1
From: Bernhard Rosenkraenzer (bero@redhat.de)
Date: Tue Oct 23 2001 - 15:34:11 CDT


On alpha (and other 64-bit arches):

ut_AbiObject.cpp: In method `UT_uint32 UT_AbiObject::hashcode ()
const':
ut_AbiObject.cpp:108: reinterpret_cast from `const UT_AbiObject *' to
`UT_uint32' loses precision

The patch I've attached fixes it for me - don't know how portable it is,
though (what? There are other OSes than Linux and FreeBSD?? Must be a
rumor).

In theory, a simpler patch (simply replacing reinterpret_cast<UT_uint32>
with reinterpret_cast<long>) should do the job as well - at least on the
systems I'm familiar with, the size of long matches the size of a pointer.

It still doesn't build completely on alpha, though:

/usr/src/build/47578-alpha/BUILD/abiword-0.9.4.1/abi/src/Linux_2.4.7-10smp_alph
a_OBJ/obj/libAbiEv.a(ev_UnixToolbar.o): In function
`_wd::s_callback(_GtkWidget *, void *)':
ev_UnixToolbar.o(._wd::gnu.linkonce.t.s_callback(_GtkWidget *, void
*)+0x28): relocation truncated to fit: BRADDR text
[much the same follows for every other function]

I don't know what's causing this yet, probably the way the linker is
invoked.

LLaP
bero




This archive was generated by hypermail 2b25 : Tue Oct 23 2001 - 15:34:21 CDT