Bug 382696 - Mingw32 compile error on src/kssl
Summary: Mingw32 compile error on src/kssl
Status: RESOLVED DUPLICATE of bug 370223
Alias: None
Product: frameworks-kdelibs4support
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.36.0
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks: 380136
  Show dependency treegraph
 
Reported: 2017-07-25 08:49 UTC by Ralf Habacker
Modified: 2017-12-20 09:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2017-07-25 08:49:30 UTC
In file included from /home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertchain.h:31:0,
                 from /home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertchain.cpp:21:
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:105:29: error: expected ';' at end of member declaration
     static KSSLCertificate *fromX509(X509 *x5);
                             ^~~~~~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:105:43: error: expected ')' before '*' token
     static KSSLCertificate *fromX509(X509 *x5);
                                           ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:387:18: error: 'X509' has not been declared
     void setCert(X509 *c);
                  ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:389:5: error: 'X509' does not name a type
     X509 *getCert();
     ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertchain.cpp: In member function 'void KSSLCertChain::setChain(const QList<KSSLCertificate*>&)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertchain.cpp:144:62: warning: unused parameter 'chain' [-Wunused-parameter]
 void KSSLCertChain::setChain(const QList<KSSLCertificate *> &chain)
                                                              ^~~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertchain.cpp: In member function 'void KSSLCertChain::setChain(void*)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertchain.cpp:172:36: warning: unused parameter 'stack_of_x509' [-Wunused-parameter]
 void KSSLCertChain::setChain(void *stack_of_x509)
                                    ^~~~~~~~~~~~~
Comment 1 Ralf Habacker 2017-07-25 08:51:07 UTC
There are additional compile errors in src/kssl

In file included from /home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:22:0:
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:105:29: error: expected ';' at end of member declaration
     static KSSLCertificate *fromX509(X509 *x5);
                             ^~~~~~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:105:43: error: expected ')' before '*' token
     static KSSLCertificate *fromX509(X509 *x5);
                                           ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:387:18: error: 'X509' has not been declared
     void setCert(X509 *c);
                  ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.h:389:5: error: 'X509' does not name a type
     X509 *getCert();
     ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In copy constructor 'KSSLCertificate::KSSLCertificate(const KSSLCertificate&)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:100:57: warning: unused parameter 'x' [-Wunused-parameter]
 KSSLCertificate::KSSLCertificate(const KSSLCertificate &x)
                                                         ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: At global scope:
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:128:44: error: 'X509' was not declared in this scope
 KSSLCertificate *KSSLCertificate::fromX509(X509 *x5)
                                            ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:128:44: note: suggested alternative: 'fromX509'
 KSSLCertificate *KSSLCertificate::fromX509(X509 *x5)
                                            ^~~~
                                            fromX509
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:128:50: error: 'x5' was not declared in this scope
 KSSLCertificate *KSSLCertificate::fromX509(X509 *x5)
                                                  ^~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In static member function 'static KSSLCertificate* KSSLCertificate::fromString(const QByteArray&)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:140:64: warning: unused parameter 'cert' [-Wunused-parameter]
 KSSLCertificate *KSSLCertificate::fromString(const QByteArray &cert)
                                                                ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In member function 'QString KSSLCertificate::getPublicKeyText() const':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:332:11: warning: unused variable 'x' [-Wunused-variable]
     char *x = nullptr;
           ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In member function 'void KSSLCertificate::setChain(void*)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:444:38: warning: unused parameter 'c' [-Wunused-parameter]
 void KSSLCertificate::setChain(void *c)
                                      ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: At global scope:
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:453:31: error: variable or field 'setCert' declared void
 void KSSLCertificate::setCert(X509 *c)
                               ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:453:31: error: 'X509' was not declared in this scope
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:453:37: error: 'c' was not declared in this scope
 void KSSLCertificate::setCert(X509 *c)
                                     ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:579:1: error: 'X509' does not name a type
 X509 *KSSLCertificate::getCert()
 ^~~~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In member function 'int KSSLCertificate::purposeToOpenSSL(KSSLCertificate::KSSLPurpose) const':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:602:68: warning: unused parameter 'p' [-Wunused-parameter]
 int KSSLCertificate::purposeToOpenSSL(KSSLCertificate::KSSLPurpose p) const
                                                                    ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In member function 'KSSLCertificate::KSSLValidation KSSLCertificate::processError(int)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:795:67: warning: unused parameter 'ec' [-Wunused-parameter]
 KSSLCertificate::KSSLValidation KSSLCertificate::processError(int ec)
                                                                   ^~
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In function 'int operator==(KSSLCertificate&, KSSLCertificate&)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:1018:33: warning: unused parameter 'x' [-Wunused-parameter]
 int operator==(KSSLCertificate &x, KSSLCertificate &y)
                                 ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:1018:53: warning: unused parameter 'y' [-Wunused-parameter]
 int operator==(KSSLCertificate &x, KSSLCertificate &y)
                                                     ^
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp: In member function 'bool KSSLCertificate::setCert(const QString&)':
/home/abuild/rpmbuild/BUILD/kdelibs4support-5.36.0/src/kssl/ksslcertificate.cpp:1261:46: warning: unused parameter 'cert' [-Wunused-parameter]
 bool KSSLCertificate::setCert(const QString &cert)
                                              ^~~~
src/CMakeFiles/KF5KDELibs4Support.dir/build.make:3235: recipe for target 'src/CMakeFiles/KF5KDELibs4Support.dir/kssl/ksslcertificate.cpp.obj' failed
Comment 2 Ralf Habacker 2017-07-25 08:59:28 UTC
#if KSSL_HAVE_SSL
typedef struct x509_st X509;
#else
#if !defined(QT_NO_OPENSSL)
!!! #include <QtNetwork/QSslCertificate>
#else
class X509;
#endif
#endif

This seems to be the case marked with !!!
Comment 3 Ralf Habacker 2017-12-20 09:30:53 UTC

*** This bug has been marked as a duplicate of bug 370223 ***