Bug 249740 - kdebindings-python does not build with sip 4.11
Summary: kdebindings-python does not build with sip 4.11
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 12:33 UTC by Andrea Scarpino
Modified: 2011-01-05 01:39 UTC (History)
5 users (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 Andrea Scarpino 2010-09-01 12:33:52 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

Linking CXX shared library ../../lib/libsmokebase.so
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/ast.o                                                                                       
[  0%] Built target smokebase                                                                                                                                    
[  0%] Generating sip/dnssd/sipdnssdpart0.cpp, sip/dnssd/sipdnssdpart1.cpp, sip/dnssd/sipdnssdpart2.cpp, sip/dnssd/sipdnssdpart3.cpp, sip/dnssd/sipdnssdpart4.cpp, sip/dnssd/sipdnssdpart5.cpp, sip/dnssd/sipdnssdpart6.cpp, sip/dnssd/sipdnssdpart7.cpp                                                                          
                                                                                                                                                                 
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/default_visitor.o
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/memorypool.o                                                                                
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/visitor.o                                                                                   
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/control.o                                                                                   
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/lexer.o                                                                                     
sip: /build/src/kdebindings-4.5.1/python/pykde4/sip/kdecore/typedefs.sip:737: Mapped type has already been defined in another module                             
make[2]: *** [python/pykde4/sip/akonadi/sipakonadipart0.cpp] Error 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_akonadi.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  1%] sip: /build/src/kdebindings-4.5.1/python/pykde4/sip/kdecore/typedefs.sip:737: Mapped type has already been defined in another module
make[2]: *** [python/pykde4/sip/dnssd/sipdnssdpart0.cpp] Error 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_dnssd.dir/all] Error 2
Building CXX object generator/parser/CMakeFiles/cppparser.dir/parser.o
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/listnode.o                                                                                  
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/tokens.o                                                                                    
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/hash_map:60:0,                                               
                 from /build/src/kdebindings-4.5.1/generator/parser/parser.h:36,
                 from /build/src/kdebindings-4.5.1/generator/parser/parser.cpp:23:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
/build/src/kdebindings-4.5.1/generator/parser/parser.cpp:1034:2: warning: #warning "implement me"
/build/src/kdebindings-4.5.1/generator/parser/parser.cpp:2601:2: warning: #warning "implemente me (AST)"
/build/src/kdebindings-4.5.1/generator/parser/parser.cpp:3487:2: warning: #warning "mark the ast as constant"
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/dumptree.o
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/parsesession.o                                                                              
/build/src/kdebindings-4.5.1/generator/parser/parsesession.cpp: In destructor 'ParseSession::~ParseSession()':                                                   
/build/src/kdebindings-4.5.1/generator/parser/parsesession.cpp:42:10: warning: possible problem detected in invocation of delete operator:
/build/src/kdebindings-4.5.1/generator/parser/parsesession.cpp:42:10: warning: invalid use of incomplete type 'struct rpp::MacroBlock'
/build/src/kdebindings-4.5.1/generator/parser/parsesession.h:43:23: warning: forward declaration of 'struct rpp::MacroBlock'
/build/src/kdebindings-4.5.1/generator/parser/parsesession.cpp:42:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/commentparser.o
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/commentformatter.o                                                                          
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/codegenerator.o                                                                             
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/indexedstring.o                                                                             
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/stringhelpers.o                                                                             
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-stream.o                                                                             
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-macro-expander.o                                                                     
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-scanner.o                                                                            
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-macro.o                                                                              
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-engine.o                                                                             
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-internal.o                                                                           
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-environment.o                                                                        
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-location.o                                                                           
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/preprocessor.o                                                                          
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/chartools.o                                                                             
Linking CXX shared library ../bin/libcppparser.so                                                                                                                
[  3%] Built target cppparser                                                                                                                                    
make: *** [all] Error 2


KDE 4.5.1
sip 4.11
pyqt 4.7.5
qscintilla 2.4.5

Reproducible: Always


Actual Results:  
build fails
Comment 2 Darin McBride 2010-09-06 16:01:14 UTC
That patch breaks here, whereas the original (unpatched) pykde4 works fine.

I'm running python 2.6.5 and sip 4.11.
Comment 3 Gökçen Eraslan 2010-09-06 20:23:18 UTC
(In reply to comment #2)
> That patch breaks here, whereas the original (unpatched) pykde4 works fine.
> 
> I'm running python 2.6.5 and sip 4.11.

Which version of PyQt are you using?
Comment 4 Darin McBride 2010-09-07 05:09:11 UTC
I'm running version 4.7.3.  If your theory is that upgrading to 4.7.5 might make this patch work, I can try that - though for users with the old version of whatever the culprit is, either a patch is needed that can handle both, or the cmake files should be updated to check for the minimum level.
Comment 5 Darin McBride 2010-09-07 06:03:05 UTC
Ok, I've upgraded PyQt to 4.7.5, and this patch now works.  So this seems to be a defect in kdebindings-python: either update the code to depend on the level of PyQt, or simply check for a minimum level of PyQt right up front and abort if the minimum (of 4.7.5) isn't met.
Comment 6 Andrea Scarpino 2010-10-01 14:04:44 UTC
still does not build from trunk.

pyqt 4.7.7
sip 4.11.1

Error:
Linking CXX shared library ../../lib/libsmokebase.so                                                                                                                        
[  0%] Built target smokebase                                                                                                                                               
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/memorypool.o
[  0%] Generating sip/dnssd/sipdnssdpart0.cpp, sip/dnssd/sipdnssdpart1.cpp, sip/dnssd/sipdnssdpart2.cpp, sip/dnssd/sipdnssdpart3.cpp, sip/dnssd/sipdnssdpart4.cpp, sip/dnssd/sipdnssdpart5.cpp, sip/dnssd/sipdnssdpart6.cpp, sip/dnssd/sipdnssdpart7.cpp                                                                                                
                                                                                                                                                                            
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/visitor.o
[  0%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/control.o                                                                                              
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/lexer.o                                                                                                
sip: /build/src/kdebindings-4.5.2/python/pykde4/sip/kdecore/typedefs.sip:737: Mapped type has already been defined in another module                                        
make[2]: *** [python/pykde4/sip/dnssd/sipdnssdpart0.cpp] Error 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_dnssd.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/parser.o
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/hash_map:60:0,                                                          
                 from /build/src/kdebindings-4.5.2/generator/parser/parser.h:36,
                 from /build/src/kdebindings-4.5.2/generator/parser/parser.cpp:23:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
/build/src/kdebindings-4.5.2/generator/parser/parser.cpp:1034:2: warning: #warning "implement me"
/build/src/kdebindings-4.5.2/generator/parser/parser.cpp:2601:2: warning: #warning "implemente me (AST)"
/build/src/kdebindings-4.5.2/generator/parser/parser.cpp:3487:2: warning: #warning "mark the ast as constant"
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/listnode.o
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/tokens.o                                                                                               
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/dumptree.o                                                                                             
sip: /build/src/kdebindings-4.5.2/python/pykde4/sip/kdecore/typedefs.sip:737: Mapped type has already been defined in another module                                        
make[2]: *** [python/pykde4/sip/akonadi/sipakonadipart0.cpp] Error 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_akonadi.dir/all] Error 2
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/parsesession.o
[  1%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/commentparser.o                                                                                        
/build/src/kdebindings-4.5.2/generator/parser/parsesession.cpp: In destructor 'ParseSession::~ParseSession()':                                                              
/build/src/kdebindings-4.5.2/generator/parser/parsesession.cpp:42:10: warning: possible problem detected in invocation of delete operator:
/build/src/kdebindings-4.5.2/generator/parser/parsesession.cpp:42:10: warning: invalid use of incomplete type 'struct rpp::MacroBlock'
/build/src/kdebindings-4.5.2/generator/parser/parsesession.h:43:23: warning: forward declaration of 'struct rpp::MacroBlock'
/build/src/kdebindings-4.5.2/generator/parser/parsesession.cpp:42:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/commentformatter.o
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/codegenerator.o                                                                                        
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/indexedstring.o                                                                                        
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/stringhelpers.o                                                                                        
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-stream.o                                                                                        
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-macro-expander.o                                                                                
[  2%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-scanner.o                                                                                       
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-macro.o                                                                                         
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-engine.o                                                                                        
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-internal.o                                                                                      
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-environment.o                                                                                   
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/pp-location.o                                                                                      
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/preprocessor.o                                                                                     
[  3%] Building CXX object generator/parser/CMakeFiles/cppparser.dir/rpp/chartools.o                                                                                        
Linking CXX shared library ../bin/libcppparser.so                                                                                                                           
[  3%] Built target cppparser                                                                                                                                               
make: *** [all] Error 2
Comment 7 Andrea Scarpino 2010-10-01 14:43:48 UTC
(In reply to comment #1)
> This patch[1] fixes the issue.
> 
> [1]
> https://api.opensuse.org/public/source/openSUSE:Factory/kdebindings4/build-with-new-python-qt4.diff?rev=1826df0c31ec11923092790bdbabe444&
fails here with pyqt 4.7.7, sip 4.11.1

Linking CXX shared library ../../lib/pykde/kdeui.so
[  9%] Built target python_module_PyKDE4_kdeui                                                                                                                              
[  9%] Generating sip/knewstuff/sipknewstuffpart0.cpp, sip/knewstuff/sipknewstuffpart1.cpp, sip/knewstuff/sipknewstuffpart2.cpp, sip/knewstuff/sipknewstuffpart3.cpp, sip/knewstuff/sipknewstuffpart4.cpp, sip/knewstuff/sipknewstuffpart5.cpp, sip/knewstuff/sipknewstuffpart6.cpp, sip/knewstuff/sipknewstuffpart7.cpp                                
                                                                                                                                                                            
Scanning dependencies of target python_module_PyKDE4_kio
[  9%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_kio.dir/sip/kio/sipkiopart0.o                                                                      
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/kio/sipAPIkio.h:11,
                 from /build/src/build/python/pykde4/sip/kio/sipkiopart0.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
Scanning dependencies of target python_module_PyKDE4_khtml
[  9%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart0.o                                                                
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart0.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
In file included from /build/src/kdebindings-4.5.2/python/pykde4/sip/kio/kabstractfilemodule.sip:28:0,
                 from /build/src/build/python/pykde4/sip/kio/sipkiopart0.cpp:7:
/usr/include/kio/connection.h:176:43: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
/usr/include/kio/connection.h:177:55: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
sipkhtmlpart0.cpp: In member function 'bool sipKHTMLPart::sipProtect_isLocalFileTemporary() const':
sipkhtmlpart0.cpp:9976:55: warning: 'bool KParts::ReadOnlyPart::isLocalFileTemporary() const' is deprecated (declared at /usr/include/kparts/part.h:686)
sipkhtmlpart0.cpp: In member function 'void sipKHTMLPart::sipProtect_setLocalFileTemporary(bool)':
sipkhtmlpart0.cpp:9981:51: warning: 'void KParts::ReadOnlyPart::setLocalFileTemporary(bool)' is deprecated (declared at /usr/include/kparts/part.h:691)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLObjectElement_setHspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:20585:34: warning: 'void DOM::HTMLObjectElement::setHspace(const DOM::DOMString&)' is deprecated (declared at /usr/include/dom/html_object.h:427)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLObjectElement_hspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:20613:56: warning: 'DOM::DOMString DOM::HTMLObjectElement::hspace() const' is deprecated (declared at /usr/include/dom/html_object.h:422)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLObjectElement_setVspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:20951:34: warning: 'void DOM::HTMLObjectElement::setVspace(const DOM::DOMString&)' is deprecated (declared at /usr/include/dom/html_object.h:520)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLObjectElement_vspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:20979:56: warning: 'DOM::DOMString DOM::HTMLObjectElement::vspace() const' is deprecated (declared at /usr/include/dom/html_object.h:515)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLAppletElement_setHspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:21784:34: warning: 'void DOM::HTMLAppletElement::setHspace(const DOM::DOMString&)' is deprecated (declared at /usr/include/dom/html_object.h:175)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLAppletElement_hspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:21812:56: warning: 'DOM::DOMString DOM::HTMLAppletElement::hspace() const' is deprecated (declared at /usr/include/dom/html_object.h:170)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLAppletElement_setVspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:21988:34: warning: 'void DOM::HTMLAppletElement::setVspace(const DOM::DOMString&)' is deprecated (declared at /usr/include/dom/html_object.h:228)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLAppletElement_vspace(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:22016:56: warning: 'DOM::DOMString DOM::HTMLAppletElement::vspace() const' is deprecated (declared at /usr/include/dom/html_object.h:223)
/build/src/kdebindings-4.5.2/python/pykde4/sip/kio/kabstractfilemodule.sip: In function 'const sipTypeDef* sipSubClass_KAbstractFileModule(void**)':
/build/src/kdebindings-4.5.2/python/pykde4/sip/kio/kabstractfilemodule.sip:169:49: warning: 'KCrashBookmarkImporter' is deprecated (declared at /usr/include/kbookmarkimporter_crash.h:36)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLBaseFontElement_setSize(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:22944:32: warning: 'void DOM::HTMLBaseFontElement::setSize(const DOM::DOMString&)' is deprecated (declared at /usr/include/dom/html_misc.h:113)
sipkhtmlpart0.cpp: In function 'PyObject* meth_DOM_HTMLBaseFontElement_size(PyObject*, PyObject*)':
sipkhtmlpart0.cpp:22972:54: warning: 'DOM::DOMString DOM::HTMLBaseFontElement::size() const' is deprecated (declared at /usr/include/dom/html_misc.h:108)
/build/src/kdebindings-4.5.2/python/pykde4/sip/kio/kabstractfilemodule.sip:185:42: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
/build/src/kdebindings-4.5.2/python/pykde4/sip/kio/kabstractfilemodule.sip:335:46: warning: 'PasswordDialog' is deprecated (declared at /usr/include/kio/passworddialog.h:38)
/usr/include/kio/tcpslavebase.h: In function 'PyObject* slot_KIO_TCPSlaveBase_SslResult___xor__(PyObject*, PyObject*)':
/usr/include/kio/tcpslavebase.h:63:10: error: 'enum KIO::TCPSlaveBase::SslResultDetail' is protected
/usr/share/sip/QtCore/qglobal.sip:320:95: error: within this context
/usr/include/kio/tcpslavebase.h: In function 'PyObject* slot_KIO_TCPSlaveBase_SslResult___or__(PyObject*, PyObject*)':
/usr/include/kio/tcpslavebase.h:63:10: error: 'enum KIO::TCPSlaveBase::SslResultDetail' is protected
/usr/share/sip/QtCore/qglobal.sip:315:95: error: within this context
sipkiopart0.cpp: In function 'PyObject* meth_KIO_SlaveInterface_connection(PyObject*, PyObject*)':
sipkiopart0.cpp:11970:30: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
sipkiopart0.cpp: In function 'PyObject* meth_KIO_SlaveInterface_setConnection(PyObject*, PyObject*)':
sipkiopart0.cpp:12074:27: warning: 'Connection' is deprecated (declared at /usr/include/kio/connection.h:49)
sipkiopart0.cpp: In function 'PyObject* meth_KIO_Scheduler_scheduleJob(PyObject*, PyObject*)':
sipkiopart0.cpp:16243:43: warning: 'static void KIO::Scheduler::scheduleJob(KIO::SimpleJob*)' is deprecated (declared at /usr/include/kio/scheduler.h:128)
make[2]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_kio.dir/sip/kio/sipkiopart0.o] Error 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_kio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  9%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart1.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart1.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
sipkhtmlpart1.cpp: In function 'PyObject* meth_DOM_HTMLImageElement_setBorder(PyObject*, PyObject*)':
sipkhtmlpart1.cpp:5633:33: warning: 'void DOM::HTMLImageElement::setBorder(long int)' is deprecated (declared at /usr/include/dom/html_image.h:264)
sipkhtmlpart1.cpp: In function 'PyObject* meth_DOM_HTMLImageElement_border(PyObject*, PyObject*)':
sipkhtmlpart1.cpp:5661:37: warning: 'long int DOM::HTMLImageElement::border() const' is deprecated (declared at /usr/include/dom/html_image.h:259)
[  9%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart2.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart2.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
Scanning dependencies of target python_module_PyKDE4_knewstuff
[  9%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart0.o                                                    
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipAPIknewstuff.h:11,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipknewstuffpart0.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
sipkhtmlpart2.cpp: In function 'PyObject* meth_DOM_HTMLInputElement_size(PyObject*, PyObject*)':
sipkhtmlpart2.cpp:7598:54: warning: 'DOM::DOMString DOM::HTMLInputElement::size() const' is deprecated (declared at /usr/include/dom/html_form.h:537)
sipkhtmlpart2.cpp: In function 'PyObject* meth_DOM_HTMLInputElement_setSize(PyObject*, PyObject*)':
sipkhtmlpart2.cpp:7624:32: warning: 'void DOM::HTMLInputElement::setSize(const DOM::DOMString&)' is deprecated (declared at /usr/include/dom/html_form.h:542)
[  9%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart1.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipAPIknewstuff.h:11,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipknewstuffpart1.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
[  9%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart2.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipAPIknewstuff.h:11,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipknewstuffpart2.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
[ 10%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart3.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart3.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
[ 10%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart4.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart4.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
[ 10%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart3.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipAPIknewstuff.h:11,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipknewstuffpart3.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
sipkhtmlpart4.cpp: In function 'PyObject* meth_DOM_Node_toHTML(PyObject*, PyObject*)':
sipkhtmlpart4.cpp:8167:49: warning: 'QString DOM::Node::toHTML()' is deprecated (declared at /usr/include/dom/dom_node.h:931)
sipkhtmlpart4.cpp: In function 'PyObject* meth_DOM_Node_getCursor(PyObject*, PyObject*)':
sipkhtmlpart4.cpp:8222:42: warning: 'void DOM::Node::getCursor(int, int&, int&, int&)' is deprecated (declared at /usr/include/dom/dom_node.h:936)
sipknewstuffpart3.cpp: In function 'PyObject* meth_KNS_Button_setProviderList(PyObject*, PyObject*)':
sipknewstuffpart3.cpp:3266:22: warning: 'Button' is deprecated (declared at /usr/include/knewstuff2/ui/knewstuffbutton.h:40)
sipknewstuffpart3.cpp: In function 'PyObject* meth_KNS_Button_setResourceType(PyObject*, PyObject*)':
sipknewstuffpart3.cpp:3295:22: warning: 'Button' is deprecated (declared at /usr/include/knewstuff2/ui/knewstuffbutton.h:40)
sipknewstuffpart3.cpp: In function 'PyObject* meth_KNS_Button_setButtonText(PyObject*, PyObject*)':
sipknewstuffpart3.cpp:3324:22: warning: 'Button' is deprecated (declared at /usr/include/knewstuff2/ui/knewstuffbutton.h:40)
sipknewstuffpart3.cpp: In function 'void* cast_KNS_Button(void*, const sipTypeDef*)':
sipknewstuffpart3.cpp:3380:101: warning: 'Button' is deprecated (declared at /usr/include/knewstuff2/ui/knewstuffbutton.h:40)
sipknewstuffpart3.cpp: In function 'void release_KNS_Button(void*, int)':
sipknewstuffpart3.cpp:3396:45: warning: 'Button' is deprecated (declared at /usr/include/knewstuff2/ui/knewstuffbutton.h:40)
[ 10%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart4.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipAPIknewstuff.h:11,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipknewstuffpart4.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
[ 10%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart5.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipAPIknewstuff.h:11,
                 from /build/src/build/python/pykde4/sip/knewstuff/sipknewstuffpart5.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
In file included from /build/src/kdebindings-4.5.2/python/pykde4/sip/knewstuff/engine.sip:27:0:
/usr/include/knewstuff2/engine.h:159:5: warning: 'Engine' is deprecated
/usr/include/knewstuff2/engine.h:159:5: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
/usr/include/knewstuff2/engine.h:159:5: warning: 'Engine' is deprecated
[ 10%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart5.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart5.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
sipknewstuffpart5.cpp: In function 'PyObject* meth_KNS_Engine_downloadDialogModal(PyObject*, PyObject*)':
sipknewstuffpart5.cpp:419:22: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp: In function 'PyObject* meth_KNS_Engine_uploadDialogModal(PyObject*, PyObject*)':
sipknewstuffpart5.cpp:473:22: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp: In function 'PyObject* meth_KNS_Engine_downloadDialog(PyObject*, PyObject*)':
sipknewstuffpart5.cpp:530:22: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp:547:22: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp: In function 'PyObject* meth_KNS_Engine_uploadDialog(PyObject*, PyObject*)':
sipknewstuffpart5.cpp:576:22: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp: In function 'PyObject* meth_KNS_Engine_init(PyObject*, PyObject*)':
sipknewstuffpart5.cpp:605:22: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp: In function 'void release_KNS_Engine(void*, int)':
sipknewstuffpart5.cpp:644:41: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp: In function 'void* init_KNS_Engine(sipSimpleWrapper*, PyObject*, PyObject*, PyObject**, PyObject**, PyObject**)':
sipknewstuffpart5.cpp:663:18: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp:671:31: warning: 'Engine' is deprecated (declared at /usr/include/knewstuff2/engine.h:44)
sipknewstuffpart5.cpp: In function 'PyObject* meth_KNS_standardAction(PyObject*, PyObject*)':
sipknewstuffpart5.cpp:778:27: warning: 'KAction* KNS::standardAction(const QString&, const QObject*, const char*, KActionCollection*, const char*)' is deprecated (declared at /usr/include/knewstuff2/ui/knewstuffaction.h:44)
sipknewstuffpart5.cpp:778:57: warning: 'KAction* KNS::standardAction(const QString&, const QObject*, const char*, KActionCollection*, const char*)' is deprecated (declared at /usr/include/knewstuff2/ui/knewstuffaction.h:44)
[ 11%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart6.o
[ 11%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_knewstuff.dir/sip/knewstuff/sipknewstuffpart7.o                                                    
[ 11%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart6.o                                                                
Linking CXX shared library ../../lib/pykde/knewstuff.so                                                                                                                     
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart6.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
/usr/include/dom/dom2_traversal.h:195:26: warning: 'virtual DOM::NodeFilter& DOM::NodeFilter::operator=(const DOM::NodeFilter&)' was hidden
sipkhtmlpart5.cpp:1564:24: warning:   by 'sipDOM_NodeFilter& sipDOM_NodeFilter::operator=(const sipDOM_NodeFilter&)'
[ 11%] Built target python_module_PyKDE4_knewstuff
[ 11%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart7.o
In file included from /usr/include/python2.7/Python.h:8:0,                                                                                                                  
                 from /usr/include/python2.7/sip.h:32,
                 from /build/src/build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 from /build/src/build/python/pykde4/sip/khtml/sipkhtmlpart7.cpp:7:
/usr/include/python2.7/pyconfig.h:1171:0: warning: "_XOPEN_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
Linking CXX shared library ../../lib/pykde/khtml.so
[ 11%] Built target python_module_PyKDE4_khtml                                                                                                                              
make: *** [all] Error 2
Comment 8 Gökçen Eraslan 2010-10-01 14:46:19 UTC
Is it OK to backport this[1] to 4.5 branch Simon? May that break building pykde with older pyqt versions?

[1] http://websvn.kde.org/?view=revision&revision=1170602
Comment 9 Hans-Peter Jansen 2010-10-01 23:07:52 UTC
> May that break building pykde with older pyqt versions?

Didn't mentioned Darin in comment #5 exactly that?

BTW: here's the fix for the error, that you will run into with current PyQt versions: https://bugs.kde.org/show_bug.cgi?id=252366
Comment 10 Simon Edwards 2010-10-05 20:44:16 UTC
@Gökcen

We can not change the requirements (i.e. SIP and PyQt version) for KDE releases which are already out. SIP has a #if / #endif style preprocessor system in it, so it is possible to backport the fix and check the SIP version etc in the affected .sip files.

A bit later in the current KDE dev cycle I'll update and fix trunk. The required SIP and PyQt versions will most likely be pushed up to match the latest versions from Riverbank.
Comment 11 Andrea Scarpino 2011-01-05 01:39:22 UTC
4.5.5 has been tagged without this commit...this is fixed in trunk anyway.