[Date Prev][Date Next] [Chronological] [Thread] [Top]

The latest CLDAP fix render slapd not working in Solaris 64 bits mode (ITS#2344)

Full_Name: Max Chern
Version: HEAD
OS: Solaris 5.8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

The latest fix of libraries/liblber/io.c,v 1.81 2003/03/02 03:02:39 in HEAD
works fine with 32 bits Soalris, but cause major problem for 64 bits Soalris.
Now both TCP and UDP are broken.

The problem is at line 587.

                ber->ber_len = tlen;

Note that under Solaris 64 bits mode, long is 8 bytes, so not only the data
size is different, the data location is different as well. So either change
ber_tag_t, ber_len_t to fixed 32 bits, or the assignment statement (ber->ber_len
= tlen;) will need to be delayed after all AC_MEMCPY() is done.