Bug#303028: marked as done (yate: FTBFS (amd64/gcc-4.0): cast from 'MsgHolder*' to 'unsigned int' loses precision)

Debian Bug Tracking System owner at bugs.debian.org
Tue Sep 6 21:03:35 UTC 2005


Your message dated Tue, 06 Sep 2005 13:47:41 -0700
with message-id <E1ECkM1-0006Qs-00 at spohr.debian.org>
and subject line Bug#303028: fixed in yate 0.8.7+cvs20050604-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; 4 Apr 2005 08:53:00 +0000
>From aj at andaco.de Mon Apr 04 01:53:00 2005
Return-path: <aj at andaco.de>
Received: from c214125.adsl.hansenet.de (localhost.localdomain) [213.39.214.125] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DINKO-0001Nj-00; Mon, 04 Apr 2005 01:53:00 -0700
Received: from aj by localhost.localdomain with local (Exim 4.50)
	id 1DINKR-0002m1-On; Mon, 04 Apr 2005 10:53:03 +0200
To: Debian Bug Tracking System <submit at bugs.debian.org>
From: Andreas Jochens <aj at andaco.de>
Subject: yate: FTBFS (amd64/gcc-4.0): cast from 'MsgHolder*' to 'unsigned int' loses precision
Message-Id: <E1DINKR-0002m1-On at localhost.localdomain>
Date: Mon, 04 Apr 2005 10:53:03 +0200
Delivered-To: submit at 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=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: yate
Version: 0.8.7-2
Severity: normal
Tags: patch

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

extmodule.cpp: In constructor 'MsgHolder::MsgHolder(TelEngine::Message&)':
extmodule.cpp:315: error: cast from 'MsgHolder*' to 'unsigned int' loses precision
make[2]: *** [extmodule.yate] Error 1
make[2]: Leaving directory `/yate-0.8.7/modules'

The attached patch to 'yate' fixes this error and also some other gcc-4.0
related errors.

Additionally, the package does not autobuild because it does not find
the zaptel.h include file in /usr/src/modules. 
The *tar.bz2 with the zaptel source has to be untared.

Regards
Andreas Jochens

diff -urN ../tmp-orig/yate-0.8.7/contrib/qt/qtclientform.cpp ./contrib/qt/qtclientform.cpp
--- ../tmp-orig/yate-0.8.7/contrib/qt/qtclientform.cpp	2005-01-10 03:32:57.000000000 +0100
+++ ./contrib/qt/qtclientform.cpp	2005-04-04 10:41:50.384404091 +0200
@@ -50,7 +50,7 @@
 	correctDigit = new QPushButton (this);
 	correctDigit->setGeometry (90, 90, 30, 20);
 	correctDigit->setText ("<=");
-	QKeySequence seqCorrectDigit (UNICODE_ACCEL + '-');//Key_Backspace
+	QKeySequence seqCorrectDigit ((int)UNICODE_ACCEL + '-');//Key_Backspace
 	correctDigit->setAccel (seqCorrectDigit);
 	connect (correctDigit, SIGNAL(clicked()), numberDisplay, SLOT(removeLastDigit()));
 	correctDigit->setFocusPolicy (NoFocus);
@@ -58,7 +58,7 @@
 	rejectCall = new QPushButton (this);
 	rejectCall->setGeometry (67, 120, 53, 20);
 	rejectCall->setText ("Reject");
-	QKeySequence seqRejectCall (UNICODE_ACCEL + '/');
+	QKeySequence seqRejectCall ((int)UNICODE_ACCEL + '/');
 	rejectCall->setAccel (seqRejectCall);
 	rejectCall->setFocusPolicy (NoFocus);
 	connect (rejectCall, SIGNAL (clicked()),
@@ -76,7 +76,7 @@
 	quitButton = new QPushButton (this);
 	quitButton->setGeometry (10, 90, 53, 20);
 	quitButton->setText ("Quit");
-	QKeySequence seqQuitButton (UNICODE_ACCEL + 'q');
+	QKeySequence seqQuitButton ((int)UNICODE_ACCEL + 'q');
 	quitButton->setAccel (seqQuitButton);
 	quitButton->setFocusPolicy (NoFocus);
 	connect (quitButton, SIGNAL (clicked()),
@@ -102,7 +102,7 @@
 	addToAddressBookButton = new QPushButton (this);
 	addToAddressBookButton->setGeometry (215, 50, 75, 25);
 	addToAddressBookButton->setText ("Add");
-	QKeySequence seqAddButton (UNICODE_ACCEL + 'a');
+	QKeySequence seqAddButton ((int)UNICODE_ACCEL + 'a');
 	addToAddressBookButton->setAccel (seqAddButton);
 	addToAddressBookButton->setFocusPolicy (NoFocus);
 	connect (addToAddressBookButton, SIGNAL (clicked()),
diff -urN ../tmp-orig/yate-0.8.7/contrib/qt/yatedialbutton.cpp ./contrib/qt/yatedialbutton.cpp
--- ../tmp-orig/yate-0.8.7/contrib/qt/yatedialbutton.cpp	2005-01-10 03:32:57.000000000 +0100
+++ ./contrib/qt/yatedialbutton.cpp	2005-04-04 10:41:09.082148052 +0200
@@ -40,11 +40,11 @@
 
 	QKeySequence *seq = NULL;
 	if (value >= '0' && value <='9')
-		seq = new QKeySequence (UNICODE_ACCEL + value);
+		seq = new QKeySequence ((int)UNICODE_ACCEL + value);
 	if (value == '*')
-		seq = new QKeySequence (UNICODE_ACCEL + '*');
+		seq = new QKeySequence ((int)UNICODE_ACCEL + '*');
 	if (value == '#')
-		seq = new QKeySequence (UNICODE_ACCEL + '.'); /* change it with '#', but it's nicer if you use the numeric keypad */
+		seq = new QKeySequence ((int)UNICODE_ACCEL + '.'); /* change it with '#', but it's nicer if you use the numeric keypad */
 	if (seq)
 		setAccel (*seq);
 	setFocusPolicy (NoFocus);
diff -urN ../tmp-orig/yate-0.8.7/modules/extmodule.cpp ./modules/extmodule.cpp
--- ../tmp-orig/yate-0.8.7/modules/extmodule.cpp	2004-12-21 05:16:09.000000000 +0100
+++ ./modules/extmodule.cpp	2005-04-04 10:26:53.000000000 +0200
@@ -312,7 +312,7 @@
     : m_msg(msg), m_ret(false)
 {
     // the address of this object should be unique
-    m_id = (unsigned int)this;
+    m_id = (unsigned int)(unsigned long)this;
     m_id << (unsigned int)random();
 }
 
diff -urN ../tmp-orig/yate-0.8.7/modules/zapchan.cpp ./modules/zapchan.cpp
--- ../tmp-orig/yate-0.8.7/modules/zapchan.cpp	2005-01-16 05:39:36.000000000 +0100
+++ ./modules/zapchan.cpp	2005-04-04 10:43:19.029783538 +0200
@@ -590,7 +590,7 @@
       m_restart(0), m_chans(0), m_ok(false)
 {
     Debug(DebugAll,"PriSpan::PriSpan(%p,%d,%d,%d) [%p]",_pri,span,chans,fd,this);
-    ZapChan **ch = new (ZapChan *)[chans];
+    ZapChan **ch = new ZapChan*[chans];
     for (int i = 1; i <= chans; i++)
 	ch[i-1] = (i == dchan) ? 0 : new ZapChan(this,i,s_buflen);
     m_chans = ch;

---------------------------------------
Received: (at 303028-close) by bugs.debian.org; 6 Sep 2005 20:50:53 +0000
>From katie at spohr.debian.org Tue Sep 06 13:50:53 2005
Return-path: <katie at spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1ECkM1-0006Qs-00; Tue, 06 Sep 2005 13:47:41 -0700
From: Kilian Krause <kilian at debian.org>
To: 303028-close at bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#303028: fixed in yate 0.8.7+cvs20050604-2
Message-Id: <E1ECkM1-0006Qs-00 at spohr.debian.org>
Sender: Archive Administrator <katie at spohr.debian.org>
Date: Tue, 06 Sep 2005 13:47:41 -0700
Delivered-To: 303028-close at 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-Level: 
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-CrossAssassin-Score: 2

Source: yate
Source-Version: 0.8.7+cvs20050604-2

We believe that the bug you reported is fixed in the latest version of
yate, which is due to be installed in the Debian FTP archive:

yate-dev_0.8.7+cvs20050604-2_i386.deb
  to pool/main/y/yate/yate-dev_0.8.7+cvs20050604-2_i386.deb
yate-doc_0.8.7+cvs20050604-2_all.deb
  to pool/main/y/yate/yate-doc_0.8.7+cvs20050604-2_all.deb
yate-gtk_0.8.7+cvs20050604-2_i386.deb
  to pool/main/y/yate/yate-gtk_0.8.7+cvs20050604-2_i386.deb
yate-openh323_0.8.7+cvs20050604-2_i386.deb
  to pool/main/y/yate/yate-openh323_0.8.7+cvs20050604-2_i386.deb
yate-pgsql_0.8.7+cvs20050604-2_i386.deb
  to pool/main/y/yate/yate-pgsql_0.8.7+cvs20050604-2_i386.deb
yate-qt_0.8.7+cvs20050604-2_i386.deb
  to pool/main/y/yate/yate-qt_0.8.7+cvs20050604-2_i386.deb
yate_0.8.7+cvs20050604-2.diff.gz
  to pool/main/y/yate/yate_0.8.7+cvs20050604-2.diff.gz
yate_0.8.7+cvs20050604-2.dsc
  to pool/main/y/yate/yate_0.8.7+cvs20050604-2.dsc
yate_0.8.7+cvs20050604-2_i386.deb
  to pool/main/y/yate/yate_0.8.7+cvs20050604-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 303028 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Kilian Krause <kilian at debian.org> (supplier of updated yate 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 at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue,  6 Sep 2005 19:21:24 +0000
Source: yate
Binary: yate-pgsql yate-gtk yate-qt yate yate-doc yate-dev yate-openh323
Architecture: source i386 all
Version: 0.8.7+cvs20050604-2
Distribution: unstable
Urgency: low
Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
Changed-By: Kilian Krause <kilian at debian.org>
Description: 
 yate       - YATE - Yet Another Telephony Engine
 yate-dev   - Development files for YATE
 yate-doc   - Documentation for yate
 yate-gtk   - GTK module for YATE
 yate-openh323 - OpenH323 module for YATE
 yate-pgsql - Postgresql module for yate
 yate-qt    - Qt module for YATE
Closes: 303028 326588 326887
Changes: 
 yate (0.8.7+cvs20050604-2) unstable; urgency=low
 .
   * Fixed building with gcc4 to complete Qt/gcc4-version. (Closes: #326588,#303028)
   * debian/control: Fix typos (Closes: #326887)
Files: 
 d8ff84118a68020e095347ca64c8b0fe 1043 comm optional yate_0.8.7+cvs20050604-2.dsc
 676b7f3106e70f784497ed876abb601d 6798 comm optional yate_0.8.7+cvs20050604-2.diff.gz
 93bbffd9d79efdd7e3b52ae3df4f7b1b 269792 comm optional yate_0.8.7+cvs20050604-2_i386.deb
 1ae70f78a22d893dcc1985aa9b2725e5 22706 libdevel optional yate-dev_0.8.7+cvs20050604-2_i386.deb
 fe38c0e1b03e0f9b9197b273e48bb329 5538 doc optional yate-doc_0.8.7+cvs20050604-2_all.deb
 d25cf9e60339d3b13b1194e0050e9873 20514 comm optional yate-pgsql_0.8.7+cvs20050604-2_i386.deb
 33173ff838ae365ca4a4ac498e273a6a 61094 comm optional yate-openh323_0.8.7+cvs20050604-2_i386.deb
 074dac323dfc7d5422921b81d2205990 14762 comm optional yate-gtk_0.8.7+cvs20050604-2_i386.deb
 80f7a555c85a7bf282ef49593b46b2ae 40820 comm optional yate-qt_0.8.7+cvs20050604-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDHe03vdkzt4X+wX8RAkGjAJ4ojiw064WCuDJoEBbsJsSOxW4jjQCfe4nY
8JCIP/bX5tVAzbH9AaHzccw=
=kg4r
-----END PGP SIGNATURE-----




More information about the Pkg-voip-maintainers mailing list