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

Openldap compile error on Solaris 9



Hi,

I'm trying to compile the latest stable version of OpenLDAP on Solaris,
however I'm getting an error when gcc tries compiling
openldap-2.3.4/libraries/liblber/memory.c:

./configure --enable-static --enable-accesslog --with-tls --enable-bdb
--enable-cleartext --enable-crypt --enable-syslog --enable-slurpd

Configure completes fine.
make depend completes fine.
make fails with the following error:

cc -I/usr/local/include -I/usr/local/BerkeleyDB.4.4/include
-I/opt/sfw/include -I/usr/local/ssl/include/openssl -I/us
w/mysql/include -I/usr/local/pgsql/include -I../../include -I../../include
-I/usr/local/include -I/usr/local/Berkeley
fw/include -I/usr/local/ssl/include/openssl -I/usr/sfw/include
-I/opt/sfw/mysql/include -I/usr/local/pgsql/include -D
c  -fPIC -DPIC -o .libs/memory.lo
memory.c: In function `ber_memfree_x':
memory.c:160: error: too many arguments to function
memory.c: In function `ber_memalloc_x':
memory.c:235: error: too many arguments to function
memory.c: In function `ber_memcalloc_x':
memory.c:290: error: too many arguments to function
memory.c: In function `ber_memrealloc_x':
memory.c:363: error: too many arguments to function
make[2]: *** [memory.lo] Error 1
make[2]: Leaving directory `/usr/share/src/openldap-2.3.4/libraries/liblber'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/share/src/openldap-2.3.4/libraries'
make: *** [all-common] Error 1


my build environment is a bit of a messas I've got packages I've compiled
myself, sunfreeware packages in /usr/local and sun companion cd packages in
/opt/sfw. All this includes -

* GCC 3.3.2 from the Sun Companion CD. This version of GCC is compiled using
the sun linker, not the GCC/binutils linker.
* Berkeley DB 4.4 installed in /usr/local/BerkeleyDB4.4, which I've
successfully compiled/installed myself.
To complicate matters I also have an earlier version of Berkeley DB running
in /opt/sfw (supporting a live version of Openldap that i'm having BIND
problems with.)
* openssl is installed in /usr/local/ssl/openssl.

# gcc -v
Reading specs from
/opt/sfw/gcc-3/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/opt/sfw/gcc-3
--with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as --without-gnu-ld
--without-gnu-as --enable-shared
Thread model: posix
gcc version 3.3.2

LD_LIBRARY_PATH=/usr/lib:/usr/lib/sparcv9/:/usr/local/lib:/usr/local/ssl/lib
/:/usr/local/BerkeleyDB.4.4/lib:/opt/sfw/lib:/usr/local/samba/lib:/usr/sfw/l
ib:/usr/local/pgsql/lib:/usr/ccs/lib:/usr/local/imap2000b/lib:/opt/sfw/gcc-3
/lib
PS1=root@ford: #
MACHTYPE=sparc-sun-solaris2.9
OLDPWD=/
CPPFLAGS=-I/usr/local/include -I/usr/local/BerkeleyDB.4.4/include
-I/opt/sfw/include -I/usr/local/ssl/include/openssl -I/usr/sfw/include
-I/opt/sfw/mysql/include -I/usr/local/pgsql/include
LOGNAME=root
SHLVL=1
LDFLAGS=-L/usr/local/lib -L/usr/local/BerkeleyDB.4.4/lib -L/opt/sfw/lib
-L/usr/local/ssl/lib -L/usr/sfw/lib -L/opt/sfw/mysql/lib
-L/usr/local/pgsql/lib
SHELL=/sbin/sh
HOSTTYPE=sparc
OSTYPE=solaris2.9
HOME=/
TERM=xterm
PATH=/usr/local/bin:/usr/local/BerkeleyDB.4.4/bin:/opt/sfw/bin:/opt/sfw/gcc-
3/bin:/usr/bin:/usr/sbin:/opt/sfw/mysql/bin:/usr/local/samba/bin:/sbin:/usr/
sfw/bin:/usr/sfw/sbin:/usr/local/pgsql/bin:/usr/ccs/bin
CFLAGS=-I/usr/local/include -I/usr/local/BerkeleyDB.4.4/include
-I/opt/sfw/include -I/usr/local/ssl/include/openssl -I/usr/sfw/include
-I/opt/sfw/mysql/include -I/usr/local/pgsql/include

I've seen in the archives that this error has appeared on other openldap
libraries, but not memory.c. Any ideas??

BTW, I'm trying to recompile OpenLDAP to include support for Crypt and
plaintext as I'm having problems using the precompiled version from the Sun
Companion CD. Basically I can't successfully bind with anything other than
an Anonymous bind or the admin "Manager" credentials as defined in the
config file. Trying to bind as any other user using simple bind returns
"error 49, invalid credentials."

Thanks
Dan