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

Fixes to make compile under OpenServer 5 (ITS#972)



Full_Name: Omer Azmon
Version: OpenLDAP 2.0.7
OS: OpenServer 5.0.5
URL: 
Submission from: (NULL) (63.193.150.91)


1. The following change was done as when the SQL backend was disabled from
compile the SLAPD_LIBS value became 'SLAPD_LIBS = \' messing up the compile

./build/top.mk
147,148c147
< SLAPD_LIBS = @SLAPD_LIBS@ \
<  @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LIBS@
---
> SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LIBS@


2. The following two files were changed as in SCO OpenServer 5 the variable
MAXPATHLEN was removed from stdlib.h

./include/ac/stdlib.h
33a34,37
> #ifndef MAXPATHLEN
> # define MAXPATHLEN 1024
> #endif
>

./servers/slurpd/slurp.h
25a26
> #include <ac/stdlib.h>

3. The following file was changed as in SCO OpenServer 5 complied with
pthreads the fgets returns upon thread switch and so never reads the
response from the backend. (NOTE: this needs to be fixed in slurpd as well,
but I have not yet isolated that bug fully)
./servers/slapd/back-shell/result.c
9a10
> #include <errno.h>
41c42,43
<  while ( fgets( line, sizeof(line), fp ) != NULL ) {
---
>   while ( errno = 0,
>            ( fgets( line, sizeof(line), fp ) != NULL ) && ( errno !=
EINTR ) ) {

4. The following file was changed as in SCO OpenServer Skunkware version of
pthreads the value of socklen_t is already defined the pthread.h header
file.  (NOTE: This possibly is better corrected in ./configure)
./include/ldap_int_thread.h
22a23,26
> #ifdef socklen_t
> #undef socklen_t
> #endif
>

5. The following two files were changed to make the system call the correct
function name for Kerberos5 version 1.2.1 (don't know when change occurred)
./libraries/liblutil/passwd.c
758c758
<   krb5_free_cred_contents( context, &creds );
---
>   krb5_free_creds( context, &creds );

./libraries/liblutil/authpasswd.c
637c637
<   krb5_free_creds_contents( context, &creds );
---
>   krb5_free_creds( context, &creds );

6. The following change was made as the library name is different in
Kerberos5 release 1.2.1 (don't know when change occurred)
./configure
5766c5766
< LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
---
> LIBS="-lkrb5 -lk5crypto -lcom_err $LIBS"
5791c5791
<     KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
---
>     KRB5_LIBS="-lkrb5 -lk5crypto -lcom_err"