I'm always getting this failure on build.
It seems ldflags aren't properly applied on plugin
[100%] Linking CXX executable tst-network
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::createSessionManager(QString const&, QObject*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::downloadCreated(Ubuntu::DownloadManager::Download*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::DownloadStruct::DownloadStruct(QString const&, QString const&, QString const&, QMap<QString, QVariant> const&, QMap<QString, QString> const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::DownloadStruct::DownloadStruct(Ubuntu::DownloadManager::DownloadStruct const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::finished(QString const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::canceled(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::paused(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::resumed(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::started(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::error(Ubuntu::DownloadManager::Error*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::progress(unsigned long long, unsigned long long)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::processing(QString const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::staticMetaObject'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::staticMetaObject'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Error::staticMetaObject'
collect2: error: ld returned 1 exit status
tests/plugins/system-update/CMakeFiles/tst-update.dir/build.make:156: set di istruzioni per l'obiettivo "tests/plugins/system-update/tst-update" non riuscito
make[2]: *** [tests/plugins/system-update/tst-update] Errore 1
CMakeFiles/Makefile2:5730: set di istruzioni per l'obiettivo "tests/plugins/system-update/CMakeFiles/tst-update.dir/all" non riuscito
make[1]: *** [tests/plugins/system-update/CMakeFiles/tst-update.dir/all] Errore 2
make[1]: *** Attesa per i processi non terminati....
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::createSessionManager(QString const&, QObject*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::downloadCreated(Ubuntu::DownloadManager::Download*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::DownloadStruct::DownloadStruct(QString const&, QString const&, QString const&, QMap<QString, QVariant> const&, QMap<QString, QString> const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::DownloadStruct::DownloadStruct(Ubuntu::DownloadManager::DownloadStruct const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::finished(QString const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::canceled(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::paused(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::resumed(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::started(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::error(Ubuntu::DownloadManager::Error*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::progress(unsigned long long, unsigned long long)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::processing(QString const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::staticMetaObject'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::staticMetaObject'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Error::staticMetaObject'
collect2: error: ld returned 1 exit status
tests/plugins/system-update/CMakeFiles/tst-network.dir/build.make:182: set di istruzioni per l'obiettivo "tests/plugins/system-update/tst-network" non riuscito
make[2]: *** [tests/plugins/system-update/tst-network] Errore 1
CMakeFiles/Makefile2:5769: set di istruzioni per l'obiettivo "tests/plugins/system-update/CMakeFiles/tst-network.dir/all" non riuscito
make[1]: *** [tests/plugins/system-update/CMakeFiles/tst-network.dir/all] Errore 2
[100%] Linking CXX executable tst-update-manager
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::createSessionManager(QString const&, QObject*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::downloadCreated(Ubuntu::DownloadManager::Download*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::DownloadStruct::DownloadStruct(QString const&, QString const&, QString const&, QMap<QString, QVariant> const&, QMap<QString, QString> const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::DownloadStruct::DownloadStruct(Ubuntu::DownloadManager::DownloadStruct const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::finished(QString const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::canceled(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::paused(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::resumed(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::started(bool)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::error(Ubuntu::DownloadManager::Error*)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::progress(unsigned long long, unsigned long long)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::processing(QString const&)'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Manager::staticMetaObject'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Download::staticMetaObject'
../../../plugins/system-update/plugin/libupdate-plugin.so: error: undefined reference to 'Ubuntu::DownloadManager::Error::staticMetaObject'
collect2: error: ld returned 1 exit status
tests/plugins/system-update/CMakeFiles/tst-update-manager.dir/build.make:312: set di istruzioni per l'obiettivo "tests/plugins/system-update/tst-update-manager" non riuscito
make[2]: *** [tests/plugins/system-update/tst-update-manager] Errore 1
CMakeFiles/Makefile2:5691: set di istruzioni per l'obiettivo "tests/plugins/system-update/CMakeFiles/tst-update-manager.dir/all" non riuscito
make[1]: *** [tests/plugins/system-update/CMakeFiles/tst-update-manager.dir/all] Errore 2
Makefile:138: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
Also:
ldd -r ./plugins/system-update/libUbuntuUpdatePanel.so
FAils because of missing symbols too