Red Hat Bugzilla – Bug 197333
LDAP auth crashing on x86_64
Last modified: 2007-11-30 17:11:36 EST
Description of problem:
Version-Release number of selected component (if applicable):
httpd-2.2.0-5.1.2 openldap-2.3.19-4 apr-1.2.2-7.3
configure apache to use ldap on x86_64, in instantly segfaults when used.
openldap in FC5 hides the declaration of many functions that are deprecated
(eg. ldap_init in <ldap.h>). Without decl the return type defaults to int, and
with functions that return pointers you get illegal addresses on 64bit.
To get the missing declarations of openldap the -DLDAP_DEPRECATED definition
is needed at compile time.
Just noticed the same problem here (x86_64).
It still happens with httpd-2.2.2-1.0.x86_64.
apr-util actually has the same Problem.
Attaching a patch that fixed the problem for me.
Please note that it must be applied to apr, altough
the package containing wrong code is apr-util.
The new apr-devel must be installed while rebuilding
Created attachment 131875 [details]
Bugfix for apr
Please add to apr.spec and rebuild both apr and apr-util
with new apr-devel already installed.
Thanks, there is an apr-util update in the update queue already. It's not
necessary to make changes to apr to fix this issue.
*** This bug has been marked as a duplicate of 188073 ***