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

MD5_std.c: Fix a build error under -std=gnu99 with gcc 4.8.5 #5619

Merged

Conversation

magnumripper
Copy link
Member

@magnumripper magnumripper commented Dec 18, 2024

"dynamic_fmt.c:5274: undefined reference to `MD5_body_for_thread'"

Non-static function using "inline" doesn't get external linkage unless also declared with "extern" somewhere.

I'm not 100% sure but this one compiler may actually do the right thing while all the ones not bailing out break the standard (or rather allow non-standard) for compatibility/DWIM reasons.

Closes #5611

"dynamic_fmt.c:5274: undefined reference to `MD5_body_for_thread'"

Non-static function using "inline" doesn't get external linkage unless also
declared with "extern" somewhere.

I'm not 100% sure but this one compiler may actually do the right thing while
all the ones not bailing out break the standard for compatibility reasons.

Closes openwall#5611
@magnumripper magnumripper merged commit 8237c61 into openwall:bleeding-jumbo Dec 19, 2024
35 of 36 checks passed
@magnumripper magnumripper deleted the gnu99-MD5_body_for_thread branch December 19, 2024 09:08
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.

-std=gnu99 broke build on CentOS 7
2 participants