Menu

#15 Enabling RELEASE_KERNEL breaks build

open
nobody
Multiforcer (5)
5
2012-08-23
2012-08-23
Anonymous
No

When enabling RELEASE_KERNEL in MFNHashTypePlainOpenCL_MD5, NTLM, SMD5 and Salted_OpenCL_MD5_PS it breaks compilation because of undefined reference in getDefineString() to the variable in the matching MFNHashTypePlainOpenCL_MD5(or what ever hash)_source header file.

A simple fix is to change the variable name in the source header and in the CPP that refer to the variable in the header after running CMake

//MFNHashTypePlainOpenCL_MD5
#if RELEASE_KERNEL
// UGLY HACK!
additionalDefines += std::string(MFNHashTypePlainOpenCL_MD5_source, sizeof(MFNHashTypePlainOpenCL_MD5_source));

#endif

//MFNHashTypePlainOpenCL_MD5_source.h
char MFNHashTypePlainOpenCL_MD5[] = {....}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB