We help IT Professionals succeed at work.
Get Started

error when building LDAP_AUTH module on Apache

tooki asked
Last Modified: 2013-12-24
I need to install LDAP_AUTH module on Apache 1.3.28 on my Solaris 10 server. I can start apache (LDAP authntication part commented out) without issues.

Now I downloaded the  LDAP_AUTH module from http://www.rudedog.org/auth_ldap.
I configure using command::
CC=gcc ./configure --with-apxs=/usr2/apache1.3.28/bin/apxs --with-ldap-sdk=openldap --with-sdk-headers=/usr/sfw/include/mozilla/ldap --with-sdk-libs=/usr/sfw/lib/mozilla --with-shared-cache --with-activate --with-ssl
Now I get the Makefile. Now make command gives error:
# make
gcc -c -o auth_ldap.o -DSOLARIS2=2100 -DMOD_SSL=208115 -DUSE_HSREGEX -DEAPI -fPI
ULE -I/usr2/apache1.3.28/include -I/usr/sfw/include/OpenSP auth_ldap.c
In file included from auth_ldap.c:20:
auth_ldap.h:53:22: ldap_ssl.h: No such file or directory
In file included from auth_ldap.c:20:
auth_ldap.h:139: error: conflicting types for 'ldap_search_ext_s'
/usr/include/ldap.h:615: error: previous declaration of 'ldap_search_ext_s' was
auth_ldap.h:139: error: conflicting types for 'ldap_search_ext_s'
/usr/include/ldap.h:615: error: previous declaration of 'ldap_search_ext_s' was
auth_ldap.c: In function `auth_ldap_connect_to_server':
auth_ldap.c:179: error: dereferencing pointer to incomplete type
auth_ldap.c:206: error: `LDAP_OPT_SSL' undeclared (first use in this function)
auth_ldap.c:206: error: (Each undeclared identifier is reported only once
auth_ldap.c:206: error: for each function it appears in.)
make: *** [auth_ldap.o] Error 1

Watch Question
Top Expert 2010
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE