Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix static build error due to duplicate MD5 functions #255

Closed
wants to merge 2 commits into from
Closed

fix static build error due to duplicate MD5 functions #255

wants to merge 2 commits into from

Conversation

rofl0r
Copy link
Contributor

@rofl0r rofl0r commented Apr 11, 2013

since we link to -lcrypto unconditionally, we have to define
HAVE_OPENSSL unconditionally as well.

closes #254

since we link to -lcrypto unconditionally, we have to define
HAVE_OPENSSL unconditionally as well.

closes #254
@magnumripper
Copy link
Member

Please discuss this on john-dev before we commit it. I'm not sure of possible consequences.

only when this macro is defined, the array output8x is available,
which the asm unconditionally used.
this leads to a build error when static linking, but not when
dynamic linking since the functions in the asm file are not being
used.
@rofl0r
Copy link
Contributor Author

rofl0r commented Apr 11, 2013

added a commit.

@rofl0r
Copy link
Contributor Author

rofl0r commented Apr 11, 2013

hmm while the 2nd commit is technically correct, it doesn't help me since NT_X86_64 is defined.
the issue with missing symbols for output8x happens only when compiled with LTO.
apparently the assembler object file and the C one (NT_fmt.c) dont work together as they should...
trying to update to latest binutils, maybe that fixes it.

@rofl0r
Copy link
Contributor Author

rofl0r commented Apr 11, 2013

ok, seems -fwhole-program is fundamentally incompatible with asm.
-flto on its own works.

@magnumripper
Copy link
Member

d0571a0 is supposed to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants