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

Rearrange includes for 32-bit support logic #6089

Merged
merged 1 commit into from Feb 13, 2024

Conversation

Chris-Peterson444
Copy link
Contributor

The logic to support 32-bit architectures was correctly written (define _LARGEFILE64_SOURCE) but placed too "late". If a standard library header (e.g., <stdio.h>) is included before _LARGEFILE64_SOURCE is defined, then the correct symbols will not be made available during compliation. In this instance, armhf builds were failing due to off64_t not getting defined correctly.
The inclusion of <sys/statvfs.h> in slap.h is required to prevent a cryptic compliation error on "#define f_type f_un.f_un_type". The following bug is possibly related:
#5962

Description:
The logic to support 32-bit architectures was correctly written (define
_LARGEFILE64_SOURCE) but placed too "late". If a standard library header
(e.g., <stdio.h>) is included before _LARGEFILE64_SOURCE is defined, then
the correct symbols will not be made available during compliation. In this
instance, armhf builds were failing due to off64_t not getting defined
correctly.
The inclusion of <sys/statvfs.h> in slap.h is required to prevent
a cryptic compliation error on "#define f_type f_un.f_un_type".

Relates: 389ds#5962
Relates: https://bugs.launchpad.net/ubuntu/+source/389-ds-base/+bug/2052578
Relates: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063434

Reviewed by: @vashirov
@vashirov vashirov merged commit 1fe029c into 389ds:main Feb 13, 2024
9 checks passed
@vashirov
Copy link
Member

@Chris-Peterson444, thank you for your contribution!

@Chris-Peterson444
Copy link
Contributor Author

Apologies for not linking the downstream bugs and thank you for your review!

@Chris-Peterson444 Chris-Peterson444 deleted the 32bit-support branch February 13, 2024 16:21
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