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

Re: problem building comp_match module

vadim wrote:
Hallo everybody,

Hello Vadim, I think there's bad news for you here...
if I insert



typedef void* slap_component_transform_func LDAP_P((
        struct berval * in ));
struct ComponentDesc;

comp_match module continues to compile.

Do you think it is something that I should know in advance or it is a

None of the component matching code has really been released; the LDAP_COMP_MATCH macro is usually only defined in the development branch. I also note that the last time I looked at the code it was in very poor condition (see ITS#4112 for example) and will likely cause crashes.
Best regards, vadim tarassov

On Mon, 2005-12-19 at 23:09 +0100, vadim wrote:
Hallo everybody,

I am trying to build comp_match module in openldap 2.3.13. Probably I am
doing something wrong.

First, I've done configure
make depend
make install

Second, I went into contrib/slapd-modules/comp_match and as it has been
written in README modified path to snacc (openldap-snacc-2.3.6) and

Third, I made make. I found that in the Makefile

topbuilddir = ../../../../build
topsrcdir = ../../../..

are probably wrong, I changed them to

topbuilddir = ../../../build
topsrcdir = ../../..

Then I said make again and got load of errors, where probably important

 gcc-3.3 -g -O2 -DLDAP_COMPONENT -I../../../include
-I../../../servers/slapd -I../../../build/include -I/opt/eplatform
-I/opt/eplatform/c-lib/inc -I/usr/include -c componentlib.c  -fPIC -DPIC
-o .libs/componentlib.o
In file included from componentlib.c:19:
../../../servers/slapd/component.h:62: error: syntax error before
../../../servers/slapd/component.h:62: warning: no semicolon at end of
struct or union
../../../servers/slapd/component.h:65: error: syntax error before '}'
../../../servers/slapd/component.h:65: warning: data definition has no
type or storage class
../../../servers/slapd/component.h:71: error: syntax error before

I think that "ComponentFilter" type is not defined anywhere.

Do you know what am I doing wrong?

Thanx a lot and best regards, vadim tarassov

 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/