[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
AIX v5.2 ML02 and OL v2.2.6
Hi All,
I'm hitting the following problem making OL v2.2.6 on AIX v5.2 ML02:
xlc_r -g -I../../include -I./slapi -I../../include -I/usr/local/include -I
/usr/local/include/openssl -I/usr/local/include/sasl -I/usr/include -L/usr/l
ocal/lib -L/usr/local/lib/sasl2 -L/usr/lib/ -L/lib -L/usr/ccs/lib -c
repl.c
"slap.h", line 1532.26: 1506-334 (S) Identifier pcl has already been defined
on line 115 of "/usr/include/sys/pcl.h".
Line 115 of /usr/include/sys/pcl.h says:
/*
* Privilege Control List definition
*/
struct pcl
{
unsigned int pcl_len;
unsigned int pcl_mode;
priv_t pcl_default;
struct pcl_entry pcl_ext[1];
};
Any ideas on the list?
----------------------------------------------------------------------
My environment and build steps are:
AIX v5.2 ML02
C for AIX v6.0.0.0
Berkeley db v4.2.52 (with 2 current patches):
../dist/configure --prefix=/usr/local --with-mutex=AIX/_check_lock
OpenSSL v9.7c: ./config --openssldir=/usr/local
Cyrus SASL v2.1.17:
./configure --with-dbpath=/usr/local/etc/sasldb2 --with-dblib=berkeley --wit
h-bdb-libdir=/usr/local/lib --with-bdb-incdir=/usr/local/include --with-open
ssl=/usr/local --with-plugindir=/usr/local/lib/sasl2
All the above compiled/installed without issue. OpenLDAP v2.2.6 compilation
goes...
export
CPPFLAGS="-I/usr/local/include -I/usr/local/include/openssl -I/usr/local/inc
lude/sasl -I/usr/include -L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/lib/
-L/lib -L/usr/ccs/lib"
export
INCLUDES="-I/usr/local/include -I/usr/local/include/openssl -I/usr/local/inc
lude/sasl -I/usr/include -L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/lib/
-L/lib -L/usr/ccs/lib"
export LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/lib -L/lib"
export LIBPATH="-L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/lib -L/lib"
export CC=xlc_r
vi libraries/libldap/dnssrv.c
(Fixed T_SRV problem with dnssrv.c by adding the following code ripped
from dnssrv.c in v2.1.27:)
/* Sometimes this is not defined. */
#ifndef T_SRV
#define T_SRV 33
#endif /* T_SRV */
vi libraries/libldap_r/tpool.c
(Fix MAXTHREADS problem in tpool.c (MAXTHREADS already defined in
/usr/include/sys/thread.h) by removing code, problem not present in v2.1.27
as MAXTHREADS is not defined by OL v2.1.27 code)
/* #define MAXTHREADS 1024 */ /* must be a power of 2 */
./configure --prefix=/usr/local --libexecdir=/usr/local/sbin --enable-slapd
--enable-slurpd --enable-dynamic --enable-ldbm=no
make depend
(or "make depend MKDEP=$PWD/build/mkdep.aix")
make
<----snip---->
xlc_r -g -I../../include -I./slapi -I../../include -I/usr/local/include -I
/usr/local/include/openssl -I/usr/local/include/sasl -I/usr/include -L/usr/l
ocal/lib -L/usr/local/lib/sasl2 -L/usr/lib/ -L/lib -L/usr/ccs/lib -c
repl.c
"slap.h", line 1532.26: 1506-334 (S) Identifier pcl has already been defined
on line 115 of "/usr/include/sys/pcl.h".
"slap.h", line 1977.18: 1506-112 (E) Duplicate type qualifier "volatile"
ignored.
"slap.h", line 1978.18: 1506-112 (E) Duplicate type qualifier "volatile"
ignored.
"proto-slap.h", line 421.24: 1506-112 (E) Duplicate type qualifier
"volatile" ignored.
"proto-slap.h", line 422.24: 1506-112 (E) Duplicate type qualifier
"volatile" ignored.
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.