qmail-ldap problem:qldap.c:36:18: lber.h: No such file or directory
qldap.c:37:18: ld
Dear friends,
I faced a qmail-ldap problem when trying to install qmail-ldap.
After patching qmail-ldap, I do make setup check, then it starts its usual compilation but ended with a series of obvious errors as follow:
qldap.c:36:18: lber.h: No such file or directory
qldap.c:37:18: ldap.h: No such file or directory
qldap.c:65: error: syntax error before "LDAP"
qldap.c:65: warning: no semicolon at end of struct or union
qldap.c:66: warning: data definition has no type or storage class
qldap.c:67: error: syntax error before '*' token
qldap.c:67: warning: data definition has no type or storage class
qldap.c:69: error: syntax error before '}' token
qldap.c: In function `qldap_new':
qldap.c:234: error: invalid application of `sizeof' to an incomplete type
qldap.c:236: error: invalid application of `sizeof' to an incomplete type
qldap.c: In function `qldap_open':
qldap.c:247: error: dereferencing pointer to incomplete type
qldap.c:247: error: dereferencing pointer to incomplete type
qldap.c:250: error: dereferencing pointer to incomplete type
qldap.c:250: error: `LDAP_PORT' undeclared (first use in this function)
etc.
Obvious error must be this line:
qldap.c:36:18: lber.h: No such file or directory
qldap.c:37:18: ldap.h: No such file or directory
When I do rpm -ql openldap I find these:
/usr/lib/liblber.so.2
/usr/lib/liblber.so.2.0.128
/usr/lib/libldap.so.2
/usr/lib/libldap.so.2.0.128
/usr/lib/libldap_r.so.2
/usr/lib/libldap_r.so.2.0.128
In my makefile configuration I have:
LDAPLIBS=-L/usr/lib -lldap -llber
Anyone have any idea what went wrong? Is it the above path?
please help.....i don't really know what the errros mean...
thanks a lot for taking time helping,
|