Package: coolkey
Version: 1.1.0-13
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert
This package fails to build with GCC 6. GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.
Note that only the first error is reported; there might be more. You
can find a snapshot of GCC 6 in experimental. To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> mkdir .libs
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2
> -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I../../src/libckyapplet -pthread
> -I/usr/include/PCSC -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fstack-protector-strong -Wformat -Werror=format-security -c coolkey.cpp
> -fPIC -DPIC -o .libs/libcoolkeypk11_la-coolkey.o
> coolkey.cpp:37:0: warning: "NULL" redefined
> #define NULL 0
>
>
> In file included from /usr/include/string.h:32:0,
> from slot.h:26,
> from coolkey.cpp:33:
> /usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:403:0: note: this is the
> location of the previous definition
> #define NULL __null
>
>
> coolkey.cpp:41:13: error: 'Log* log' redeclared as different kind of symbol
> static Log *log = NULL;
> ^~~
>
> In file included from /usr/include/features.h:361:0,
> from /usr/include/assert.h:35,
> from coolkey.cpp:22:
> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:109:1: note: previous
> declaration 'double log(double)'
> __MATHCALL_VEC (log,, (_Mdouble_ __x));
> ^
>
> coolkey.cpp: In function 'void dumpTemplates(CK_ATTRIBUTE_PTR, CK_ULONG)':
> coolkey.cpp:91:11: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(
> ^~~
>
> coolkey.cpp:95:11: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("template [%02lu] type: %04lx, pValue: %08lx, ulValueLen:
> %08lx\n",
> ^~~
>
> coolkey.cpp: In function 'CK_RV C_InitToken(CK_SLOT_ID, CK_CHAR*, CK_ULONG,
> CK_UTF8CHAR_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:130:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_InitToken,(CK_SLOT_ID, CK_CHAR_PTR, CK_ULONG,
> CK_UTF8CHAR_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_InitPIN(CK_SESSION_HANDLE, CK_CHAR*,
> CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:131:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_InitPIN, (CK_SESSION_HANDLE, CK_CHAR_PTR, CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SetPIN(CK_SESSION_HANDLE, CK_CHAR*,
> CK_ULONG, CK_CHAR*, CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:132:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SetPIN, (CK_SESSION_HANDLE, CK_CHAR_PTR, CK_ULONG,
> CK_CHAR_PTR, CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_GetOperationState(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:133:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_GetOperationState, (CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SetOperationState(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_OBJECT_HANDLE, CK_OBJECT_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:134:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SetOperationState, (CK_SESSION_HANDLE, CK_BYTE_PTR, CK_ULONG,
> CK_OBJECT_HANDLE, CK_OBJECT_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_CreateObject(CK_SESSION_HANDLE,
> CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:135:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_CreateObject, (CK_SESSION_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG,
> CK_OBJECT_HANDLE_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_CopyObject(CK_SESSION_HANDLE,
> CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:136:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_CopyObject,
> (CK_SESSION_HANDLE,CK_OBJECT_HANDLE,CK_ATTRIBUTE_PTR,CK_ULONG,CK_OBJECT_HANDLE_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DestroyObject(CK_SESSION_HANDLE,
> CK_OBJECT_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:137:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DestroyObject, (CK_SESSION_HANDLE, CK_OBJECT_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_GetObjectSize(CK_SESSION_HANDLE,
> CK_OBJECT_HANDLE, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:138:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_GetObjectSize,
> (CK_SESSION_HANDLE,CK_OBJECT_HANDLE,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SetAttributeValue(CK_SESSION_HANDLE,
> CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:139:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SetAttributeValue,
> (CK_SESSION_HANDLE,CK_OBJECT_HANDLE,CK_ATTRIBUTE_PTR,CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_EncryptInit(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:140:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_EncryptInit,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_OBJECT_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_Encrypt(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:141:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_Encrypt, (CK_SESSION_HANDLE, CK_BYTE_PTR, CK_ULONG,
> CK_BYTE_PTR, CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_EncryptUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:142:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_EncryptUpdate,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_EncryptFinal(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:143:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_EncryptFinal, (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DecryptUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:144:1: note: in expansion of macro 'NOTSUPPORTED'
>
> NOTSUPPORTED(C_DecryptUpdate,(CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DecryptFinal(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:145:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DecryptFinal, (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DigestInit(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:146:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DigestInit, (CK_SESSION_HANDLE,CK_MECHANISM_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_Digest(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:147:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_Digest,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DigestUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:148:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DigestUpdate, (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DigestKey(CK_SESSION_HANDLE,
> CK_OBJECT_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:149:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DigestKey, (CK_SESSION_HANDLE,CK_OBJECT_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DigestFinal(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:150:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DigestFinal, (CK_SESSION_HANDLE, CK_BYTE_PTR, CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SignUpdate(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:151:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SignUpdate, (CK_SESSION_HANDLE, CK_BYTE_PTR, CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SignFinal(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:152:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SignFinal, (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SignRecoverInit(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:153:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SignRecoverInit,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_OBJECT_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SignRecover(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:154:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SignRecover,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_VerifyInit(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:155:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_VerifyInit,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_OBJECT_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_Verify(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG, CK_BYTE_PTR, CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:156:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_Verify,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_VerifyUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:157:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_VerifyUpdate, (CK_SESSION_HANDLE, CK_BYTE_PTR, CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_VerifyFinal(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:158:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_VerifyFinal, (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_VerifyRecoverInit(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:159:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_VerifyRecoverInit,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_OBJECT_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_VerifyRecover(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:160:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_VerifyRecover,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DigestEncryptUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:161:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DigestEncryptUpdate,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DecryptDigestUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:162:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DecryptDigestUpdate,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_SignEncryptUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:163:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_SignEncryptUpdate,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DecryptVerifyUpdate(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:164:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DecryptVerifyUpdate,
> (CK_SESSION_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_GenerateKey(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:165:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_GenerateKey,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_ATTRIBUTE_PTR,CK_ULONG,CK_OBJECT_HANDLE_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_GenerateKeyPair(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_ATTRIBUTE_PTR, CK_ULONG, CK_ATTRIBUTE_PTR, CK_ULONG,
> CK_OBJECT_HANDLE_PTR, CK_OBJECT_HANDLE_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:166:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_GenerateKeyPair,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_ATTRIBUTE_PTR,CK_ULONG,CK_ATTRIBUTE_PTR,CK_ULONG,CK_OBJECT_HANDLE_PTR,CK_OBJECT_HANDLE_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_WrapKey(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE, CK_OBJECT_HANDLE, CK_BYTE_PTR,
> CK_ULONG_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:167:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_WrapKey,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_OBJECT_HANDLE,CK_OBJECT_HANDLE,CK_BYTE_PTR,CK_ULONG_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_UnwrapKey(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE, CK_BYTE_PTR, CK_ULONG, CK_ATTRIBUTE_PTR,
> CK_ULONG, CK_OBJECT_HANDLE_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:168:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_UnwrapKey,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_OBJECT_HANDLE,CK_BYTE_PTR,CK_ULONG,CK_ATTRIBUTE_PTR,CK_ULONG,CK_OBJECT_HANDLE_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_DeriveKey(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG,
> CK_OBJECT_HANDLE_PTR)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:169:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_DeriveKey,
> (CK_SESSION_HANDLE,CK_MECHANISM_PTR,CK_OBJECT_HANDLE,CK_ATTRIBUTE_PTR,CK_ULONG,CK_OBJECT_HANDLE_PTR))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_GetFunctionStatus(CK_SESSION_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:170:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_GetFunctionStatus, (CK_SESSION_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_CancelFunction(CK_SESSION_HANDLE)':
> coolkey.cpp:106:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called (notSupported)\n"); \
> ^
>
> coolkey.cpp:171:1: note: in expansion of macro 'NOTSUPPORTED'
> NOTSUPPORTED(C_CancelFunction, (CK_SESSION_HANDLE))
> ^~~~~~~~~~~~
>
> coolkey.cpp: In function 'CK_RV C_GetSlotList(CK_BBOOL, CK_SLOT_ID_PTR,
> CK_ULONG_PTR)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:175:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_GetSlotList, getSlotList,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:175:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_GetSlotList, getSlotList,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_GetSessionInfo(CK_SESSION_HANDLE,
> CK_SESSION_INFO_PTR)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:178:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_GetSessionInfo, getSessionInfo,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:178:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_GetSessionInfo, getSessionInfo,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_Logout(CK_SESSION_HANDLE)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:181:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_Logout, logout, (CK_SESSION_HANDLE hSession), (hSession))
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:181:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_Logout, logout, (CK_SESSION_HANDLE hSession), (hSession))
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_Decrypt(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:182:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_Decrypt, decrypt,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:182:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_Decrypt, decrypt,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_DecryptInit(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:186:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_DecryptInit, decryptInit,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:186:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_DecryptInit, decryptInit,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_SignInit(CK_SESSION_HANDLE,
> CK_MECHANISM_PTR, CK_OBJECT_HANDLE)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:189:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_SignInit, signInit,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:189:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_SignInit, signInit,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_Sign(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:193:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_Sign, sign,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:193:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_Sign, sign,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_SeedRandom(CK_SESSION_HANDLE, CK_BYTE_PTR,
> CK_ULONG)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:197:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_SeedRandom, seedRandom,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:197:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_SeedRandom, seedRandom,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_GenerateRandom(CK_SESSION_HANDLE,
> CK_BYTE_PTR, CK_ULONG)':
> coolkey.cpp:117:7: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(#name " called\n"); \
> ^
>
> coolkey.cpp:200:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_GenerateRandom, generateRandom,
> ^~~~~~~~~
>
> coolkey.cpp:121:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log); \
> ^
>
> coolkey.cpp:200:1: note: in expansion of macro 'SUPPORTED'
> SUPPORTED(C_GenerateRandom, generateRandom,
> ^~~~~~~~~
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_Initialize(CK_VOID_PTR)':
> coolkey.cpp:244:23: error: assignment of function 'double log(double)'
> log = new SysLog();
> ^
>
> coolkey.cpp:244:23: error: cannot convert 'SysLog*' to 'double(double) throw
> ()' in assignment
> coolkey.cpp:246:35: error: assignment of function 'double log(double)'
> log = new FileLog(logFileName);
> ^
>
> coolkey.cpp:246:35: error: cannot convert 'FileLog*' to 'double(double) throw
> ()' in assignment
> coolkey.cpp:249:21: error: assignment of function 'double log(double)'
> log = new DummyLog();
> ^
>
> coolkey.cpp:249:21: error: cannot convert 'DummyLog*' to 'double(double)
> throw ()' in assignment
> coolkey.cpp:251:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("Initialize called, hello %d\n", 5);
> ^~~
>
> coolkey.cpp:252:26: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> CKY_SetName("coolkey");
> ^
>
> coolkey.cpp:253:32: error: no matching function for call to
> 'SlotList::SlotList(double (&)(double) throw ())'
> slotList = new SlotList(log);
> ^
>
> In file included from coolkey.cpp:33:0:
> slot.h:544:5: note: candidate: SlotList::SlotList(Log*)
> SlotList(Log *log);
> ^~~~~~~~
>
> slot.h:544:5: note: no known conversion for argument 1 from 'double(double)
> throw ()' to 'Log*'
> slot.h:516:7: note: candidate: constexpr SlotList::SlotList(const SlotList&)
> class SlotList {
> ^~~~~~~~
>
> slot.h:516:7: note: no known conversion for argument 1 from 'double(double)
> throw ()' to 'const SlotList&'
> coolkey.cpp:258:22: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_Finalize(CK_VOID_PTR)':
> coolkey.cpp:271:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("Finalizing...\n");
> ^~~
>
> coolkey.cpp:289:12: error: cannot delete a function. Only pointer-to-objects
> are valid arguments to 'delete'
> delete log;
> ^~~
>
> coolkey.cpp: In function 'CK_RV C_GetInfo(CK_INFO_PTR)':
> coolkey.cpp:304:10: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetInfo called\n");
> ^~~
>
> coolkey.cpp: In function 'CK_RV C_GetSlotInfo(CK_SLOT_ID, CK_SLOT_INFO_PTR)':
> coolkey.cpp:319:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("Called C_GetSlotInfo\n");
> ^~~
>
> coolkey.cpp:324:22: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> excep.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_GetTokenInfo(CK_SLOT_ID,
> CK_TOKEN_INFO_PTR)':
> coolkey.cpp:336:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetTokenInfo called\n");
> ^~~
>
> coolkey.cpp:341:22: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> excep.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_GetMechanismList(CK_SLOT_ID,
> CK_MECHANISM_TYPE_PTR, CK_ULONG_PTR)':
> coolkey.cpp:356:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetMechanismList called\n");
> ^~~
>
> coolkey.cpp:379:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetMechanismList returning %d\n", rv);
> ^~~
>
> coolkey.cpp:383:22: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> excep.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_GetMechanismInfo(CK_SLOT_ID,
> CK_MECHANISM_TYPE, CK_MECHANISM_INFO_PTR)':
> coolkey.cpp:397:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetMechanismInfo called\n");
> ^~~
>
> coolkey.cpp:409:22: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetMechanismInfo got info about %d\n", type);
> ^~~
>
> coolkey.cpp:413:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetMechanismInfo failed to find info about %d\n", type);
> ^~~
>
> coolkey.cpp:416:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_OpenSession(CK_SLOT_ID, CK_FLAGS,
> CK_VOID_PTR, CK_NOTIFY, CK_SESSION_HANDLE_PTR)':
> coolkey.cpp:429:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_OpenSession called\n");
> ^~~
>
> coolkey.cpp:447:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_CloseSession(CK_SESSION_HANDLE)':
> coolkey.cpp:459:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_CloseSession(0x%x) called\n", hSession);
> ^~~
>
> coolkey.cpp:465:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_CloseAllSessions(CK_SLOT_ID)':
> coolkey.cpp:477:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_CloseAllSessions(0x%x) called\n", slotID);
> ^~~
>
> coolkey.cpp:484:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_FindObjectsInit(CK_SESSION_HANDLE,
> CK_ATTRIBUTE_PTR, CK_ULONG)':
> coolkey.cpp:498:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_FindObjectsInit called, %lu templates\n", ulCount);
> ^~~
>
> coolkey.cpp:507:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_FindObjects(CK_SESSION_HANDLE,
> CK_OBJECT_HANDLE_PTR, CK_ULONG, CK_ULONG_PTR)':
> coolkey.cpp:521:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_FindObjects called, max objects = %lu\n",
> ulMaxObjectCount );
> ^~~
>
> coolkey.cpp:528:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("returned %lu objects:", count );
> ^~~
>
> coolkey.cpp:531:11: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log(" 0x%08lx", phObject[i]);
> ^~~
>
> coolkey.cpp:533:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("\n" );
> ^~~
>
> coolkey.cpp:536:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_Login(CK_SESSION_HANDLE, CK_USER_TYPE,
> CK_UTF8CHAR_PTR, CK_ULONG)':
> coolkey.cpp:559:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_Login called\n");
> ^~~
>
> coolkey.cpp:569:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_GetAttributeValue(CK_SESSION_HANDLE,
> CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG)':
> coolkey.cpp:583:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_GetAttributeValue called, %lu templates for object
> 0x%08lx\n", ulCount, hObject);
> ^~~
>
> coolkey.cpp:593:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> coolkey.cpp: In function 'CK_RV C_WaitForSlotEvent(CK_FLAGS, CK_SLOT_ID_PTR,
> CK_VOID_PTR)':
> coolkey.cpp:624:14: error: request for member 'log' in 'log', which is of
> non-class type 'double(double) throw ()'
> log->log("C_WaitForSlotEvent called\n");
> ^~~
>
> coolkey.cpp:629:18: error: no matching function for call to
> 'PKCS11Exception::log(double (&)(double) throw ())'
> e.log(log);
> ^
>
> In file included from coolkey.cpp:28:0:
> PKCS11Exception.h:60:10: note: candidate: void PKCS11Exception::log(Log*)
> const
> void log(Log *l) const;
> ^~~
>
> PKCS11Exception.h:60:10: note: no known conversion for argument 1 from
> 'double(double) throw ()' to 'Log*'
> Makefile:378: recipe for target 'libcoolkeypk11_la-coolkey.lo' failed
> make[5]: *** [libcoolkeypk11_la-coolkey.lo] Error 1
> make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/coolkey'
> Makefile:446: recipe for target 'all-recursive' failed
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise