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

making on AIX v5.2 fails on MAXTHREADS (ITS#2997)



Full_Name: Colin Ewart
Version: 2.2.6
OS: AIX v5.2 ML01 + ML02
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (192.128.252.68)


make of OL v2.2.6 fails on AIX v5.2 (maintenance levels 01 and 02) using C for
AIX v6. Make complains about MAXTHREADS being redefined in
libraries/libldap_r/tpool.c:

#> ./configure  --prefix=/usr/local --libexecdir=/usr/local/sbin
--enable-slapd 
--enable-slurpd --enable-dynamic --enable-ldbm=no

#> make depend
"tpool.c", line 48.9: 1506-213 (S) Macro name MAXTHREADS cannot be redefined.
"tpool.c", line 48.9: 1506-358 (I) "MAXTHREADS" is defined on line 65 of
/usr/include/sys/thread.h.

#> make

<---snip--->
xlc_r -g -I../../include -I../../include -DLDAP_R_COMPILE -I./../libldap
-I/usr/local/include -I/usr/local/include/openssl -I/usr/local/include/sasl
-I/usr/include -L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/lib/ -L/lib
-L/usr/ccs/lib -DLDAP_LIBRARY -c tpool.c  -DPIC -o .libs/tpool.lo
"tpool.c", line 48.9: 1506-213 (S) Macro name MAXTHREADS cannot be redefined.
"tpool.c", line 48.9: 1506-358 (I) "MAXTHREADS" is defined on line 65 of
/usr/include/sys/thread.h.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.

A workaround is to comment out line 48 in tpool.s but this may break builds on
other platforms.

Regards,

Colin