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

back-sql won't compile in openldap-2.1.2 (ITS#1920)



Full_Name: Gary Mills
Version: 2.1.2
OS: Solaris 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (24.85.18.98)


I'm building OpenLDAP with the following configure options:

env CC=cc \
        CPPFLAGS="-I/usr/local/include -I/usr/local/src/db/db-2.4.14/Unix" \
        LDFLAGS=" -L/usr/local/lib -R/usr/local/lib
-L/usr/local/src/db/db-2.4.14/Unix" \
        ./configure \
        --disable-proctitle \
        --enable-crypt \
        --disable-bdb \
        --enable-ldbm \
        --enable-sql

The configure completes normally, as does `make depend'.  `make' also runs
normally until it hits servers/slapd/back-sql.  I didn't have these problems
with openldap-2.0.18.  It looks as if somebody made major changes to an API,
but didn't propagate the changes to back-sql.  Here's a sample of the errors:


cc -g -I../../../include -I../../../include -I.. -I./.. -I/usr/local/include
-I/usr/local/src/db/db-2.4.14/Unix -c search.c  -KPIC -DPIC -o search.o
"search.c", line 50: identifier redeclared: backsql_init_search
        current : function(pointer to struct __backsql_srch_info {pointer to ch
...
        previous: function(pointer to struct __backsql_srch_info {pointer to
char base_dn, int scope, pointer to struct slap_filter {..} filter, int slimit,
i
...
ned long bv_len, pointer to char bv_val}) returning void : "./util.h", line 50
"search.c", line 143: operands have incompatible types:
         struct berval {unsigned long bv_len, pointer to char bv_val} "!=" int
"search.c", line 147: left operand of "->" must be pointer to struct/union
"search.c", line 150: left operand of "->" must be pointer to struct/union
"search.c", line 156: operands have incompatible types:
         struct berval {unsigned long bv_len, pointer to char bv_val} "!=" int
"search.c", line 161: left operand of "->" must be pointer to struct/union
"search.c", line 164: left operand of "->" must be pointer to struct/union