You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Long <DL...@Lynden.com> on 2010/12/24 01:16:48 UTC
[users@httpd] help on compile 2.2.17 with ldap support
Hi,
I am getting error when trying to compile 2.2.17 with ldap authentication support on Solaris 10 Sparc server.
First, I download Mozilla ldap c-sdk
The configure apache httpd 2.2.17 with
"./configure" \
"--prefix=/www/apache2" \
"--enable-so" \
"--enable-proxy" \
"--enable-ssl" \
"--enable-deflate" \
"--enable-rewrite" \
"--enable-headers" \
"--enable-cgid" \
"--with-ldap=yes" \
"--enable-ldap" \
"--enable-authnz-ldap" \
"--with-ldap-lib=/www/src/ldapcsdk5/lib" \
"--with-ldap-include=/www/src/ldapcsdk5/include" \
"$@"
For make I got
Undefined first referenced
symbol in file
apr_ldap_info server/.libs/libmain.a(exports.o)
apr_ldap_init server/.libs/libmain.a(exports.o)
apr_ldap_rebind_add server/.libs/libmain.a(exports.o)
apr_ldap_url_parse_ext server/.libs/libmain.a(exports.o)
I run ./config.nice
And got some message about ldap portion
checking for ldap support...
setting APRUTIL_INCLUDES to "-I/www/src/ldapcsdk5/include"
setting APRUTIL_LDFLAGS to "-L/www/src/ldapcsdk5/lib"
checking for ldap_init in -lldap50... no
checking for ldap_init in -lldapssl41... no
checking for ldap_init in -lldapssl40... no
checking for ldap_init in -lldapssl30... no
checking for ldap_init in -lldapssl20... no
checking for ldap_init in -lldapsdk... no
checking for ldap_init in -lldapsdk... no
checking for ldap_init in -lldap... no
checking for ldap_init in -lldap... no
checking for ldap_init in -lldap... no
checking for ldap_init in -lldap... yes
checking for ldapssl_client_init in -lldap... yes
checking for ldapssl_client_deinit in -lldap... no
checking for ldapssl_add_trusted_cert in -lldap... no
checking for ldap_start_tls_s in -lldap... no
checking for ldap_sslinit in -lldap... no
checking for ldapssl_init in -lldap... yes
checking for ldapssl_install_routines in -lldap... yes
checking for ber_init in -llber... no
when I ran make, I got following error
Undefined first referenced
symbol in file
apr_ldap_info server/.libs/libmain.a(exports.o)
apr_ldap_init server/.libs/libmain.a(exports.o)
apr_ldap_rebind_add server/.libs/libmain.a(exports.o)
apr_ldap_url_parse_ext server/.libs/libmain.a(exports.o)
Can someone tell me what is this error about?
Thanks In advance
dlong
Re: [users@httpd] help on compile 2.2.17 with ldap support
Posted by Rainer Jung <ra...@kippdata.de>.
On 27.12.2010 19:28, David Long wrote:
> I am kind of new to configure and compile apache.
> Can you tell me how to building against the bundled Solaris ldap client libs?
As Nick wrote: it might be easier for you to first build apr and
apr-util separately. You can download the latest releases of apr and
apr-util, build them - with ldap support in apr-util - and install them
and then build httpd against those freshly installed apr and apr-util.
That way you can check success step by step.
Regards,
Rainer
> I had source code of 2.2.17
> First I ran
> ./configure --prefix=/www/apache2 --enable-so --enable-proxy --enable-ssl --enable-deflate --enable-rewrite --enable-headers --enable-cgid --enable-ldap --enable-authnz-ldap
>
> It finished OK and part of the output shows following
> checking for zlib library... found
> forcing MOD_DEFLATE_LDADD to "-lz"
> removed "-lz" from LIBS
> checking whether to enable mod_deflate... yes (default)
> checking whether to enable mod_ldap... checking dependencies
> checking whether to enable mod_ldap... yes (default)
> checking whether to enable mod_log_config... yes (default)
> checking whether to enable mod_log_forensic... no
> checking whether to enable mod_logio... no
> checking whether to enable mod_env... yes (default)
> checking whether to enable mod_mime_magic... no
> checking whether to enable mod_cern_meta... no
> checking whether to enable mod_expires... no
>
> I got error when I run the "make"
>
> Undefined first referenced
> symbol in file
> apr_ldap_info modules/ldap/.libs/libmod_ldap.a(util_ldap.o
> )
> apr_ldap_init modules/ldap/.libs/libmod_ldap.a(util_ldap.o
> )
> apr_ldap_ssl_deinit modules/ldap/.libs/libmod_ldap.a(util_ldap.o
> )
> apr_ldap_set_option modules/ldap/.libs/libmod_ldap.a(util_ldap.o
> )
> apr_ldap_ssl_init modules/ldap/.libs/libmod_ldap.a(util_ldap.o
> )
> apr_ldap_url_parse modules/aaa/.libs/libmod_authnz_ldap.a(mod_a
> uthnz_ldap.o)
> ld: fatal: Symbol referencing errors. No output written to .libs/httpd
> collect2: ld returned 1 exit status
> *** Error code 1
>
>
> Is there a step I am missing?
>
> Thanks
> David Long
> -----Original Message-----
> From: Rainer Jung [mailto:rainer.jung@kippdata.de]
> Sent: Monday, December 27, 2010 1:53 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] help on compile 2.2.17 with ldap support
>
> On 24.12.2010 02:16, Nick Kew wrote:
>> On Thu, 23 Dec 2010 16:16:48 -0800
>> David Long<DL...@Lynden.com> wrote:
>>
>>> Hi,
>>> I am getting error when trying to compile 2.2.17 with ldap authentication support on Solaris 10 Sparc server.
>>
>> Insufficient information - I see more than one likely cause.
>>
>> First thing to do is to separate out the APR and APR-UTIL builds:
>>
>> 1. Build APR, run tests, and install
>> 2. Do the same for APR-UTIL. This is where you'll have to configure
>> ldap support, and get the most meaningful error messages if there's
>> a problem.
>> 3. Now build httpd using --with-apr and --with-apr-util pointing to
>> what you just installed.
>>
>>> First, I download Mozilla ldap c-sdk
>>
>> That's not the 'usual' ldap. Not sure how well-supported it
>> is, since I've not used it myself. But building apr-util and
>> running its tests will tell you that - if it fails, try
>> OpenLDAP and report back whether it makes a difference.
>
> ... or simply building against the bundled Solaris ldap client libs
> which will be detected automatically.
>
> Regards,
>
> Rainer
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] help on compile 2.2.17 with ldap support
Posted by David Long <DL...@Lynden.com>.
Hi Rainer,
I am kind of new to configure and compile apache.
Can you tell me how to building against the bundled Solaris ldap client libs?
I had source code of 2.2.17
First I ran
./configure --prefix=/www/apache2 --enable-so --enable-proxy --enable-ssl --enable-deflate --enable-rewrite --enable-headers --enable-cgid --enable-ldap --enable-authnz-ldap
It finished OK and part of the output shows following
checking for zlib library... found
forcing MOD_DEFLATE_LDADD to "-lz"
removed "-lz" from LIBS
checking whether to enable mod_deflate... yes (default)
checking whether to enable mod_ldap... checking dependencies
checking whether to enable mod_ldap... yes (default)
checking whether to enable mod_log_config... yes (default)
checking whether to enable mod_log_forensic... no
checking whether to enable mod_logio... no
checking whether to enable mod_env... yes (default)
checking whether to enable mod_mime_magic... no
checking whether to enable mod_cern_meta... no
checking whether to enable mod_expires... no
I got error when I run the "make"
Undefined first referenced
symbol in file
apr_ldap_info modules/ldap/.libs/libmod_ldap.a(util_ldap.o
)
apr_ldap_init modules/ldap/.libs/libmod_ldap.a(util_ldap.o
)
apr_ldap_ssl_deinit modules/ldap/.libs/libmod_ldap.a(util_ldap.o
)
apr_ldap_set_option modules/ldap/.libs/libmod_ldap.a(util_ldap.o
)
apr_ldap_ssl_init modules/ldap/.libs/libmod_ldap.a(util_ldap.o
)
apr_ldap_url_parse modules/aaa/.libs/libmod_authnz_ldap.a(mod_a
uthnz_ldap.o)
ld: fatal: Symbol referencing errors. No output written to .libs/httpd
collect2: ld returned 1 exit status
*** Error code 1
Is there a step I am missing?
Thanks
David Long
-----Original Message-----
From: Rainer Jung [mailto:rainer.jung@kippdata.de]
Sent: Monday, December 27, 2010 1:53 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] help on compile 2.2.17 with ldap support
On 24.12.2010 02:16, Nick Kew wrote:
> On Thu, 23 Dec 2010 16:16:48 -0800
> David Long<DL...@Lynden.com> wrote:
>
>> Hi,
>> I am getting error when trying to compile 2.2.17 with ldap authentication support on Solaris 10 Sparc server.
>
> Insufficient information - I see more than one likely cause.
>
> First thing to do is to separate out the APR and APR-UTIL builds:
>
> 1. Build APR, run tests, and install
> 2. Do the same for APR-UTIL. This is where you'll have to configure
> ldap support, and get the most meaningful error messages if there's
> a problem.
> 3. Now build httpd using --with-apr and --with-apr-util pointing to
> what you just installed.
>
>> First, I download Mozilla ldap c-sdk
>
> That's not the 'usual' ldap. Not sure how well-supported it
> is, since I've not used it myself. But building apr-util and
> running its tests will tell you that - if it fails, try
> OpenLDAP and report back whether it makes a difference.
... or simply building against the bundled Solaris ldap client libs
which will be detected automatically.
Regards,
Rainer
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] help on compile 2.2.17 with ldap support
Posted by Rainer Jung <ra...@kippdata.de>.
On 24.12.2010 02:16, Nick Kew wrote:
> On Thu, 23 Dec 2010 16:16:48 -0800
> David Long<DL...@Lynden.com> wrote:
>
>> Hi,
>> I am getting error when trying to compile 2.2.17 with ldap authentication support on Solaris 10 Sparc server.
>
> Insufficient information - I see more than one likely cause.
>
> First thing to do is to separate out the APR and APR-UTIL builds:
>
> 1. Build APR, run tests, and install
> 2. Do the same for APR-UTIL. This is where you'll have to configure
> ldap support, and get the most meaningful error messages if there's
> a problem.
> 3. Now build httpd using --with-apr and --with-apr-util pointing to
> what you just installed.
>
>> First, I download Mozilla ldap c-sdk
>
> That's not the 'usual' ldap. Not sure how well-supported it
> is, since I've not used it myself. But building apr-util and
> running its tests will tell you that - if it fails, try
> OpenLDAP and report back whether it makes a difference.
... or simply building against the bundled Solaris ldap client libs
which will be detected automatically.
Regards,
Rainer
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] help on compile 2.2.17 with ldap support
Posted by Nick Kew <ni...@webthing.com>.
On Thu, 23 Dec 2010 16:16:48 -0800
David Long <DL...@Lynden.com> wrote:
> Hi,
> I am getting error when trying to compile 2.2.17 with ldap authentication support on Solaris 10 Sparc server.
Insufficient information - I see more than one likely cause.
First thing to do is to separate out the APR and APR-UTIL builds:
1. Build APR, run tests, and install
2. Do the same for APR-UTIL. This is where you'll have to configure
ldap support, and get the most meaningful error messages if there's
a problem.
3. Now build httpd using --with-apr and --with-apr-util pointing to
what you just installed.
> First, I download Mozilla ldap c-sdk
That's not the 'usual' ldap. Not sure how well-supported it
is, since I've not used it myself. But building apr-util and
running its tests will tell you that - if it fails, try
OpenLDAP and report back whether it makes a difference.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org