[GH-ISSUE #13] make macosx-x86-64-opencl errors #3

Closed
opened 2026-10-14 02:49:13 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @bizonix on GitHub (Apr 20, 2012).
Original GitHub issue: https://github.com/openwall/john/issues/13

please try to fix

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -I/usr/local/include/nss -I/usr/local/include/nspr -m64 -I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0 -funroll-loops opencl_cryptsha512_fmt.c
opencl_cryptsha512_fmt.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘get_task_max_work_group_size’
opencl_cryptsha512_fmt.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘get_task_max_size’
opencl_cryptsha512_fmt.c: In function ‘find_best_workgroup’:
opencl_cryptsha512_fmt.c:209: warning: implicit declaration of function ‘get_task_max_size’
opencl_cryptsha512_fmt.c:221: warning: implicit declaration of function ‘get_task_max_work_group_size’
make[1]: *** [opencl_cryptsha512_fmt.o] Error 1
make: *** [macosx-x86-64-opencl] Error 2

Originally created by @bizonix on GitHub (Apr 20, 2012). Original GitHub issue: https://github.com/openwall/john/issues/13 please try to fix gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -I/usr/local/include/nss -I/usr/local/include/nspr -m64 -I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0 -funroll-loops opencl_cryptsha512_fmt.c opencl_cryptsha512_fmt.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘**attribute**’ before ‘get_task_max_work_group_size’ opencl_cryptsha512_fmt.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘**attribute**’ before ‘get_task_max_size’ opencl_cryptsha512_fmt.c: In function ‘find_best_workgroup’: opencl_cryptsha512_fmt.c:209: warning: implicit declaration of function ‘get_task_max_size’ opencl_cryptsha512_fmt.c:221: warning: implicit declaration of function ‘get_task_max_work_group_size’ make[1]: **\* [opencl_cryptsha512_fmt.o] Error 1 make: **\* [macosx-x86-64-opencl] Error 2
Author
Owner

@magnumripper commented on GitHub (Apr 20, 2012):

I think you need to take that to john-dev list with some more details.

<!-- gh-comment-id:5239828 --> @magnumripper commented on GitHub (Apr 20, 2012): I think you need to take that to john-dev list with some more details.
Author
Owner

@magnumripper commented on GitHub (Apr 20, 2012):

Try replacing "uint" with "unsigned int" in lines 66, 67, 77 and 78.

<!-- gh-comment-id:5241163 --> @magnumripper commented on GitHub (Apr 20, 2012): Try replacing "uint" with "unsigned int" in lines 66, 67, 77 and 78.
Author
Owner

@bizonix commented on GitHub (Apr 20, 2012):

thank you, it works!

<!-- gh-comment-id:5241271 --> @bizonix commented on GitHub (Apr 20, 2012): thank you, it works!
Author
Owner

@magnumripper commented on GitHub (Apr 20, 2012):

Great. I cherry picked your commit

<!-- gh-comment-id:5241645 --> @magnumripper commented on GitHub (Apr 20, 2012): Great. I cherry picked your commit
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#3
No description provided.