Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384693 - media-libs/phonon-4.5.0: does not compile with media-sound/pulseaudio-1.0: "Could NOT find PulseAudio"
Summary: media-libs/phonon-4.5.0: does not compile with media-sound/pulseaudio-1.0: "C...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 385911 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-27 18:23 UTC by Clemens Gruber
Modified: 2011-10-11 14:32 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log with error message (build.log,7.68 KB, text/plain)
2011-09-27 18:24 UTC, Clemens Gruber
Details
emerge --info output for media-libs/phonon (emerge_info_phonon.txt,5.42 KB, text/plain)
2011-09-27 18:25 UTC, Clemens Gruber
Details
patch of Comment 10 (7563e0bbb54fbac54e77f3a62d9761a70f3a559c.patch,1.60 KB, text/plain)
2011-10-08 11:02 UTC, Juergen Rose
Details
ebuild which uses patch of Comment 10 (pulseaudio-1.0-r1.ebuild,5.98 KB, text/plain)
2011-10-08 11:03 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Gruber 2011-09-27 18:23:34 UTC
After upgrading pulseaudio to version 1.0, media-libs/phonon cannot be emerged anymore. It seems to be a problem in the configure dependency checks, libpulse version 1.0 is ok, libpulse-mainloop-glib 1.0 is also ok, but it fails at

Reproducible: Always

Steps to Reproduce:
1. Upgrade to latest pulseaudio version 1.0: emerge =media-sound/pulseaudio-1.0
2. Try to emerge phonon: emerge media-libs/phonon

Actual Results:  
See the error message (attachment).

Expected Results:  
Do not rely on components which had been removed in pulseaudio 1.0 (as for example libpulse-browse or other dependencies?)?

See the error message (attachment).
Comment 1 Clemens Gruber 2011-09-27 18:24:27 UTC
Created attachment 287961 [details]
Build log with error message
Comment 2 Clemens Gruber 2011-09-27 18:25:16 UTC
Created attachment 287963 [details]
emerge --info output for media-libs/phonon
Comment 3 Clemens Gruber 2011-09-27 18:27:04 UTC
Forgot to finish a sentence in the first posting :)

..but it fails at "CMake Error at cmake/MacroEnsureVersion.cmake:76 (MATH):
  math cannot parse the expression: "#define pa_get_headers_version()
  ("1")*10000 + #define pa_get_headers_version() ("0")*100 + 0": syntax
  error, unexpected exp_CLOSEPARENT, expecting exp_OPENPARENT or exp_NUMBER
  (32)
Call Stack (most recent call first):
  cmake/MacroEnsureVersion.cmake:95 (NORMALIZE_VERSION)
  cmake/FindPulseAudio.cmake:58 (macro_ensure_version)
  cmake/MacroOptionalFindPackage.cmake:32 (find_package)
  phonon/CMakeLists.txt:9 (macro_optional_find_package)"

(Details, see attachments)
Comment 4 Clemens Gruber 2011-09-27 19:04:22 UTC
I guess, the problem lies here in FindPulseAudio.cmake: https://projects.kde.org/projects/kdesupport/phonon/phonon/repository/revisions/master/entry/cmake/FindPulseAudio.cmake

What will be the course of action, if we can fix it? File a KDE bugreport and wait or make a patch for ourselves in the meantime (until this is fixed in the official repository)?
I don't want to downgrade my system back to pulseaudio 0.9.x.. ;)
Comment 5 Arun Raghavan (RETIRED) gentoo-dev 2011-09-28 10:44:07 UTC
You might not want to downgrade for one more reason -- the PA database format changed, and will probably result in your settings getting wiped or so. Not a *huge* deal but could be annoying.
Comment 6 Arun Raghavan (RETIRED) gentoo-dev 2011-10-01 13:41:21 UTC
https://projects.kde.org/projects/kdesupport/phonon/phonon/repository/revisions/master/changes/cmake/FindPulseAudio.cmake(In reply to comment #4)
> I guess, the problem lies here in FindPulseAudio.cmake:
> https://projects.kde.org/projects/kdesupport/phonon/phonon/repository/revisions/master/entry/cmake/FindPulseAudio.cmake

The top 3 commits in that list should fix things. I'm given to understand a new Phonon version with a bunch of bug fixes is impending, though.
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-02 16:39:22 UTC
There's an issue with the cmake file. We'll have to apply a patch or get a new version.
Comment 8 Juergen Rose 2011-10-03 06:42:30 UTC
Same error here.
Comment 9 Juergen Rose 2011-10-06 13:31:20 UTC
Isn't there any patch? This issue blocks the emerging of kdelibs-4.7.1-r3 and the emerging of dependent packages.
Comment 10 Arun Raghavan (RETIRED) gentoo-dev 2011-10-06 17:32:32 UTC
Other than the patches I pointed to to phonon, this patch to PulseAudio should also fix the problem:

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=7563e0bbb54fbac54e77f3a62d9761a70f3a559c

We should be making a new PA release soon, so holding off on bumping the ebuild yet again.
Comment 11 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-06 20:10:41 UTC
*** Bug 385911 has been marked as a duplicate of this bug. ***
Comment 12 Juergen Rose 2011-10-08 11:02:28 UTC
Created attachment 289203 [details]
patch of Comment 10
Comment 13 Juergen Rose 2011-10-08 11:03:14 UTC
Created attachment 289205 [details]
ebuild which uses patch of Comment 10
Comment 14 Juergen Rose 2011-10-08 11:06:45 UTC
I emerged pulseaudio with patch of Comment 10. Then I tried again 'emerge world' which tries again to emerge phonon. The configuration accepts now pulseaudio-1.0-r1, but nevertheless 'emerge phonon' fails then with:
...
cd /var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0_build/phonon && /usr/bin/i686-pc-linux-gnu-g++  -DMAKE_PHONON_LIB -D_BSD_SOURCE -DHAVE_PULSEAUDIO -DHAVE_PULSEAUDIO_DEVICE_MANAGER -DPHONON_LIBRARY_PATH=\"/usr/lib/kde4/plugins\"  -DNDEBUG -O2 -march=pentium-m -fomit-frame-pointer  -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/var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0_build/phonon -I/var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0/phonon -I/var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0 -I/var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0/includes -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtAssistant -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/QtOpenGL -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/glib-2.0/include    -o CMakeFiles/phonon.dir/pulsestream.cpp.o -c /var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0/phonon/pulsestream.cpp
/var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0/phonon/pulsestream.cpp: In member function ‘void Phonon::PulseStream::setVolume(const pa_cvolume*)’:
/var/tmp/portage/media-libs/phonon-4.5.0/work/phonon-4.5.0/phonon/pulsestream.cpp:84:65: error: ‘pow’ was not declared in this scope
make[2]: *** [phonon/CMakeFiles/phonon.dir/pulsestream.cpp.o] Error 1
Comment 16 Juergen Rose 2011-10-08 11:10:55 UTC
This bug blocks now the installation of kde-4.7.2.
Comment 17 Juergen Rose 2011-10-08 11:24:40 UTC
Masking >=media-sound/pulseaudio-1.0 seems to work as a workaround for me.
Comment 18 Arun Raghavan (RETIRED) gentoo-dev 2011-10-08 11:30:06 UTC
Fixed with pulseaudio 1.0-r2.
Comment 19 Jakub Caban 2011-10-08 12:30:57 UTC
Compilation of phonon against pulseaudio-1.0-r2 fails at:

[ 54%] [ 56%] Building CXX object phonon/CMakeFiles/phonon.dir/pulsestream.cpp.o                                         
Building CXX object phonon/CMakeFiles/phonon.dir/audiooutputadaptor.cpp.o                                                
/var/tmp/paludis/media-libs-phonon-4.5.0/work/phonon-4.5.0/phonon/pulsestream.cpp: In member function 'void Phonon::PulseStream::setVolume(const pa_cvolume*)':                                                                                   
/var/tmp/paludis/media-libs-phonon-4.5.0/work/phonon-4.5.0/phonon/pulsestream.cpp:84:60: error: 'pow' was not declared in this scope                                                                                                              
make[2]: *** [phonon/CMakeFiles/phonon.dir/pulsestream.cpp.o] Error 1                                                    
make[2]: *** Waiting for unfinished jobs....                                                                             
                                                                                                                         
Error:                                                                                                                   
  * In program cave --log-level warning perform install --hooks --managed-output --output-exclusivity with-others =media-libs/phonon-4.5.0:0::gentoo --destination installed --replacing =media-libs/phonon-4.5.0:0::installed --x-of-y 1 of 1:   
  * When installing 'media-libs/phonon-4.5.0:0::gentoo' replacing { 'media-libs/phonon-4.5.0:0::installed' }:            
  * When running an ebuild command on 'media-libs/phonon-4.5.0:0::gentoo':                                               
  * Install failed for 'media-libs/phonon-4.5.0:0::gentoo' (paludis::ActionFailedError)                                  
                                                                                                                         
make[1]: *** [phonon/CMakeFiles/phonon.dir/all] Error 2                                                                  
make: *** [all] Error 2                                                                                                  
                                                                                                                         
!!! ERROR in media-libs/phonon-4.5.0::gentoo:                                                                            
!!! In /usr/libexec/paludis/utils/emake at line 30                                                                       
!!! emake returned error 2                                                                                               
                                                                                                                         
!!! Call stack:                                                                                                          
!!!    * paludis_die_or_error_func (/usr/libexec/paludis/die_functions.bash:67)                                          
!!!    * main (/usr/libexec/paludis/utils/emake:30)                                                                      
                                                                                                                         
diefunc: making ebuild PID 23707 exit with error                                                                         
die trap: exiting with error.
Comment 20 Ulenrich 2011-10-08 15:16:19 UTC
Also at that point an error using portage stable and gcc-6.1

pow used in audiooutput.cpp seems to be included by
#include <QtCore/qmath.h>
Comment 21 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-11 14:32:29 UTC
It seems this issue isn't fixed yet - bug 386489.