Bug 441078

Summary: kdeconnect link failure w/ pulseaudio 15.0
Product: [Applications] kdeconnect Reporter: Alex Turbov <i.zaufi>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED NOT A BUG    
Severity: normal CC: christophe, fabian
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Full build log

Description Alex Turbov 2021-08-17 10:56:40 UTC
Trying to build kdeconenct 21.08.0 I've got a link error:



STEPS TO REPRODUCE
1. just trying to build it
2. 
3. 

OBSERVED RESULT

/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/kdeconnect_systemvolume.dir/systemvolumeplugin-pulse.cpp.o: in function `SystemvolumePlugin::sendSinkList()::{lambda()#1}::operator()() const':
systemvolumeplugin-pulse.cpp:(.text+0x777): undefined reference to `PulseAudioQt::PulseObject::name() const'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/kdeconnect_systemvolume.dir/systemvolumeplugin-pulse.cpp.o: in function `SystemvolumePlugin::sendSinkList()::{lambda()#2}::operator()() const':
systemvolumeplugin-pulse.cpp:(.text+0x95b): undefined reference to `PulseAudioQt::PulseObject::name() const'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/kdeconnect_systemvolume.dir/systemvolumeplugin-pulse.cpp.o: in function `SystemvolumePlugin::sendSinkList()::{lambda()#3}::operator()() const':
systemvolumeplugin-pulse.cpp:(.text+0xb51): undefined reference to `PulseAudioQt::PulseObject::name() const'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/kdeconnect_systemvolume.dir/systemvolumeplugin-pulse.cpp.o: in function `SystemvolumePlugin::sendSinkList()':
systemvolumeplugin-pulse.cpp:(.text+0xe62): undefined reference to `PulseAudioQt::PulseObject::name() const'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: systemvolumeplugin-pulse.cpp:(.text+0x1031): undefined reference to `PulseAudioQt::PulseObject::name() const'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/kdeconnect_systemvolume.dir/systemvolumeplugin-pulse.cpp.o:systemvolumeplugin-pulse.cpp:(.text+0x1666): more undefined references to `PulseAudioQt::PulseObject::name() const' follow
collect2: error: ld returned 1 exit status

EXPECTED RESULT

Build success

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85
Qt Version: 5.15.2_p215

ADDITIONAL INFORMATION
pulseaudio 15.0
pulseaudio-qt-1.3
Comment 1 Christophe Marin 2021-08-18 08:12:25 UTC
Just tested building pulseaudio-qt and kdeconnect-kde with pulseaudio 15.0, no issue detected.

Your log suggests kdeconnect doesn't try to link to pulseaudio-qt. Can you attach the CMake and (verbose) build log?
Comment 2 Christophe Marin 2021-08-18 13:11:59 UTC
Changing status
Comment 3 Alex Turbov 2021-08-18 13:45:03 UTC
Created attachment 140819 [details]
Full build log
Comment 4 Alex Turbov 2021-08-18 13:52:22 UTC
I've found a reason ;-)
It was 2 versions of pulseaudio-qt. Removing the old version helps to find a new one :)
Comment 5 Christophe Marin 2021-08-18 13:58:14 UTC
you explicitly ask to not look for KF5PulseAudioQt. Is that really intentional? (-DCMAKE_DISABLE_FIND_PACKAGE_KF5PulseAudioQt:BOOL=FALSE)
Comment 6 Christophe Marin 2021-08-18 13:59:59 UTC
rephrasing: why do you need this parameter?
Comment 7 Alex Turbov 2021-08-18 14:05:07 UTC
(In reply to Christophe Giboudeaux from comment #6)
> rephrasing: why do you need this parameter?

Unfortunately, it was not my build script (https://gitlab.exherbo.org/exherbo/kde/-/blob/master/packages/app-mobilephone/kdeconnect/kdeconnect.exlib#L102) ... 

I don't know why they did it ;-(