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

configure under AIX



Hi.

I found that on my AIXes the configure fails because of broken
pthread.h.
I had to manually fix the header (starting with
/* static char sccsid[] = "@(#)15       1.32.2.31
src/bos/usr/ccs/lib/libpthrea
ds/pthread.h, libpth, bos43N, 9933A_43N 8/11/99 09:54:44"; */) because
the missing space between the define names reported below and the
trailing
backslash '\' would make gcc issue a warning at compile time, resulting
in
misconfiguration (the correct thread files were rejected). This on turn
resulted in erroneous rejection of Berkeley db, which was correctly
compiled
with threads, and so.
I wonder if this applies to OpenLDAP's configure only or it is a common
(standard) configure problem, because i did't notice it with other
packages;
however, I compiled very little on this architecture ...

Regards,

Pierangelo Masarati

*** pthread.h.orig      Tue Nov 14 15:45:45 2000
--- pthread.h   Tue Nov 14 14:33:54 2000
***************
*** 95,101 ****

  /* initializers
   */
! #define PTHREAD_MUTEX_INITIALIZER\
  {\
        0,      /* no waiters */\
        0,      /* no waiters */\
--- 95,101 ----

  /* initializers
   */
! #define PTHREAD_MUTEX_INITIALIZER \
  {\
        0,      /* no waiters */\
        0,      /* no waiters */\
***************
*** 112,118 ****
        0       /* not yet in mutex list */\
  }

! #define PTHREAD_COND_INITIALIZER\
  {\
        0,      /* not yet in cond list */\
        0,      /* not yet in cond list */\
--- 112,118 ----
        0       /* not yet in mutex list */\
  }

! #define PTHREAD_COND_INITIALIZER \
  {\
        0,      /* not yet in cond list */\
        0,      /* not yet in cond list */\
***************
*** 128,134 ****
  }

  #ifndef _AIX_PTHREADS_D7
! #define PTHREAD_RWLOCK_INITIALIZER\
  {\
        0,      /* not yet in rwlock list */\
        0,      /* not yet in rwlock list */\
--- 128,134 ----
  }

  #ifndef _AIX_PTHREADS_D7
! #define PTHREAD_RWLOCK_INITIALIZER \
  {\
        0,      /* not yet in rwlock list */\
        0,      /* not yet in rwlock list */\
***************
*** 147,153 ****
  }
  #endif

! #define       PTHREAD_ONCE_INIT\
  {\
        0,      /* not locked */\
        0,      /* not initialized */\
--- 147,153 ----
  }
  #endif

! #define       PTHREAD_ONCE_INIT \
  {\
        0,      /* not locked */\
        0,      /* not initialized */\