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

Install 2.0.23 on Tru64 5.1A



I am attempting to install 2.0.23 on a Tru64 5.1A system but have come
across a number of issues including two show-stopping problems when
compiling with TLS support and/or with threads. I will only deal with the
show stoppers in detail as they are the most significant.

The other problems are discrepancies between signed and unsigned chars (or
pointers to them). Note that someone has already posted the TLS problem to
this list but got no response.

Ok, here is a matrix of configurations with results;

      --with-threads=   --with-tls=     Result
      ------------------------------------------------------
            no              no          All Tests Pass
          posix [1]         no          Run-time Failure [2]
            no              yes         Compile  Failure [3]
          posix [1]         yes         Compile  Failure [4]
      ------------------------------------------------------

Notes;

 [1] CC="cc -pthread" rather than "cc"

 [2] ./scripts/test000-rootdse: 1018263 Abort - core dumped

     slapd dumps core. End of log file says;

    daemon: removing 8
    Assertion failed: conn->c_struct_state == SLAP_C_USED, file connection.c, line 1133

 [3] When compiling 'slapd';

	ld:
     	Unresolved:
     	ldap_pvt_tls_init
	ldap_pvt_tls_init_def_ctx
	ldap_pvt_tls_accept
	ldap_pvt_tls_get_peer
	ldap_pvt_tls_get_strength
	ldap_pvt_tls_sb_ctx
	ldap_pvt_tls_set_option
	ldap_pvt_tls_get_option

        *NOTE* -lldap_r is used where I expected -lldap

  [4] As [3] except -lldap_r is correct
        *NOTE*, ldap_r is linked and appears to contain those functions.


Questions;

o  TLS and threads do not appear to be orthogonal. Should they be ?
   If so the configure script should not permit an invalid selection.

o  I compiled with Compaq C's -check parameter to see if that revealed
   anything; there are many include files which are not used, structures
   are implicitly padded, some function prototypes aren't complete. This
   is in addition to the signed/unsigned char issues.

John P.