[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#650708: marked as done (phonon: FTBFS: error: 'pow' was not declared in this scope)



Your message dated Fri, 02 Dec 2011 12:03:10 +0000
with message-id <E1RWRpe-0001V9-1J@franck.debian.org>
and subject line Bug#650708: fixed in phonon 4:4.6.0really4.5.0-6
has caused the Debian Bug report #650708,
regarding phonon: FTBFS: error: 'pow' was not declared in this scope
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
650708: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650708
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: phonon
Version: 4:4.6.0really4.5.0-5
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)
User: debian-s390@lists.debian.org
Usertags: s390x

phonon fails to build from source with the following error (the build 
log is from s390x, but reproducible on other architectures):

| [ 54%] Building CXX object phonon/CMakeFiles/phonon.dir/pulsestream.cpp.o
| cd phonon && /usr/bin/c++   -DMAKE_PHONON_LIB -D_BSD_SOURCE -DHAVE_PULSEAUDIO -DHAVE_PULSEAUDIO_DEVICE_MANAGER -DHAVE_QZEITGEIST -DPHONON_LIBRARY_PATH=\"/usr/lib/qt4/plugins\" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -fPIC -I. -I../../phonon -I../.. -I../../includes -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/
 qt4/QtSql -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/QtZeitgeist    -o CMakeFiles/phonon.dir/pulsestream.cpp.o -c ../../phonon/pulsestream.cpp
| ../../phonon/pulsestream.cpp: In member function 'void Phonon::PulseStream::setVolume(const pa_cvolume*)':
| ../../phonon/pulsestream.cpp:84:65: error: 'pow' was not declared in this scope
| make[4]: *** [phonon/CMakeFiles/phonon.dir/pulsestream.cpp.o] Error 1
| make[4]: *** Waiting for unfinished jobs....
| make[3]: *** [phonon/CMakeFiles/phonon.dir/all] Error 2
| make[4]: Leaving directory `/build/buildd-phonon_4.6.0really4.5.0-5-s390x-HR53D5/phonon-4.6.0really4.5.0/obj-s390x-linux-gnu'
| make[3]: Leaving directory `/build/buildd-phonon_4.6.0really4.5.0-5-s390x-HR53D5/phonon-4.6.0really4.5.0/obj-s390x-linux-gnu'
| make[2]: *** [all] Error 2
| dh_auto_build: make -j2 returned exit code 2
| make[1]: *** [pre_build_dh_auto_build] Error 2
| make[2]: Leaving directory `/build/buildd-phonon_4.6.0really4.5.0-5-s390x-HR53D5/phonon-4.6.0really4.5.0/obj-s390x-linux-gnu'
| make: make[1]: Leaving directory `/build/buildd-phonon_4.6.0really4.5.0-5-s390x-HR53D5/phonon-4.6.0really4.5.0'
| *** [debian/dhmk_build] Error 2

The problem is that pow is used without including <cmath>, that said
upstream has choosen a different solution and use the Qt function 
instead, as shown in the patch below.

This package will block the s390x bootstrapping soon, so it would be
nice if the fix can be uploaded shortly. Thanks in advance.


commit 436d5379abe83c53c652d8a251f7ab504a1523df
Author: Colin Guthrie <colin@mageia.org>
Date:   Thu Aug 4 16:55:47 2011 +0100

    pulse: Use qPow() as pow() is sometimes not found.

diff --git a/phonon/pulsestream.cpp b/phonon/pulsestream.cpp
index d1e6711..e129f1b 100644
--- a/phonon/pulsestream.cpp
+++ b/phonon/pulsestream.cpp
@@ -21,6 +21,7 @@
 */
 
 #include "pulsestream_p.h"
+#include <QtCore/qmath.h>
 
 QT_BEGIN_NAMESPACE
 
@@ -81,7 +82,7 @@ void PulseStream::setVolume(const pa_cvolume *volume)
         // AudioOutput expects the "backend" to supply values that have been
         // adjusted for Stephens' law, so we need to fudge them accordingly
         // so that the %ages match up in KMix/the application's own slider.
-        emit volumeChanged(pow(vol, VOLTAGE_TO_LOUDNESS_EXPONENT));
+        emit volumeChanged(qPow(vol, VOLTAGE_TO_LOUDNESS_EXPONENT));
     }
 }


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: s390x

Kernel: Linux 3.1.0-1-s390x (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



--- End Message ---
--- Begin Message ---
Source: phonon
Source-Version: 4:4.6.0really4.5.0-6

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

libphonon-dev_4.6.0really4.5.0-6_amd64.deb
  to main/p/phonon/libphonon-dev_4.6.0really4.5.0-6_amd64.deb
libphonon4_4.6.0really4.5.0-6_amd64.deb
  to main/p/phonon/libphonon4_4.6.0really4.5.0-6_amd64.deb
libphononexperimental-dev_4.6.0really4.5.0-6_amd64.deb
  to main/p/phonon/libphononexperimental-dev_4.6.0really4.5.0-6_amd64.deb
libphononexperimental4_4.6.0really4.5.0-6_amd64.deb
  to main/p/phonon/libphononexperimental4_4.6.0really4.5.0-6_amd64.deb
phonon-backend-null_4.6.0really4.5.0-6_all.deb
  to main/p/phonon/phonon-backend-null_4.6.0really4.5.0-6_all.deb
phonon-dbg_4.6.0really4.5.0-6_amd64.deb
  to main/p/phonon/phonon-dbg_4.6.0really4.5.0-6_amd64.deb
phonon_4.6.0really4.5.0-6.debian.tar.gz
  to main/p/phonon/phonon_4.6.0really4.5.0-6.debian.tar.gz
phonon_4.6.0really4.5.0-6.dsc
  to main/p/phonon/phonon_4.6.0really4.5.0-6.dsc
phonon_4.6.0really4.5.0-6_all.deb
  to main/p/phonon/phonon_4.6.0really4.5.0-6_all.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 650708@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> (supplier of updated phonon 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.8
Date: Fri, 02 Dec 2011 12:35:02 +0100
Source: phonon
Binary: phonon libphonon-dev libphonon4 libphononexperimental-dev libphononexperimental4 phonon-backend-null phonon-dbg
Architecture: source all amd64
Version: 4:4.6.0really4.5.0-6
Distribution: unstable
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Description: 
 libphonon-dev - multimedia framework from KDE - development files
 libphonon4 - multimedia framework from KDE - core library
 libphononexperimental-dev - multimedia framework from KDE - experimental development files
 libphononexperimental4 - multimedia framework from KDE - experimental library (internal)
 phonon     - multimedia framework from KDE - metapackage
 phonon-backend-null - multimedia framework from KDE - null back-end (no real back-end)
 phonon-dbg - multimedia framework from KDE - debugging symbols
Closes: 626849 637506 641958 650708
Changes: 
 phonon (4:4.6.0really4.5.0-6) unstable; urgency=low
 .
   [ Pino Toscano ]
   * Backport upstream patch to switch from pow() to qPow(). (Closes: #650708)
     (commit d7d3a08, upstream_pulse-Use-qPow-as-pow-is-sometimes-not-found)
 .
   [ Debconf translation updates ]
   * Dutch (Jeroen Schot). (Closes: #637506)
   * Japanese (Hideki Yamane). (Closes: #626849)
   * Slovak (Slavko). (Closes: #641958)
Checksums-Sha1: 
 e2ceddef1b67485e2df4610c29a49d2c24b2e77e 1840 phonon_4.6.0really4.5.0-6.dsc
 fdb9c517081802b0550eab53401a7eb95e1eebad 30455 phonon_4.6.0really4.5.0-6.debian.tar.gz
 f067eef34f85b438ce8f12246536517cab863954 14592 phonon_4.6.0really4.5.0-6_all.deb
 eef40af18ca31d6a5c28ba0a55166cdcf875855d 109062 libphonon-dev_4.6.0really4.5.0-6_amd64.deb
 47dec542c9a99b4739bc870c5f6174fe9a3d6cec 188840 libphonon4_4.6.0really4.5.0-6_amd64.deb
 c68c9cef96e282349c3e0ec5580a16fd717e4d57 23952 libphononexperimental-dev_4.6.0really4.5.0-6_amd64.deb
 944aee63d222bac586ffbbbbbd2be2ad87036838 42940 libphononexperimental4_4.6.0really4.5.0-6_amd64.deb
 56c7675f556cb58447f5a05744214cd310da8e46 15264 phonon-backend-null_4.6.0really4.5.0-6_all.deb
 8f4043b987fa556a72d778b9d7f8cb6943abcfe7 3170364 phonon-dbg_4.6.0really4.5.0-6_amd64.deb
Checksums-Sha256: 
 b93a3ff21f9f529e7d829fc58778aee8a33659ba1a63539bc9d8b5d43acbd9f7 1840 phonon_4.6.0really4.5.0-6.dsc
 f6fd0561f548a46086e95180f79c89422a127c5e3d15e11c088cad2e829e6023 30455 phonon_4.6.0really4.5.0-6.debian.tar.gz
 c09de64f431cc9eaffa32acdbe094217fa46902eb0b6ae98f66b4aee657175d9 14592 phonon_4.6.0really4.5.0-6_all.deb
 061a1ed2228fd9aa7f5b35651611afd9ce7abd8be8af76fbe116282db87def50 109062 libphonon-dev_4.6.0really4.5.0-6_amd64.deb
 4bcdec26dd1a5be57c5dacc85a83e655e46fbce3fdb3388d23b051e6ece86e73 188840 libphonon4_4.6.0really4.5.0-6_amd64.deb
 883afbd08a805553a89946fceaca92109b0706d2ca95f0b5a3adace2de9e5f1f 23952 libphononexperimental-dev_4.6.0really4.5.0-6_amd64.deb
 319c9e2d5eb70937e524fc72cc6e366d3ef0e8e90eced54975b83afbd8b98192 42940 libphononexperimental4_4.6.0really4.5.0-6_amd64.deb
 cd2a4e6ec295229eb06825c238eb5cf1a3b3848c0077fff3fbac95d3ab541874 15264 phonon-backend-null_4.6.0really4.5.0-6_all.deb
 c33f1df388ed8bb035c511ef4605056b68563c530f991363c90673db170abb8a 3170364 phonon-dbg_4.6.0really4.5.0-6_amd64.deb
Files: 
 a8c22c6516fe3fe8ecd8b3ad64039940 1840 sound optional phonon_4.6.0really4.5.0-6.dsc
 e700be30a5369296bf9388bce45e617f 30455 sound optional phonon_4.6.0really4.5.0-6.debian.tar.gz
 45896f71b335f3aab09fe1f507fafd05 14592 sound optional phonon_4.6.0really4.5.0-6_all.deb
 f4083e14e36fcaa2c2b57deb3eaa12b2 109062 libdevel optional libphonon-dev_4.6.0really4.5.0-6_amd64.deb
 dc4a3e7677f040aafae4ef26cfc0b06b 188840 libs optional libphonon4_4.6.0really4.5.0-6_amd64.deb
 5c883681be20917703f6d5b9d95f0f6d 23952 libdevel optional libphononexperimental-dev_4.6.0really4.5.0-6_amd64.deb
 a5f8fb24e5daddd64ba5d74d2c23026a 42940 libs optional libphononexperimental4_4.6.0really4.5.0-6_amd64.deb
 1e73633eb36c6693aa422c2783f43773 15264 sound optional phonon-backend-null_4.6.0really4.5.0-6_all.deb
 86c0fe6fc5cc5e79435431d688922f76 3170364 debug extra phonon-dbg_4.6.0really4.5.0-6_amd64.deb

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

iD8DBQFO2LwrTNH2piB/L3oRAl7zAJ4gRWl15azY/BSjSJZiewoMnRV0OwCfej2+
F6wpt0E9U1wT2+vVbRcmGMc=
=hN0L
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: