you're missing the ldap-dev package.
install it and the error will go away.

> Hi...
>
> I use
> # ./configure \
>> --prefix=/usr/local/proftpd/1.3.1/ \
>> --with-modules=mod_ldap

>
> is ok, but when run # make
> receive this error, i not a programmer only newbie sysadmin.
> Is a bug....?
>
> gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -O2 -Wall -c mod_delay.c
> gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -O2 -Wall -c mod_ldap.c
> mod_ldap.c:90:18: error: lber.h: No such file or directory
> mod_ldap.c:91:18: error: ldap.h: No such file or directory
> mod_ldap.c:112: error: expected ')' before '*' token
> mod_ldap.c:129: error: expected ')' before numeric constant
> mod_ldap.c:129: error: expected identifier or '(' before '}' token
> mod_ldap.c:184: error: 'LDAP_PORT' undeclared here (not in a function)
> mod_ldap.c:190: error: 'LDAP_DEREF_NEVER' undeclared here (not in a
> function)
> mod_ldap.c:191: error: 'LDAP_SCOPE_SUBTREE' undeclared here (not in a
> function)
> mod_ldap.c:204: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> mod_ldap.c: In function 'pr_ldap_unbind':
> mod_ldap.c:223: error: 'ld' undeclared (first use in this function)
> mod_ldap.c:223: error: (Each undeclared identifier is reported only once
> mod_ldap.c:223: error: for each function it appears in.)
> mod_ldap.c:228: warning: implicit declaration of function 'ldap_unbind_s'
> mod_ldap.c:229: error: 'LDAP_SUCCESS' undeclared (first use in this
> function)
> mod_ldap.c:230: warning: implicit declaration of function
> 'ldap_err2string'
> mod_ldap.c:230: warning: format '%s' expects type 'char *', but
> argument 3 has type 'int'
> mod_ldap.c: At top level:
> mod_ldap.c:238: error: expected ')' before '*' token
> mod_ldap.c: In function 'pr_ldap_user_lookup':
> mod_ldap.c:373: error: 'LDAPMessage' undeclared (first use in this
> function)
> mod_ldap.c:373: error: 'result' undeclared (first use in this function)
> mod_ldap.c:373: error: 'e' undeclared (first use in this function)
> mod_ldap.c:373: warning: left-hand operand of comma expression has no
> effect
> mod_ldap.c:384: error: 'ld' undeclared (first use in this function)
> mod_ldap.c:386: warning: implicit declaration of function
> 'pr_ldap_connect'
> mod_ldap.c:393: error: expected expression before '{' token
> mod_ldap.c:2347: error: expected declaration or statement at end of input
> mod_ldap.c:374: warning: unused variable 'values'
> mod_ldap.c:372: warning: unused variable 'i'
> mod_ldap.c:371: warning: unused variable 'dn'
> make[1]: *** [mod_ldap.o] Error 1
> make[1]: Leaving directory `/usr/local/src/proftpd-1.3.1/modules'
> make: *** [modules] Error 2
> inserv:/usr/local/src/proftpd-1.3.1#
>
> error call at ldap.h library, my source directory it's standard
> # tar -xvzf proftpd-1.3.1.tar.gz
> # cd proftpd-1.3.1
>
> What is wrong....?
>
>
> Thanks
> PD: sorry for my english isn't my native language
>
> --
> "La Voluntad es el unico motor de nuestros logros"
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> ProFTPD Users List
> Unsubscribe problems?
> http://www.proftpd.org/list-unsub.html
>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ProFTPD Users List
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html