Bug 366210 - Source Compiling stops with error
Summary: Source Compiling stops with error
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-28 18:02 UTC by Harald Schugt
Modified: 2018-01-16 23:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Schugt 2016-07-28 18:02:47 UTC
HI, unfortunately I am not very experienced in compiling kde applications.
Cause 0.9g ist the last opensuse rpm I tried to compile the latest sources yesterday on my Opensuse Leap 42.1 (64 Bit Computer).
It was a challenge to install all sources but finally the cmake process worked fine.

Now the make process interrupts with this error message:

In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/devicelink.h:27:0,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:30,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:23:
/home/schugt/tmp/kdeconnect-kde-master/core/networkpackage.h:52:14: warning: in passing argument 2 of ‘NetworkPackage::NetworkPackage(const QString&, const QVariantMap&)’ [enabled by default]
     explicit NetworkPackage(const QString& type, const QVariantMap &body = {});
              ^
core/CMakeFiles/kdeconnectcore.dir/build.make:110: recipe for target 'core/CMakeFiles/kdeconnectcore.dir/backends/lan/landevicelink.cpp.o' failed
make[2]: *** [core/CMakeFiles/kdeconnectcore.dir/backends/lan/landevicelink.cpp.o] Error 1
CMakeFiles/Makefile2:123: recipe for target 'core/CMakeFiles/kdeconnectcore.dir/all' failed
make[1]: *** [core/CMakeFiles/kdeconnectcore.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Any idea how to solve this?

Thank You in advance.

Best regards. Harald
Comment 1 Albert Vaca Cintora 2016-07-29 09:38:09 UTC
There is no error message shown in the output you pasted.
Comment 2 Harald Schugt 2016-07-29 10:06:45 UTC
This is the complete output:

schugt@linux-c0qp:~/tmp/kdeconnect-kde-master> make
[  0%] Automatic moc for target kdeconnectcore
[  0%] Built target kdeconnectcore_automoc
[  0%] Building CXX object core/CMakeFiles/kdeconnectcore.dir/backends/lan/landevicelink.cpp.o
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/devicelink.h:27:0,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:30,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:23:
/home/schugt/tmp/kdeconnect-kde-master/core/networkpackage.h:52:77: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
     explicit NetworkPackage(const QString& type, const QVariantMap &body = {});
                                                                             ^
/home/schugt/tmp/kdeconnect-kde-master/core/networkpackage.h:52:77: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
/home/schugt/tmp/kdeconnect-kde-master/core/networkpackage.h:65:77: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
     template<typename T> T get(const QString& key, const T& defaultValue = {}) const {
                                                                             ^
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:30:0,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:23:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/devicelink.h:43:29: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
     virtual ~DeviceLink() = default;
                             ^
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/uploadjob.h:30:0,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:31,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:23:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/server.h:40:13: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     ~Server() override = default;
             ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/server.h:40:26: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
     ~Server() override = default;
                          ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/server.h:42:39: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     QSslSocket* nextPendingConnection() override;
                                       ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/server.h:43:34: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     bool hasPendingConnections() const override;
                                  ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/server.h:46:53: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     void incomingConnection(qintptr socketDescriptor) override;                                                                                                                                                                              
                                                     ^                                                                                                                                                                                        
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:31:0,                                                                                                                                          
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:23:                                                                                                                                          
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/uploadjob.h:39:16: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                                   
     void start() override;                                                                                                                                                                                                                   
                ^                                                                                                                                                                                                                             
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:23:0:                                                                                                                                        
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:41:30: warning: scoped enums only available with -std=c++11 or -std=gnu++11 [enabled by default]                                                                     
     enum ConnectionStarted : bool { Locally, Remotely };                                                                                                                                                                                     
                              ^                                                                                                                                                                                                               
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:46:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                               
     QString name() override;                                                                                                                                                                                                                 
                  ^                                                                                                                                                                                                                           
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:47:40: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                               
     bool sendPackage(NetworkPackage& np) override;                                                                                                                                                                                           
                                        ^                                                                                                                                                                                                     
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:50:27: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                               
     void userRequestsPair() override;                                                                                                                                                                                                        
                           ^                                                                                                                                                                                                                  
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:51:29: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                               
     void userRequestsUnpair() override;                                                                                                                                                                                                      
                             ^                                                                                                                                                                                                                
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:53:41: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                               
     void setPairStatus(PairStatus status) override;                                                                                                                                                                                          
                                         ^                                                                                                                                                                                                    
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:55:32: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                               
     bool linkShouldBeKeptAlive() override;                                                                                                                                                                                                   
                                ^                                                                                                                                                                                                             
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/linkprovider.h:27:0,                                                                                                                                               
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:26:                                                                                                                                          
/home/schugt/tmp/kdeconnect-kde-master/core/backends/pairinghandler.h:45:21: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]                                                  
     ~PairingHandler() override = default;                                                                                                                                                                                                    
                     ^                                                                                                                                                                                                                        
/home/schugt/tmp/kdeconnect-kde-master/core/backends/pairinghandler.h:45:34: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]                                                     
     ~PairingHandler() override = default;
                                  ^
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:26:0:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/linkprovider.h:43:19: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     ~LinkProvider() override = default;
                   ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/linkprovider.h:43:32: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
     ~LinkProvider() override = default;
                                ^
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:28:0:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/downloadjob.h:42:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     ~DownloadJob() override;
                  ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/downloadjob.h:43:16: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     void start() override;
                ^
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:29:0:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/socketlinereader.h:41:69: error: ‘nullptr’ was not declared in this scope
     explicit SocketLineReader(QSslSocket* socket, QObject* parent = nullptr);
                                                                     ^
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:30:0:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/lanlinkprovider.h:45:22: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     ~LanLinkProvider() override;
                      ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/lanlinkprovider.h:47:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     QString name() override { return "LanLinkProvider"; }
                  ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/lanlinkprovider.h:48:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     int priority() override { return PRIORITY_HIGH; }
                  ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/lanlinkprovider.h:58:26: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     void onNetworkChange() override;
                          ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/lanlinkprovider.h:59:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     void onStart() override;
                  ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/lanlinkprovider.h:60:17: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
     void onStop() override;
                 ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp: In constructor ‘LanDeviceLink::LanDeviceLink(const QString&, LinkProvider*, QSslSocket*, LanDeviceLink::ConnectionStarted)’:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:34:25: error: ‘nullptr’ was not declared in this scope
     , mSocketLineReader(nullptr)
                         ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp: In member function ‘void LanDeviceLink::reset(QSslSocket*, LanDeviceLink::ConnectionStarted)’:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:60:53: error: ‘PairStatus’ is not a class or namespace
     DeviceLink::setPairStatus(certString.isEmpty()? PairStatus::NotPaired : PairStatus::Paired);
                                                     ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:60:77: error: ‘PairStatus’ is not a class or namespace
     DeviceLink::setPairStatus(certString.isEmpty()? PairStatus::NotPaired : PairStatus::Paired);
                                                                             ^
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp: In member function ‘void LanDeviceLink::dataReceived()’:
/home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:94:41: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
     NetworkPackage package(QString::null);
                                         ^
In file included from /home/schugt/tmp/kdeconnect-kde-master/core/backends/devicelink.h:27:0,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.h:30,
                 from /home/schugt/tmp/kdeconnect-kde-master/core/backends/lan/landevicelink.cpp:23:
/home/schugt/tmp/kdeconnect-kde-master/core/networkpackage.h:52:14: warning: in passing argument 2 of ‘NetworkPackage::NetworkPackage(const QString&, const QVariantMap&)’ [enabled by default]
     explicit NetworkPackage(const QString& type, const QVariantMap &body = {});
              ^
core/CMakeFiles/kdeconnectcore.dir/build.make:110: recipe for target 'core/CMakeFiles/kdeconnectcore.dir/backends/lan/landevicelink.cpp.o' failed
make[2]: *** [core/CMakeFiles/kdeconnectcore.dir/backends/lan/landevicelink.cpp.o] Error 1
CMakeFiles/Makefile2:123: recipe for target 'core/CMakeFiles/kdeconnectcore.dir/all' failed
make[1]: *** [core/CMakeFiles/kdeconnectcore.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Comment 3 Albert Vaca Cintora 2016-07-29 10:10:24 UTC
It looks like you are using an (old?) compiler that doesn't support c++11 by default. You will need to add "-std=c++11 " in the CXXFLAGS parameter in Cmake to enable it.
Comment 4 Aleix Pol 2018-01-16 23:03:37 UTC
kdeconnect-kde builds at the moment.