[email protected]
[Top] [All Lists]

Bug#315125: marked as forwarded (libcwd: FTBFS (amd64/gcc-4.0): cast fro

Subject: Bug#315125: marked as forwarded libcwd: FTBFS (amd64/gcc-4.0): cast from 'const unsigned char*' to 'libcwd::elf32::Elf32_Addr' loses precision
From: Debian Bug Tracking System
Date: Mon, 20 Jun 2005 11:18:11 -0700
Your message dated Mon, 20 Jun 2005 20:02:58 +0200
with message-id <[email protected]>
has caused the Debian Bug report #315125,
regarding libcwd: FTBFS (amd64/gcc-4.0): cast from 'const unsigned char*' to 
'libcwd::elf32::Elf32_Addr' loses precision
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 315125-forwarded) by bugs.debian.org; 20 Jun 2005 18:03:04 +0000
>From [email protected] Mon Jun 20 11:03:03 2005
Return-path: <[email protected]>
Received: from armagnac.ifi.unizh.ch (albatross.madduck.net) [] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DkQbv-0004DP-00; Mon, 20 Jun 2005 11:03:03 -0700
Received: from localhost (albatross.madduck.net [])
        by albatross.madduck.net (postfix) with ESMTP id 285C38DC47F;
        Mon, 20 Jun 2005 20:03:00 +0200 (CEST)
Received: from cirrus.madduck.net (cirrus.madduck.net [])
        (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
        (Client CN "cirrus.madduck.net", Issuer "madduck.net CA" (verified OK))
        by albatross.madduck.net (postfix) with ESMTP id 68B4B8DC47D;
        Mon, 20 Jun 2005 20:02:58 +0200 (CEST)
Received: by cirrus.madduck.net (Postfix, from userid 1000)
        id 1F532200AEA; Mon, 20 Jun 2005 20:02:58 +0200 (CEST)
Date: Mon, 20 Jun 2005 20:02:58 +0200
From: martin f krafft <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Fwd: Bug#315125: libcwd: FTBFS (amd64/gcc-4.0): cast from 'const 
unsigned char*' to 'libcwd::elf32::Elf32_Addr' loses precision
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j"
Content-Disposition: inline
Organization: Debian GNU/Linux
X-OS: Debian GNU/Linux 3.1 kernel 2.6.11-cirrus i686
X-Motto: Keep the good times rollin'
X-Subliminal-Message: debian/rules!
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by albatross.madduck.net
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
        HAS_PACKAGE autolearn=ham version=2.60-bugs.debian.org_2005_01_02

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Not sure this fix actually makes sense since (long !=3D Elf64_Addr),
at least not from looking at the patch.

----- Forwarded message from Andreas Jochens <[email protected]> -----

Package: libcwd
Version: 0.99.40-2
Severity: normal
Tags: patch

When building 'libcwd' on amd64/unstable with gcc-4.0,
I get the following error:

 x86_64-linux-g++ -DHAVE_CONFIG_H -I./include -I./include -include pch.h -D=
CWDEBUG -O2 -pipe -fno-exceptions -g -O2 -pipe -fno-exceptions -c elf32.cc =
 -fPIC -DPIC -o .libs/libcwd_la-elf32.o
elf32.cc: In function 'libcwd::elf32::block_t libcwd::elf32::read_block(con=
st unsigned char*&, libcwd::elf32::uLEB128_t)':
elf32.cc:876: error: cast from 'const unsigned char*' to 'libcwd::elf32::El=
f32_Addr' loses precision
make[3]: *** [libcwd_la-elf32.lo] Error 1
make[3]: Leaving directory `/libcwd-0.99.40'

With the attached patch 'libcwd' can be compiled
on amd64 using gcc-4.0.

Andreas Jochens

diff -urN ../tmp-orig/libcwd-0.99.40/elf32.cc ./elf32.cc
--- ../tmp-orig/libcwd-0.99.40/elf32.cc 2004-10-07 19:53:59.000000000 +0200
+++ ./elf32.cc  2005-06-20 19:25:31.000000000 +0200
@@ -873,7 +873,7 @@
   LIBCWD_ASSERT(form =3D=3D DW_FORM_block1 || form =3D=3D DW_FORM_block2 |=
| form =3D=3D DW_FORM_block4 || form =3D=3D DW_FORM_block);
   block_t result;
-  result.begin =3D (Elf32_Addr)debug_info_ptr;
+  result.begin =3D (long)debug_info_ptr;
     case DW_FORM_block1:

----- End forwarded message -----

 .''`.     martin f. krafft <[email protected]>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
"nullum magnum ingenium sine mixtura dementiae fuit."
                                                             -- seneca

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

Version: GnuPG v1.4.1 (GNU/Linux)



To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#315125: marked as forwarded (libcwd: FTBFS (amd64/gcc-4.0): cast from 'const unsigned char*' to 'libcwd::elf32::Elf32_Addr' loses precision), Debian Bug Tracking System <=