Operating System - HP-UX
1753543 Members
5618 Online
108795 Solutions
New Discussion юеВ

Re: Problem compiling Apache 2.2.11 with openssl support.

 
SOLVED
Go to solution

Re: Problem compiling Apache 2.2.11 with openssl support.

Hi,
I've just come to remove "yes" to liberrors value corresponding to my problem. The configuration step still look work.
Now I have a problem during compilation :

/bin/sh /Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/libtool --silent --mode=compile cc -Ae +Z +DAportable -mt -O +Onoprocelim -I/usr/local/include -DHAVE_CONFIG_H -DHPUX11 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE -O +Onoprocelim -I/usr/local/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util/include/private -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/include -I/usr/local/include -o uri/apr_uri.lo -c uri/apr_uri.c && touch uri/apr_uri.lo
/bin/sh /Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/libtool --silent --mode=compile cc -Ae +Z +DAportable -mt -O +Onoprocelim -I/usr/local/include -DHAVE_CONFIG_H -DHPUX11 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE -O +Onoprocelim -I/usr/local/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util/include/private -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/include -I/usr/local/include -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
cpp: "xml/apr_xml.c", line 35: error 4036: Can't open include file 'expat.h'.
gmake[3]: *** [xml/apr_xml.lo] Error 1
gmake[3]: Leaving directory `/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib'
gmake: *** [all-recursive] Error 1
Apache KO

But expat.h exists in my INCLUDE var and is present in the directory :

root@miahp052:/Datas/MIADZFR4/INSTALL_APACHE # find /bustools/apache/2.2.10/expat-2.0.1 -name expat.h -follow
/bustools/apache/2.2.10/expat-2.0.1/include/expat.h

Any idea ??

Re: Problem compiling Apache 2.2.11 with openssl support.

OK. I've just resolved the problem concerning the missing expat.h -> The Apache's configure call the apr-util's configure but before that, the path of my expat.h was disapeared of the apr-util's Makefile. I had to had it myself in the INCLUDE line.

I'm confronted to another problem but I will search myself this afternoon and come back here tomorrow. ;)

Re: Problem compiling Apache 2.2.11 with openssl support.

Hi all,

I have another little problem :) ... but I think that it will be the last one. When I compile Apache, I'm knocked into this error :

gmake[2]: Entering directory `/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/support'
/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/libtool --silent --mode=compile cc -Ae +Z +DAportable -mt -O +Onoprocelim -I/usr/local/include -DHPUX11 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE -O +Onoprocelim -I/usr/local/include -I/bustools/apache/2.2.10/renderproto-0.9.3/include -I/bustools/apache/2.2.10/gdbm-1.8.3/include -I/bustools/apache/2.2.10/expat-2.0.1/include -I/bustools/apache/2.2.10/zlib-1.2.3/include -I/bustools/apache/2.2.10/freetype-2.3.7/include -I/bustools/apache/2.2.10/gettext-0.17/include -I/bustools/apache/2.2.10/libiconv-1.12/include -I/bustools/apache/2.2.10/fontconfig-2.6.0/include -I/bustools/apache/2.2.10/tcltk-8.5.5/tcl/include -I/bustools/apache/2.2.10/tcltk-8.5.5/tk/include -I/bustools/apache/2.2.10/db-4.7.25/include -I/bustools/apache/2.2.10/openssl-0.9.8i/include -I/bustools/apache/2.2.10/apr-1.3.3/include -I/bustools/apache/2.2.10/apr-util-1.3.4/include -I/bustools/apache/2.2.10/apr-1.3.3/include/apr/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/pcre -I. -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/os/unix -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/server/mpm/worker -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/http -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/filters -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/proxy -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/generators -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/mappers -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/database -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util/include -I/usr/local/include -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/server -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/proxy/../generators -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/ssl -I/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/modules/dav/main -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/libtool --silent --mode=link cc -Ae +Z +DAportable -mt -O +Onoprocelim -I/usr/local/include -L/bustools/apache/2.2.10/zlib-1.2.3/lib -L/bustools/apache/2.2.10/openssl-0.9.8i/lib -L/usr/local/lib -L/usr/local/lib/hpux32 -Wl,+b -Wl,/usr/local/lib:/usr/local/lib/hpux32:/usr/local/apache2/lib -o htpasswd htpasswd.lo -lm /Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/pcre/libpcre.la /Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr-util/libaprutil-1.la /Datas/MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/libapr-1.la -lrt -lm -lpthread -ldld -L../srclib/apr/.libs
libtool: link: warning: this platform does not like uninstalled shared libraries
libtool: link: `htpasswd' will be relinked during installation
/usr/ccs/bin/ld: Unsatisfied symbols:
apr_generate_random_bytes (first referenced in .libs/htpasswd.o) (code)
gmake[2]: *** [htpasswd] Error 1
Dennis Handly
Acclaimed Contributor

Re: Problem compiling Apache 2.2.11 with openssl support.

>I'm knocked into this error:

You don't know where apr_generate_random_bytes is defined?

If you have a bunch of libs you can look at each with:
nm -pxAN path-to-libs/lib* | grep apr_generate_random_bytes
Shinji Teragaito_1
Respected Contributor

Re: Problem compiling Apache 2.2.11 with openssl support.

Hi Florian,

Let us know if libapr is generated or not.

Here's my libapr when building Apache + OpenSSL:

% ll srclib/apr/.libs
total 1250
-rw-r--r-- 1 shinji users 323236 Jan 7 17:21 libapr-1.a
lrwxr-xr-x 1 shinji users 14 Jan 7 17:21 libapr-1.la -> ../libapr-1.la
-rw-r--r-- 1 shinji users 1019 Jan 7 17:21 libapr-1.lai
lrwxr-xr-x 1 shinji users 15 Jan 7 17:21 libapr-1.sl -> libapr-1.sl.3.3
lrwxr-xr-x 1 shinji users 15 Jan 7 17:21 libapr-1.sl.3 -> libapr-1.sl.3.3
-rwxr-xr-x 1 shinji users 315392 Jan 7 17:21 libapr-1.sl.3.3
%

Regards,

Shinji

Re: Problem compiling Apache 2.2.11 with openssl support.

MIADZFR4/INSTALL_APACHE/src/sources/apache2-2.2.11/srclib/apr/.libs # ll
total 1244
-rw-r--r-- 1 root sys 319220 Jan 9 17:22 libapr-1.a
lrwxr-xr-x 1 root sys 14 Jan 9 17:22 libapr-1.la -> ../libapr-1.la
-rw-r--r-- 1 root sys 1735 Jan 9 17:22 libapr-1.lai
lrwxr-xr-x 1 root sys 15 Jan 9 17:22 libapr-1.sl -> libapr-1.sl.3.3
lrwxr-xr-x 1 root sys 15 Jan 9 17:22 libapr-1.sl.3 -> libapr-1.sl.3.3
-rwxr-xr-x 1 root sys 315392 Jan 9 17:22 libapr-1.sl.3.3


Generated...
Shinji Teragaito_1
Respected Contributor

Re: Problem compiling Apache 2.2.11 with openssl support.

Hi Florian,

I attempted to use the latest expat library like you.

NOTE: apr and apr-util have not been built prior to the Apache build
because Apache 2.2.11 has bundled the latest version.

Please refer to my steps in the attached file.

Best Regards,

Shinji
Shinji Teragaito_1
Respected Contributor

Re: Problem compiling Apache 2.2.11 with openssl support.

I failed to attach a file to my previous message.

I try again. Here you go.
Scott R Bell
New Member

Re: Problem compiling Apache 2.2.11 with openssl support.

Hi there. So far as I can tell, apr_generate_random_bytes is not defined anywhere that gets compiled. I see it in several source files inside of the apr directory of the Apache install, but not inside of any of the libraries.

Nothing here in this question seems to answer how to get past the problem during make when we get the unsatisfied symbols error. I am not trying to install expat (of any version) so that does not seem likely to be a problem. Has anyone had this error and been able to solve it?