[GH-ISSUE #418] bleeding-jumbo build fails on macosx #146

Closed
opened 2026-10-14 02:54:15 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ogoid on GitHub (Nov 4, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/418

Originally assigned to: @magnumripper on GitHub.

I'm on a MacbookAir 6,1 (2013 model) with OSX 10.9.

make macosx-x86-64: https://gist.github.com/ogoid/d44708ffb1a701aa3126

The same thing happens with other x86-64 targets.

From what I see on unstable-jumbo, the third and fourth symbols of MD5_std.o should be _MD5_body and _MD5_body.eh, but on bleeding-jumbo they are missing:

src $ nm MD5_std.o
0000000000004eb8 s EH_frame0
0000000000004da9 s L_.str
0000000000004dad s L_.str1
0000000000004db4 s L_.str2
0000000000004db5 s L_.str3
0000000000005830 C _MD5_std_all
00000000000004c0 T _MD5_std_crypt
0000000000004f60 S _MD5_std_crypt.eh
0000000000004be0 T _MD5_std_get_binary
0000000000004fc0 S _MD5_std_get_binary.eh
0000000000004fec b _MD5_std_get_binary.out
0000000000004b20 T _MD5_std_get_salt
0000000000004fa0 S _MD5_std_get_salt.eh
0000000000004fe0 b _MD5_std_get_salt.out
0000000000000000 T _MD5_std_init
0000000000004ed0 S _MD5_std_init.eh
00000000000002a0 T _MD5_std_set_key
0000000000004f20 S _MD5_std_set_key.eh
00000000000001d0 T _MD5_std_set_salt
0000000000004ef8 S _MD5_std_set_salt.eh
0000000000004dc0 s _PADDING
                 U ___bzero
                 U ___memcpy_chk
                 U _atoi64
                 U _memcpy
                 U _strncmp
src $
src $ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
src $
Originally created by @ogoid on GitHub (Nov 4, 2013). Original GitHub issue: https://github.com/openwall/john/issues/418 Originally assigned to: @magnumripper on GitHub. I'm on a MacbookAir 6,1 (2013 model) with OSX 10.9. `make macosx-x86-64`: https://gist.github.com/ogoid/d44708ffb1a701aa3126 The same thing happens with other x86-64 targets. From what I see on unstable-jumbo, the third and fourth symbols of MD5_std.o should be `_MD5_body` and `_MD5_body.eh`, but on bleeding-jumbo they are missing: ``` src $ nm MD5_std.o 0000000000004eb8 s EH_frame0 0000000000004da9 s L_.str 0000000000004dad s L_.str1 0000000000004db4 s L_.str2 0000000000004db5 s L_.str3 0000000000005830 C _MD5_std_all 00000000000004c0 T _MD5_std_crypt 0000000000004f60 S _MD5_std_crypt.eh 0000000000004be0 T _MD5_std_get_binary 0000000000004fc0 S _MD5_std_get_binary.eh 0000000000004fec b _MD5_std_get_binary.out 0000000000004b20 T _MD5_std_get_salt 0000000000004fa0 S _MD5_std_get_salt.eh 0000000000004fe0 b _MD5_std_get_salt.out 0000000000000000 T _MD5_std_init 0000000000004ed0 S _MD5_std_init.eh 00000000000002a0 T _MD5_std_set_key 0000000000004f20 S _MD5_std_set_key.eh 00000000000001d0 T _MD5_std_set_salt 0000000000004ef8 S _MD5_std_set_salt.eh 0000000000004dc0 s _PADDING U ___bzero U ___memcpy_chk U _atoi64 U _memcpy U _strncmp src $ src $ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix src $ ```
Author
Owner

@magnumripper commented on GitHub (Nov 4, 2013):

Oh... I can even reproduce it! It's just that I don't use to build with native OSX gcc because it produces slower code.

Using (homebrew) gcc it works fine. I recommend you read "Optimal build on OS X" in end of doc/INSTALL (only in bleeding branch) - using the macosx-x86-64-native target gives you a substantially faster program. And apparently it works around this problem too.

But I will look into this problem, thanks for reporting!

<!-- gh-comment-id:27727005 --> @magnumripper commented on GitHub (Nov 4, 2013): Oh... I can even reproduce it! It's just that I don't use to build with native OSX gcc because it produces slower code. Using (homebrew) gcc it works fine. I recommend you read "Optimal build on OS X" in end of doc/INSTALL (only in bleeding branch) - using the macosx-x86-64-native target gives you a substantially faster program. And apparently it works around this problem too. But I will look into this problem, thanks for reporting!
Author
Owner

@magnumripper commented on GitHub (Nov 4, 2013):

http://www.openwall.com/lists/john-dev/2013/11/04/1

<!-- gh-comment-id:27730768 --> @magnumripper commented on GitHub (Nov 4, 2013): http://www.openwall.com/lists/john-dev/2013/11/04/1
Author
Owner

@magnumripper commented on GitHub (Nov 6, 2013):

Fixed in 6c05351

<!-- gh-comment-id:27847377 --> @magnumripper commented on GitHub (Nov 6, 2013): Fixed in 6c05351
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#146
No description provided.