mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2091] get_power_of_two doesnt exist on MSVC #1400
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1400
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crioux on GitHub (Mar 16, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2091
The default implementation of "get_power_of_two" doesn't exist in MSVC and things fail to compile. Also, the #define that is in common-opencl.h would suffice if it were moved to common.h so it could be used everywhere, except for the two cases where it is used strangely in src/opencl_rawsha512_ng_fmt_plug.c and src/opencl_rawsha256_fmt_plug.c:
can be changed to
and
can be replaced with
@ghost commented on GitHub (Mar 16, 2016):
My fault, I'll fix the formats.
@magnumripper commented on GitHub (Mar 17, 2016):
We don't really support building on MSVC as far as I know. I think @jfoug use to build "some" of Jumbo in MSVC for debugging.
@jfoug commented on GitHub (Mar 17, 2016):
I do not do opencl building/debugging in VC (thus my lack of doing too much development of those formats). So if someone else is doing VC builds of opencl, then they may be wanting certain things which fail compile. BUT since this is somewhat of a non-supported build, I think it is up to whoever is wanting this to find proper fixes and submit patches to get things working.