Link to home
Start Free TrialLog in
Avatar of tooki
tooki

asked on

error when building LDAP_AUTH module on Apache

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
C -DSHARED_CORE -DWITH_SSL -DWITH_SHARED_LDAP_CACHE -DWITH_OPENLDAP -DSHARED_MOD
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
here
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
here
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


Avatar of tooki
tooki

ASKER

It seems I need to install openldap: http://www.sunfreeware.com/programlistsparc10.html#openldap

I get openldap-2.4.22-sol10-sparc-local.gz  and unzip/untar. Then .configure command gives error:

checking db.h usability... no
checking db.h presence... no
checking for db.h... no
configure: error: BDB/HDB: BerkeleyDB not available
Avatar of arober11
As it indicates you also need the Berkeley DB (http://www.oracle.com/technology/products/berkeley-db/index.html) and probably a few other dependencies.

If your going for a source compile, rather than a simple package install, I'd download  then complete source set from the Sun Freeware site (http://www.sunfreeware.com/programlistsparc10.html#openldap), as all dependencies are known / stated.

You could take the easy option and just download and "pkgadd -d xxx" a pre-build build, from one of the sites.

For info: http://www.mirrorservice.org/sites/blastwave.org/stable/sparc/5.10/ 
Avatar of tooki

ASKER

Sorry could not understand well. Can I install OpenLDAP using "pkgadd -d xxx" command only? That is not using source compilation.

I could not find such package link for OpenLDAP in http://www.mirrorservice.org/sites/blastwave.org/stable/sparc/5.10/  . Could you please let me know the link and I unzip the file and use the command  "pkgadd -d xxx" (xxx is a .tar file or the directory name?)
thanks.
ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial