Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Apache configuration error ( during make)

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


olive.2.deb at bt

Jun 25, 2012, 2:16 AM

Post #1 of 4 (991 views)
Permalink
Apache configuration error ( during make)

Hi,

I am getting an error while make-ing apache
cd /software/bea/apache/source/httpd-2.2.17/srclib/apr
./configure --prefix=/software/bea/apache/apache-apr
make
make install

cd /software/bea/apache/source/httpd-2.2.17/srclib/apr-util
./configure --prefix=/software/bea/apache/apache-apr-util --with-apr=/software/bea/apache/apache-apr
make
make install

cd /software/bea/apache/source/httpd-2.2.17

LDFLAGS=-L/software/bea/apache/source/openssl-1.0.1c/lib CPPFLAGS=-I/software/bea/apache/source/openssl-1.0.1c/include ./configure --prefix=/software/bea/apache/2.2.17 --with-apr=/software/bea/apache/apache-apr --with-apr-util=/software/bea/apache/apache-apr-util --enable-ssl --with-ssl=/software/bea/apache/source/openssl-1.0.1c

make
...
..
.
ns.la modules/mappers/libmod_userdir.la modules/mappers/libmod_alias.la modules/mappers/libmod_so.la server/mpm/prefork/libprefork.la os/unix/libos.la -lm /software/bea/apache/source/httpd-2.2.17/srclib/pcre/libpcre.la /software/bea/apache/apache-apr-util/lib/libaprutil-1.la -lexpat /software/bea/apache/apache-apr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o): In function `ssl_callback_ServerNameIndication':
/software/bea/apache/source/httpd-2.2.17/modules/ssl/ssl_engine_kernel.c:1980: undefined reference to `SSL_get_servername'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o): In function `ssl_find_vhost':
/software/bea/apache/source/httpd-2.2.17/modules/ssl/ssl_engine_kernel.c:2063: undefined reference to `SSL_set_SSL_CTX'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o): In function `ssl_hook_Fixup':
/software/bea/apache/source/httpd-2.2.17/modules/ssl/ssl_engine_kernel.c:1139: undefined reference to `SSL_get_servername'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o): In function `ssl_hook_ReadReq':
/software/bea/apache/source/httpd-2.2.17/modules/ssl/ssl_engine_kernel.c:120: undefined reference to `SSL_get_servername'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_vars.o): In function `ssl_var_lookup_ssl':
/software/bea/apache/source/httpd-2.2.17/modules/ssl/ssl_engine_vars.c:325: undefined reference to `SSL_get_servername'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/software/bea/apache/source/httpd-2.2.17'
make: *** [all-recursive] Error 1

Can anyone help?


mark at catseye

Jun 25, 2012, 4:44 AM

Post #2 of 4 (957 views)
Permalink
Re: Apache configuration error ( during make) [In reply to]

On June 25, 2012 5:16 , <olive.2.deb [at] bt> wrote:
>
> I am getting an error while make-ing apache
>
> cd /software/bea/apache/source/httpd-2.2.17/srclib/apr
>
> ./configure --prefix=/software/bea/apache/apache-apr
>

With Apache HTTP Server 2.2.x (unlike 2.4.x) you need to explicitly
enable mod_ssl. For example,

./configure --enable-modules=most --enable-mods-shared=most --enable-ssl
--prefix=/software/bea/apache/apache-apr

Please refer to the following two pages to choose the correct options
for what you actually want:

https://httpd.apache.org/docs/2.2/install.html#configure
https://httpd.apache.org/docs/2.2/programs/configure.html


If the above suggestion does not work, please look at the output of the
configure script, starting with the line "checking whether to enable
mod_ssl". For example, you should see something like this:

checking whether to enable mod_ssl... checking dependencies
checking for SSL/TLS toolkit base... none
checking for OpenSSL version... checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
OK
adding "-I/opt/local/include" to CPPFLAGS
adding "-I/opt/local/include" to INCLUDES
adding "-L/opt/local/lib" to LDFLAGS
forcing SSL_LIBS to "-lssl -lcrypto -lz "
setting LIBS to "-lssl -lcrypto -lz "
checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for SSLeay_version... yes
checking for SSL_CTX_new... yes
checking for ENGINE_init... yes
checking for ENGINE_load_builtin_engines... yes
checking for SSL_set_cert_store... no
forcing MOD_SSL_LDADD to "$(SSL_LIBS)"
checking whether Distcache is required... no (default)
adding "-export-symbols-regex" to MOD_SSL_LDADD
adding "ssl_module" to MOD_SSL_LDADD
checking whether to enable mod_ssl... shared (most)
adding "-I$(top_srcdir)/modules/ssl" to INCLUDES



> ns.la modules/mappers/libmod_userdir.la
> modules/mappers/libmod_alias.la modules/mappers/libmod_so.la
> server/mpm/prefork/libprefork.la os/unix/libos.la -lm
> /software/bea/apache/source/httpd-2.2.17/srclib/pcre/libpcre.la
> /software/bea/apache/apache-apr-util/lib/libaprutil-1.la -lexpat
> /software/bea/apache/apache-apr/lib/libapr-1.la -luuid -lrt -lcrypt
> -lpthread -ldl
>

You have the last part of the linker line, above. If the above
suggestions do not solve the problem, post the entire linker command
line, the relevant portion of the configure script output, and also
include what operating system you're using as well as the version of the
operating system.

I hope this helps.

--
Mark Montague
mark [at] catseye


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


olive.2.deb at bt

Jun 25, 2012, 7:10 AM

Post #3 of 4 (956 views)
Permalink
RE: Apache configuration error ( during make) [In reply to]

Hi,



Thanks for your reply



My Operating System:

Linux gwl09072appg004 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux



Relevant portion of my config.log

configure:14368: checking whether to enable mod_ssl

configure:14404: result: checking dependencies

configure:14413: checking for SSL/TLS toolkit base

configure:14440: result: /software/bea/apache/source/openssl-1.0.1c

configure:14535: checking for OpenSSL version

configure:14554: checking openssl/opensslv.h usability

configure:14571: gcc -c -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c >&5

configure:14578: $? = 0

configure:14592: result: yes

configure:14596: checking openssl/opensslv.h presence

configure:14611: gcc -E -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c

configure:14618: $? = 0

configure:14632: result: yes

configure:14660: checking for openssl/opensslv.h

configure:14669: result: yes

configure:14554: checking openssl/ssl.h usability

configure:14571: gcc -c -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c >&5

configure:14578: $? = 0

configure:14592: result: yes

configure:14596: checking openssl/ssl.h presence

configure:14611: gcc -E -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c

configure:14618: $? = 0

configure:14632: result: yes

configure:14660: checking for openssl/ssl.h

configure:14669: result: yes

configure:14713: gcc -c -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c >&5

configure:14720: $? = 0

configure:14725: result: OK

configure:15093: checking openssl/engine.h usability

configure:15110: gcc -c -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include conftest.c >&5

configure:15117: $? = 0

configure:15131: result: yes

configure:15135: checking openssl/engine.h presence

configure:15150: gcc -E -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include conftest.c

configure:15157: $? = 0

configure:15171: result: yes

configure:15199: checking for openssl/engine.h

configure:15208: result: yes

configure:15228: checking for SSLeay_version

configure:15284: gcc -o conftest -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include -L/software/bea/apache/source/openssl-1.0.1c/lib -L/usr/kerberos/lib64 conftest.c -lm -lssl -lcrypto -ldl -lz >&5

configure:15291: $? = 0

configure:15313: result: yes

configure:15228: checking for SSL_CTX_new

configure:15284: gcc -o conftest -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include -L/software/bea/apache/source/openssl-1.0.1c/lib -L/usr/kerberos/lib64 conftest.c -lm -lssl -lcrypto -ldl -lz >&5

configure:15291: $? = 0

configure:15313: result: yes

configure:15332: checking for ENGINE_init

configure:15388: gcc -o conftest -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include -L/software/bea/apache/source/openssl-1.0.1c/lib -L/usr/kerberos/lib64 conftest.c -lm -lssl -lcrypto -ldl -lz >&5

configure:15395: $? = 0

configure:15417: result: yes

configure:15332: checking for ENGINE_load_builtin_engines

configure:15388: gcc -o conftest -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include -L/software/bea/apache/source/openssl-1.0.1c/lib -L/usr/kerberos/lib64 conftest.c -lm -lssl -lcrypto -ldl -lz >&5

configure:15395: $? = 0

configure:15417: result: yes

configure:15640: checking for SSL_set_cert_store

configure:15696: gcc -o conftest -g -O2 -pthread -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include -L/software/bea/apache/source/openssl-1.0.1c/lib -L/usr/kerberos/lib64 conftest.c -lm -lssl -lcrypto -ldl -lz >&5

/tmp/ccOn6xN7.o: In function `main':

/software/bea/apache/source/httpd-2.2.17/conftest.c:83: undefined reference to `SSL_set_cert_store'

collect2: ld returned 1 exit status

configure:15703: $? = 1

configure: failed program was:

| /* confdefs.h. */

| #define PACKAGE_NAME ""

| #define PACKAGE_TARNAME ""

| #define PACKAGE_VERSION ""

| #define PACKAGE_STRING ""



-----Original Message-----
From: Mark Montague [mailto:mark [at] catseye]
Sent: Monday, June 25, 2012 5:14 PM
To: users [at] httpd
Cc: Deb,O,Olive,DKC C
Subject: Re: [users [at] http] Apache configuration error ( during make)



On June 25, 2012 5:16 , <olive.2.deb [at] bt> wrote:

>

> I am getting an error while make-ing apache

>

> cd /software/bea/apache/source/httpd-2.2.17/srclib/apr

>

> ./configure --prefix=/software/bea/apache/apache-apr

>



With Apache HTTP Server 2.2.x (unlike 2.4.x) you need to explicitly

enable mod_ssl. For example,



./configure --enable-modules=most --enable-mods-shared=most --enable-ssl

--prefix=/software/bea/apache/apache-apr



Please refer to the following two pages to choose the correct options

for what you actually want:



https://httpd.apache.org/docs/2.2/install.html#configure

https://httpd.apache.org/docs/2.2/programs/configure.html





If the above suggestion does not work, please look at the output of the

configure script, starting with the line "checking whether to enable

mod_ssl". For example, you should see something like this:



checking whether to enable mod_ssl... checking dependencies

checking for SSL/TLS toolkit base... none

checking for OpenSSL version... checking openssl/opensslv.h usability... yes

checking openssl/opensslv.h presence... yes

checking for openssl/opensslv.h... yes

checking openssl/ssl.h usability... yes

checking openssl/ssl.h presence... yes

checking for openssl/ssl.h... yes

OK

adding "-I/opt/local/include" to CPPFLAGS

adding "-I/opt/local/include" to INCLUDES

adding "-L/opt/local/lib" to LDFLAGS

forcing SSL_LIBS to "-lssl -lcrypto -lz "

setting LIBS to "-lssl -lcrypto -lz "

checking openssl/engine.h usability... yes

checking openssl/engine.h presence... yes

checking for openssl/engine.h... yes

checking for SSLeay_version... yes

checking for SSL_CTX_new... yes

checking for ENGINE_init... yes

checking for ENGINE_load_builtin_engines... yes

checking for SSL_set_cert_store... no

forcing MOD_SSL_LDADD to "$(SSL_LIBS)"

checking whether Distcache is required... no (default)

adding "-export-symbols-regex" to MOD_SSL_LDADD

adding "ssl_module" to MOD_SSL_LDADD

checking whether to enable mod_ssl... shared (most)

adding "-I$(top_srcdir)/modules/ssl" to INCLUDES







> ns.la modules/mappers/libmod_userdir.la

> modules/mappers/libmod_alias.la modules/mappers/libmod_so.la

> server/mpm/prefork/libprefork.la os/unix/libos.la -lm

> /software/bea/apache/source/httpd-2.2.17/srclib/pcre/libpcre.la

> /software/bea/apache/apache-apr-util/lib/libaprutil-1.la -lexpat

> /software/bea/apache/apache-apr/lib/libapr-1.la -luuid -lrt -lcrypt

> -lpthread -ldl

>



You have the last part of the linker line, above. If the above

suggestions do not solve the problem, post the entire linker command

line, the relevant portion of the configure script output, and also

include what operating system you're using as well as the version of the

operating system.



I hope this helps.



--

Mark Montague

mark [at] catseye


mark at catseye

Jun 25, 2012, 12:35 PM

Post #4 of 4 (946 views)
Permalink
Re: Apache configuration error ( during make) [In reply to]

On June 25, 2012 10:10 , <olive.2.deb [at] bt> wrote:
>
> configure:15640: checking for SSL_set_cert_store
>
> configure:15696: gcc -o conftest -g -O2 -pthread
> -I/software/bea/apache/source/openssl-1.0.1c/include -DLINUX=2
> -D_REENTRANT -D_GNU_SOURCE -I/usr/kerberos/include
> -L/software/bea/apache/source/openssl-1.0.1c/lib -L/usr/kerberos/lib64
> conftest.c -lm -lssl -lcrypto -ldl -lz >&5
>
> /tmp/ccOn6xN7.o: In function `main':
>
> /software/bea/apache/source/httpd-2.2.17/conftest.c:83*: undefined
> reference to `SSL_set_cert_store'*
>
> *collect2: ld returned 1 exit status*
>

Could it be this?

https://issues.apache.org/bugzilla/show_bug.cgi?id=39913

If so, try one of the solutions listed in the ticket:

* Recompile OpenSSL without zlib support; or,

* Make the LIBS / LDFLAGS / SSL_LIBS / MOD_DEFLATE_LDADD modifications
described in the 2006-11-26 comment.

* (if both of the above fail) Make sure that OpenSSL and Apache HTTP
Server are both compiled using the same compiler.


--
Mark Montague
mark [at] catseye

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.