https://bugs.openldap.org/show_bug.cgi?id=9987
Issue ID: 9987 Summary: OpenLdap does not set large-file-support flags Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: build Assignee: bugs@openldap.org Reporter: allenwebb@google.com Target Milestone: ---
I understand that 2.4 isn't supported, but 2.6 is blocked by other config related issues, so I wasn't able to test if it has the same problem.
Ideally, the openldap configure/build scripts would be aware of large file support and would enable it when supported (arm/x86, etc).
Here are the places where it would matter: openldap-2.4.58-r2: 18:33:38.552 * QA Notice: The following files were not built with LFS support: openldap-2.4.58-r2: 18:33:38.565 * Please see https://issuetracker.google.com/201531268 for details. openldap-2.4.58-r2: 18:33:38.581 * fopen,fstat /usr/bin/ldapdelete openldap-2.4.58-r2: 18:33:38.584 * fopen,fstat /usr/bin/ldapmodrdn openldap-2.4.58-r2: 18:33:38.588 * fopen,fstat /usr/bin/ldapwhoami openldap-2.4.58-r2: 18:33:38.591 * fopen,fstat /usr/bin/ldapmodify openldap-2.4.58-r2: 18:33:38.595 * fopen,mkstemp,fstat /usr/bin/ldapsearch openldap-2.4.58-r2: 18:33:38.599 * fopen,fstat /usr/bin/ldappasswd openldap-2.4.58-r2: 18:33:38.602 * fopen,fstat /usr/bin/ldapexop openldap-2.4.58-r2: 18:33:38.606 * fopen,fstat /usr/bin/ldapcompare openldap-2.4.58-r2: 18:33:38.609 * fopen /usr/lib/libldap-2.4.so.2.11.6 openldap-2.4.58-r2: 18:33:38.613 * fopen /usr/lib/libldap_r-2.4.so.2.11.6 openldap-2.4.58-r2: 18:33:38.627 * Full build files: openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/ldapdelete.o openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldapdelete openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldapmodrdn openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldapwhoami openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldapmodify openldap-2.4.58-r2: fopen,mkstemp,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldapsearch openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldappasswd openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldapexop openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/.libs/ldapcompare openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/ldapmodrdn.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/ldapmodify.o openldap-2.4.58-r2: fopen,mkstemp /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/clients/tools/ldapsearch.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/liblutil/getpass.o openldap-2.4.58-r2: lockf /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/liblutil/lockf.o openldap-2.4.58-r2: fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/liblutil/passfile.o openldap-2.4.58-r2: __open_2 /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/liblutil/detach.o openldap-2.4.58-r2: __open_2 /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/liblutil/sha1.o openldap-2.4.58-r2: open,fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap_r/.libs/ltest openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap_r/.libs/ldif.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap_r/.libs/fetch.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap_r/.libs/libldap_r-2.4.so.2.11.6T openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap_r/.libs/init.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap_r/.libs/libldap_r-2.4.so.2.11.6 openldap-2.4.58-r2: open,fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap_r/test.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/librewrite/rewrite.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/librewrite/.libs/rewrite openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/librewrite/xmap.o openldap-2.4.58-r2: open,fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap/.libs/ltest openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap/.libs/ldif.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap/.libs/libldap-2.4.so.2.11.6T openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap/.libs/fetch.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap/.libs/init.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap/.libs/libldap-2.4.so.2.11.6 openldap-2.4.58-r2: open,fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/libraries/libldap/test.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/tests/progs/.libs/slapd-addel openldap-2.4.58-r2: readdir,fopen,fstat /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/tests/progs/.libs/slapd-tester openldap-2.4.58-r2: readdir,fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/tests/progs/slapd-tester.o openldap-2.4.58-r2: fopen /build/arm-generic/tmp/portage/net-nds/openldap-2.4.58-r2/work/openldap-2.4.58-.arm/tests/progs/slapd-addel.o
https://bugs.openldap.org/show_bug.cgi?id=9987
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Howard Chu hyc@openldap.org --- As your referenced link shows, you just need to define -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE when compiling. You can add this to CPPFLAGS manually when running configure. The INSTALL doc already tells you how to do this. No issue here, closing this ticket.
https://bugs.openldap.org/show_bug.cgi?id=9987
--- Comment #2 from Sam James sam@gentoo.org --- (In reply to Howard Chu from comment #1)
As your referenced link shows, you just need to define -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE when compiling. You can add this to CPPFLAGS manually when running configure. The INSTALL doc already tells you how to do this. No issue here, closing this ticket.
autoconf can do that for you if you set AC_SYS_LARGEFILE. Why not add that?
https://bugs.openldap.org/show_bug.cgi?id=9987
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Keywords|needs_review |