foofilers / pkcs11-gui

A smartcard manager (PKCS11)
Apache License 2.0
10 stars 3 forks source link

Error cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\smartcard.cpp) #1

Open namdt40 opened 4 years ago

namdt40 commented 4 years ago

Hi thanks for your project. You can recomment that what do you need enviroment to build your project on windows. I build on windows 10. Qt 5.15.0 and openssl 1.1.1 with config debug x86 on Vs 2019 and i get error: **1>------ Build started: Project: pkcs11-gui, Configuration: Debug Win32 ------ 1>Moc'ing inc\askpindialog.h... 1>Moc'ing inc\certificate.h... 1>Moc'ing inc\changepindialog.h... 1>Moc'ing inc\importp12dialog.h... 1>Moc'ing inc\key.h... 1>Moc'ing inc\keypairgeneratordialog.h... 1>Moc'ing inc\licensedialog.h... 1>Moc'ing inc\mainwindow.h... 1>Moc'ing inc\p11core.h... 1>Moc'ing inc\settingsdialog.h... 1>Moc'ing inc\smartcard.h... 1>Moc'ing inc\smartcardreader.h... 1>askpindialog.cpp 1>certificate.cpp 1>changepindialog.cpp 1>importp12dialog.cpp 1>key.cpp 1>keypairgeneratordialog.cpp 1>licensedialog.cpp 1>main.cpp 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\key.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\key.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\certificate.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\certificate.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\importp12dialog.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\importp12dialog.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,bool>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\key.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\key.cpp(47): message : see reference to class template instantiation 'neither::Either<QString,bool>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\main.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\main.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,QString>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\key.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\key.cpp(64): message : see reference to class template instantiation 'neither::Either<QString,QString>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\key.cpp(88,46): error C2027: use of undefined type 'bio_st' 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,bool>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\certificate.cpp) 1>C:\OpenSSL-Win32\include\openssl\ossl_typ.h(79): message : see declaration of 'bio_st' 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\certificate.cpp(46): message : see reference to class template instantiation 'neither::Either<QString,bool>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\key.cpp(89,33): error C2027: use of undefined type 'bio_st' 1>C:\OpenSSL-Win32\include\openssl\ossl_typ.h(79): message : see declaration of 'bio_st' 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\key.cpp(89,48): error C2660: 'memset': function does not take 2 arguments 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(63,15): message : see declaration of 'memset' (compiling source file src\key.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\key.cpp(90,40): error C2027: use of undefined type 'bio_st' 1>C:\OpenSSL-Win32\include\openssl\ossl_typ.h(79): message : see declaration of 'bio_st' 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\key.cpp(90,51): error C2660: 'BIO_read': function does not take 2 arguments 1>C:\OpenSSL-Win32\include\openssl\bio.h(559,5): message : see declaration of 'BIO_read' (compiling source file src\key.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,QString>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\certificate.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\certificate.cpp(55): message : see reference to class template instantiation 'neither::Either<QString,QString>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\certificate.cpp(66,46): error C2027: use of undefined type 'bio_st' 1>C:\OpenSSL-Win32\include\openssl\ossl_typ.h(79): message : see declaration of 'bio_st' 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\certificate.cpp(67,33): error C2027: use of undefined type 'bio_st' 1>C:\OpenSSL-Win32\include\openssl\ossl_typ.h(79): message : see declaration of 'bio_st' 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\certificate.cpp(67,48): error C2660: 'memset': function does not take 2 arguments 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(63,15): message : see declaration of 'memset' (compiling source file src\certificate.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\certificate.cpp(68,40): error C2027: use of undefined type 'bio_st' 1>C:\OpenSSL-Win32\include\openssl\ossl_typ.h(79): message : see declaration of 'bio_st' 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\certificate.cpp(68,51): error C2660: 'BIO_read': function does not take 2 arguments 1>C:\OpenSSL-Win32\include\openssl\bio.h(559,5): message : see declaration of 'BIO_read' (compiling source file src\certificate.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\changepindialog.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\changepindialog.cpp) 1>mainwindow.cpp 1>p11core.cpp 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,bool>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\changepindialog.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\changepindialog.cpp(41): message : see reference to class template instantiation 'neither::Either<QString,bool>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L2,int>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier 1> with 1> [ 1> L2=QString 1> ] (compiling source file src\changepindialog.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\changepindialog.cpp(44): message : see reference to class template instantiation 'neither::Either<L2,int>' being compiled 1> with 1> [ 1> L2=QString 1> ] 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<int,R2>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier 1> with 1> [ 1> R2=int 1> ] (compiling source file src\changepindialog.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\changepindialog.cpp(47): message : see reference to class template instantiation 'neither::Either<int,R2>' being compiled 1> with 1> [ 1> R2=int 1> ] 1>p11errors.cpp 1>settingsdialog.cpp 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\p11core.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\p11core.cpp) 1>smartcard.cpp 1>smartcardreader.cpp 1>util.cpp 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,bool>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\importp12dialog.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\importp12dialog.cpp(62): message : see reference to class template instantiation 'neither::Either<QString,bool>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,bool>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\p11core.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\p11core.cpp(26): message : see reference to class template instantiation 'neither::Either<QString,bool>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,QList<SmartCardReader >>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\p11core.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\p11core.cpp(43): message : see reference to class template instantiation 'neither::Either<QString,QList<SmartCardReader >>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\mainwindow.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\mainwindow.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\smartcard.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\smartcard.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<L,R>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\smartcardreader.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(241): message : see reference to class template instantiation 'neither::Either<L,R>' being compiled (compiling source file src\smartcardreader.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,bool>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\smartcardreader.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\smartcardreader.cpp(123): message : see reference to class template instantiation 'neither::Either<QString,bool>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\mainwindow.cpp(30,10): fatal error C1083: Cannot open include file: 'raneservice.h': No such file or directory 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,QList<Key >>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\smartcard.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\smartcard.cpp(48): message : see reference to class template instantiation 'neither::Either<QString,QList<Key >>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,QList<Certificate >>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\smartcard.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\smartcard.cpp(88): message : see reference to class template instantiation 'neither::Either<QString,QList<Certificate >>' being compiled 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\inc\neither\either.hpp(149,1): error C2560: 'common_type<L2,R2>::type neither::Either<QString,bool>::join(void) &&': cannot overload a member function with ref-qualifier with a member function without ref-qualifier (compiling source file src\smartcard.cpp) 1>E:\1.Training\smartcard\pkcs11-gui\pkcs11-gui\src\smartcard.cpp(105): message : see reference to class template instantiation 'neither::Either<QString,bool>' being compiled 1>Done building project "pkcs11-gui.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ** please help me.

n3wtron commented 4 years ago

Hi, I've just pushed an adaptation for openssl 1.1.1 on the develop branch. Can u try again? I'm sorry but I don't have any windows where I can try

n3wtron commented 4 years ago

Another thing that u can try is to use qtCreator instead of visual studio

namdt40 commented 4 years ago

thanks you for your reply. I was build success with qtCreator. But i have in libp11 still need load pkcs11 module of vendor. how can i do not need module pkcs11 of vendor to access etoken. i'm a newpie, you can share some document about it for me. Thansk you very much.

n3wtron commented 4 years ago

I think that the vendor "driver library" is mandatory to access to the smartcard/USB Stick.

n3wtron commented 4 years ago

https://gitter.im/foofilers/community if u want to talk more interactively