2.2.24 ldap-client.c compile failing on Solaris 10

aki.tuomi at dovecot.fi aki.tuomi at dovecot.fi
Fri May 13 13:56:14 UTC 2016


> On May 13, 2016 at 3:05 PM Tomi Vainio <tomi.vainio at iki.fi> wrote:
> 
> 
> Hi,
> 
> I'm trying to compile 2.2.24 on Solaris 10 with SolarisStudio 12.4 
> compiler.  Looks like BerVarray is totallly missing from Solaris ldap.
> 
> BR,
> Tomppa
> 
> Making all in lib-ldap
> source='ldap-client.c' object='ldap-client.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
> /bin/bash ../../libtool  --tag=CC    --mode=compile cc -std=c11 
> -DHAVE_CONFIG_H  -I. -I../..  -I../../src/lib  -I../../src/lib-test 
> -I../../src/lib-settings  -I../../src/lib-master 
> -I../../src/lib-ssl-iostream   -I/usr/local/include -I/usr/sfw/include 
> -xO4 -xtarget=ultra4 -xcache=64/32/4:8192/128/2 -I/usr/local/include -c 
> -o ldap-client.lo ldap-client.c
> libtool: compile:  cc -std=c11 -DHAVE_CONFIG_H -I. -I../.. 
> -I../../src/lib -I../../src/lib-test -I../../src/lib-settings 
> -I../../src/lib-master -I../../src/lib-ssl-iostream -I/usr/local/include 
> -I/usr/sfw/include -xO4 -xtarget=ultra4 -xcache=64/32/4:8192/128/2 
> -I/usr/local/include -c ldap-client.c  -KPIC -DPIC -o .libs/ldap-client.o
> "ldap-private.h", line 63: syntax error before or at: BerVarray
> "ldap-client.c", line 46: void function cannot return value
> "ldap-client.c", line 54: void function cannot return value
> cc: acomp failed for ldap-client.c
> *** Error code 1
> make: Fatal error: Command failed for target `ldap-client.lo'
> Current working directory /v/tomppa/src/dovecot-2.2.24/src/lib-ldap
> *** Error code 1
> 
> CC='cc -std=c11'
> CXX='CC -std=c++11'
> CFLAGS=-xO4
> CFLAGS="${CFLAGS} -`fpversion -foption`"
> CPPFLAGS="-I/usr/local/include"
> CPPFLAGS="${CPPFLAGS} -I/usr/sfw/include"
> LDFLAGS="-R/usr/local/lib:/usr/sfw/lib:/usr/lib/sasl:/usr/lib/mps"
> LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/usr/sfw/lib"
> LDFLAGS="${LDFLAGS} -L/usr/lib/sasl -L/usr/lib/mps"
> export CC CXX CFLAGS CPPFLAGS LDFLAGS
> 
> ./configure \
> --with-gssapi \
> --with-ldap \
> --with-mysql \
> --with-pgsql \
> --with-sqlite \
> --with-solr \
> --with-libwrap \
> --with-ssl=openssl \
> --with-ssldir=/usr/local/openssl

Hi! 

Currently we only support openldap. However, what is the ldap library version?

---
Aki Tuomi


More information about the dovecot mailing list