Author |
|
sasi1503
Joined: 18 Jun 2012 Posts: 5 Location: USA,CT
|
Posted: Mon 18 Jun '12 18:34 Post subject: Compilation problem with Apache configuration & LDAP |
|
|
Hi,
We are trying to compile Apache with LDAP and followed below steps for the LDAP configuration followed by compilation.
Configure:
Code: |
./configure --prefix=/Volumes/app/apache2.2/httpd-2.2.22 --enable-threads --enable-other-child - apr
./configure --prefix=/Volumes/app/apache2.2/httpd-2.2.22 --with-apr=../apr --with-ldap-lib=/usr/lib --with-ldap-include=/usr/include --with-ldap=ldap - apr-util
./configure --enable-ldap --enable-authnz-ldap --with-included-apr
Errors:
nawk -f /Volumes/app/apache2.2/httpd-2.2.22/build/make_exports.awk `cat export_files` > exports.c
/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/Volumes/app/apache2.2/httpd-2.2.22/srclib/pcre -I. -I/Volumes/app/apache2.2/httpd-2.2.22/os/unix -I/Volumes/app/apache2.2/httpd-2.2.22/server/mpm/prefork -I/Volumes/app/apache2.2/httpd-2.2.22/modules/http -I/Volumes/app/apache2.2/httpd-2.2.22/modules/filters -I/Volumes/app/apache2.2/httpd-2.2.22/modules/proxy -I/Volumes/app/apache2.2/httpd-2.2.22/include -I/Volumes/app/apache2.2/httpd-2.2.22/modules/generators -I/Volumes/app/apache2.2/httpd-2.2.22/modules/mappers -I/Volumes/app/apache2.2/httpd-2.2.22/modules/database -I/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr/include -I/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util/include -I/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util/xml/expat/lib -I/Volumes/app/apache2.2/httpd-2.2.22/modules/proxy/../generators -I/Volumes/app/apache2.2/httpd-2.2.22/modules/ssl -I/Volumes/app/apache2.2/httpd-2.2.22/modules/dav/main -prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:1800: error: redefinition of 'ap_hack_ap_basic_http_header'
exports.c:1681: error: previous definition of 'ap_hack_ap_basic_http_header' was here
exports.c:1801: error: redefinition of 'ap_hack_ap_send_http_trace'
exports.c:1682: error: previous definition of 'ap_hack_ap_send_http_trace' was here
exports.c:1802: error: redefinition of 'ap_hack_ap_send_http_options'
exports.c:1263: error: previous definition of 'ap_hack_apr_version_string' was here
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/server'
make: *** [all-recursive] Error 1.
|
How can I get rid of the above errors?.
Thanks in advance for any suggestions.
Thanks,
Sasi |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 18 Jun '12 22:55 Post subject: |
|
|
Did you run the configure 3 times with different configurations and than make?
e.g.
Code: |
./configure
./configure
./configure
make
|
Did you download apr, apr-util and apr-iconv or did your install it on your system? Which OS do you run? |
|
Back to top |
|
sasi1503
Joined: 18 Jun 2012 Posts: 5 Location: USA,CT
|
Posted: Tue 19 Jun '12 6:08 Post subject: Apache compilation problem with LDAP |
|
|
Yes Blond..I have used configure like this 3 times.
./configure --prefix=/Volumes/app/apache2.2/httpd-2.2.22 --enable-threads --enable-other-child - apr
./configure --prefix=/Volumes/app/apache2.2/httpd-2.2.22 --with-apr=../apr --with-ldap-lib=/usr/lib --with-ldap-include=/usr/include --with-ldap=ldap - apr-util
./configure --enable-ldap --enable-authnz-ldap --with-included-apr
after that i tried to build using 'make' and got export.c error.
Also i never tried to download 'apr, apr-util and apr-iconv.it comes along with apache installation.
Do you want me to install this 3 things seperately.
apr,
apr-util
and apr-iconv
if so,please provide me the url to download
Thanks,
Sasi |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 19 Jun '12 10:35 Post subject: |
|
|
First thing is, that you need to run the configure only ONCE with all paramters. Elsewise the the compile configuration is only from the last configure run.
You don't need to install apr,apr-util and apr-iconv. Depending on your system you could. But for having the last version download it. You find the three downloads on http://apr.apache.org/download.cgi
It also does not hurt to have pcre
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.zip and zlib http://zlib.net/zlib-1.2.7.tar.gz
Unpack all into the srclib folder an remove the numbers in the folder names. Folder layout should be like
Code: |
/home/username/apache22/
/home/username/apache22/srclib/
\zlib
\apr
\apr-util
\apr-iconv
\pcre
|
than
Code: |
./buildconf
./configure --with-all_your_paramsmetes
make
sudo make install
|
If you still have a question please ask again. |
|
Back to top |
|
sasi1503
Joined: 18 Jun 2012 Posts: 5 Location: USA,CT
|
Posted: Tue 19 Jun '12 20:32 Post subject: Apache error |
|
|
Thanks for your quick response Blond !
I have followed your steps and made some progress and the previous errors gone now and am getting new errors as below:
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
configure failed for srclib/apr-util
Thanks,
Sasi |
|
Back to top |
|
sasi1503
Joined: 18 Jun 2012 Posts: 5 Location: USA,CT
|
Posted: Tue 19 Jun '12 23:54 Post subject: Apache error |
|
|
Hi Blond,
I have somehow get rid of the above errors and configure statement is working fine now and while doing 'make' am getting the below error mesg:
make[3]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr'
make[2]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr'
Making all in apr-util
make[2]: Entering directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util'
Making all in xml/expat
make[3]: Entering directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util/xml/expat'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util/xml/expat'
make[3]: Entering directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util'
sed 's,^\(location=\).*$,\1installed,' < apu-1-config > apu-config.out
make[3]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util'
make[2]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/apr-util'
Making all in pcre
make[2]: Entering directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/pcre'
Makefile:21: *** missing separator. Stop.
make[2]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib/pcre'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Volumes/app/apache2.2/httpd-2.2.22/srclib'
make: *** [all-recursive] Error 1
Could you please help me with the above errors.
Thanks,
Sasi |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 20 Jun '12 10:45 Post subject: |
|
|
That looks fine. Only pcre did not compile. So I think you should try to install pcre on your system and delete the one in your srclib folder. I had such a problem with one of my distros, too.
By the way you didn't tell which Linux distro you are using yet |
|
Back to top |
|
sasi1503
Joined: 18 Jun 2012 Posts: 5 Location: USA,CT
|
Posted: Wed 20 Jun '12 14:23 Post subject: Apache error |
|
|
Thanks James for your suggestions
I renamed the previous pcre file and installed the new one from the below sites
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.zip
after that only i got this error.please let me know your suggestion on this.
In between we are using the following version
SunOS amrndhs124 5.10 Generic_144488-04 sun4u sparc SUNW,Sun-Fire-V490
Thanks,
Sasi |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 23 Jun '12 10:02 Post subject: |
|
|
I haven't done anything with a sunOS yet.
However. On one of my debian boxes I had to install pcre on the system. e.g. sudo apt-get install pcre
Than there was no need to have pcre in the srclib folder. |
|
Back to top |
|