Bug#287864: marked as done (openh323: FTBFS (amd64/gcc-4.0): cast from 'const unsigned char*' to 'int' loses precision)
Debian Bug Tracking System
owner@bugs.debian.org
Sat, 05 Mar 2005 07:48:20 -0800
Your message dated Sat, 05 Mar 2005 10:32:23 -0500
with message-id <E1D7bGR-0004j0-00@newraff.debian.org>
and subject line Bug#287864: fixed in openh323 1.15.3-2
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(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 submit) by bugs.debian.org; 30 Dec 2004 16:09:27 +0000
>From aj@andaco.de Thu Dec 30 08:09:26 2004
Return-path: <aj@andaco.de>
Received: from d020125.adsl.hansenet.de (localhost.localdomain) [80.171.20.125]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Ck2re-0003Sm-00; Thu, 30 Dec 2004 08:09:26 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
id 1Ck2wt-00078U-SN; Thu, 30 Dec 2004 17:14:51 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: openh323: FTBFS (amd64/gcc-4.0): cast from 'const unsigned char*' to 'int' loses precision
Message-Id: <E1Ck2wt-00078U-SN@localhost.localdomain>
Date: Thu, 30 Dec 2004 17:14:51 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Package: openh323
Severity: normal
Tags: patch
When building 'openh323' on amd64 with gcc-4.0,
I get the following error:
g++ -Ivic -DP_USE_PRAGMA -ffunction-sections -fdata-sections -D_REENTRANT -Wall -DP_64BIT -g -D_DEBUG -DNDEBUG -DPTRACING -I/openh323-1.13.5.4/include -DHAS_OSS -DPTRACING -I/usr/share/pwlib//include -fPIC -DPIC -c vic/p64.cxx -o /openh323-1.13.5.4/lib/obj_linux_x86_64_d/p64.o
vic/p64.cxx: In member function 'virtual BOOL P64Decoder::decode(const unsigned char*, int, BOOL)':
vic/p64.cxx:1128: error: cast from 'const unsigned char*' to 'int' loses precision
make[4]: *** [/openh323-1.13.5.4/lib/obj_linux_x86_64_d/p64.o] Error 1
make[4]: Leaving directory `/openh323-1.13.5.4/src'
With the attached patch 'openh323' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/openh323-1.13.5.4/src/vic/p64.cxx ./src/vic/p64.cxx
--- ../tmp-orig/openh323-1.13.5.4/src/vic/p64.cxx 2003-03-14 08:25:55.000000000 +0100
+++ ./src/vic/p64.cxx 2004-12-30 16:45:33.388829064 +0100
@@ -1125,7 +1125,7 @@
* If input buffer not aligned, prime bit-buffer
* with 8 bits; otherwise, prime it with a 16.
*/
- if ((int)bp & 1) {
+ if ((long)bp & 1) {
bs_ = (u_short*)(bp + 1);
bb_ = *bp;
nbb_ = 8 - sbit;
---------------------------------------
Received: (at 287864-close) by bugs.debian.org; 5 Mar 2005 15:38:04 +0000
>From katie@ftp-master.debian.org Sat Mar 05 07:38:04 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1D7bLw-0001II-00; Sat, 05 Mar 2005 07:38:04 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
id 1D7bGR-0004j0-00; Sat, 05 Mar 2005 10:32:23 -0500
From: Kilian Krause <kk@verfaction.de>
To: 287864-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#287864: fixed in openh323 1.15.3-2
Message-Id: <E1D7bGR-0004j0-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sat, 05 Mar 2005 10:32:23 -0500
Delivered-To: 287864-close@bugs.debian.org
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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Source: openh323
Source-Version: 1.15.3-2
We believe that the bug you reported is fixed in the latest version of
openh323, which is due to be installed in the Debian FTP archive:
libopenh323-1.15.2_1.15.3-2_i386.deb
to pool/main/o/openh323/libopenh323-1.15.2_1.15.3-2_i386.deb
libopenh323-dbg_1.15.3-2_i386.deb
to pool/main/o/openh323/libopenh323-dbg_1.15.3-2_i386.deb
libopenh323-dev_1.15.3-2_i386.deb
to pool/main/o/openh323/libopenh323-dev_1.15.3-2_i386.deb
libopenh323-doc_1.15.3-2_all.deb
to pool/main/o/openh323/libopenh323-doc_1.15.3-2_all.deb
openh323_1.15.3-2.diff.gz
to pool/main/o/openh323/openh323_1.15.3-2.diff.gz
openh323_1.15.3-2.dsc
to pool/main/o/openh323/openh323_1.15.3-2.dsc
simph323_1.15.3-2_i386.deb
to pool/main/o/openh323/simph323_1.15.3-2_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 287864@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Kilian Krause <kk@verfaction.de> (supplier of updated openh323 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 4 Mar 2005 01:22:46 +0100
Source: openh323
Binary: simph323 libopenh323-dbg libopenh323-1.15.2 libopenh323-doc libopenh323-dev
Architecture: source i386 all
Version: 1.15.3-2
Distribution: unstable
Urgency: low
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Changed-By: Kilian Krause <kk@verfaction.de>
Description:
libopenh323-1.15.2 - H.323 aka VoIP library
libopenh323-dbg - H.323 aka VoIP library development debug files
libopenh323-dev - H.323 aka VoIP library development files
libopenh323-doc - H.323 aka VoIP library documentation files
simph323 - Simple example from the OpenH323 project
Closes: 287864
Changes:
openh323 (1.15.3-2) unstable; urgency=low
.
* Fixed warnings in autotools target.
* debian/patches/04_vic_p64.dpatch: fix 64bit issue with gcc-4.0
(Closes:#287864)
* debian/patches/05_h261fix.dpatch: fix quality problems with some remote
endpoints.
Files:
1d33c9f5707ba6f64ab81e6a5483d7d6 1102 libs optional openh323_1.15.3-2.dsc
ad4a1cf0dbd8f1b13f8450af4e59e80c 18958 libs optional openh323_1.15.3-2.diff.gz
b5a45c7f7c8a8a1e4a9369ca75a3c32e 2114466 libs optional libopenh323-1.15.2_1.15.3-2_i386.deb
1739f2b9c3ff9b35b81306cc6005423e 2913882 libdevel optional libopenh323-dev_1.15.3-2_i386.deb
3a7a61cb10f495449b89b66802aea36f 142996 comm optional simph323_1.15.3-2_i386.deb
f73785d3d53b22d4b70bdc488f404a5b 770714 libdevel extra libopenh323-dbg_1.15.3-2_i386.deb
7dc15c20f3e991bf34032e7c0789f196 3888296 doc extra libopenh323-doc_1.15.3-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCKcfES+BYJZB4jhERAlBJAJ9/qejMumlmLjzqSTi9tbfs6YkQ0ACfYV/i
VP49/sc2dnK+qy2LH1ZJa/U=
=SsDd
-----END PGP SIGNATURE-----