Discussion:
Compiling Error with Apache 2.4.10 on Solaris 9
(too old to reply)
SRINIVAS UNDAPALLI
2014-07-25 12:56:50 UTC
Permalink
Hi Experts,

Please shed some light here.

Getting this below error, while compiling Apache 2.4.10(2.4.*) on Solaris 9. Also i tried adding this patch r1442409(modules/filtersmod_proxy_html.c). Here used Packages are apr1.5.1, apr-util-1.5.3, pcre8.35 and openssl1.0.1h

I exported 64-bit libraries to install Apache in 64-bit else Apache is installing with 32-bit libraries. I installed 2.2.27 in same process before trying with 2.4.10

/local/apache/2.4.10/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/include/libxml2 -pthreads -m64 -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/include -I. -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/os/unix -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/include -I/local/apache/2.4.10/apr/include/apr-1 -I/local/apache/2.4.10/apr-util/include/apr-1 -I/local/apache/2.4.10/pcre/include -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/aaa -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/cache -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/core -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/database -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/filters -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/ldap -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/server -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/loggers -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/lua -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/proxy -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/session -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/ssl -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/test -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/server -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/arch/unix -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/dav/main -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/generators -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/mappers -prefer-pic -c mod_proxy_html.c && touch mod_proxy_html.slo
mod_proxy_html.c: In function `pstartElement':
mod_proxy_html.c:407: error: structure has no member named `attrs_req'
mod_proxy_html.c:408: error: structure has no member named `attrs_req'
mod_proxy_html.c:415: warning: implicit declaration of function `htmlAttrAllowed'
mod_proxy_html.c:416: error: `HTML_INVALID' undeclared (first use in this function)
mod_proxy_html.c:416: error: (Each undeclared identifier is reported only once
mod_proxy_html.c:416: error: for each function it appears in.)
mod_proxy_html.c:421: error: `HTML_DEPRECATED' undeclared (first use in this function)
mod_proxy_html.c:426: error: `HTML_REQUIRED' undeclared (first use in this function)
mod_proxy_html.c: In function `proxy_html_filter':
mod_proxy_html.c:859: error: `XML_PARSE_RECOVER' undeclared (first use in this function)
mod_proxy_html.c:859: error: `XML_PARSE_NONET' undeclared (first use in this function)
mod_proxy_html.c:860: error: `XML_PARSE_NOBLANKS' undeclared (first use in this function)
mod_proxy_html.c:860: error: `XML_PARSE_NOERROR' undeclared (first use in this function)
mod_proxy_html.c:860: error: `XML_PARSE_NOWARNING' undeclared (first use in this function)
mod_proxy_html.c:930: warning: implicit declaration of function `xmlCtxtUseOptions'
*** Error code 1
make: Fatal error: Command failed for target `mod_proxy_html.slo'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/filters
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/filters
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
d***@gmail.com
2014-10-28 15:37:16 UTC
Permalink
Steps to Build and install latest Apache httpd-2.4.10 with the latest OpenSSL openssl-1.0.1j on Solaris 10.

(1) Download following software
openssl-1.0.1j.tar.gz
httpd-2.4.10.tar.gz
apr-1.5.1.tar.gz
apr-util-1.5.4.tar.gz
pcre-8.36.tar.gz

(2) Verify Make and CC
By default
gcc is at /usr/sfw/bin/gcc
make is at /usr/ccs/bin/make

Include following in the PATH
usr/local/ssl/bin:/usr/sfw/bin:/usr/local/bin:/usr/ccs/bin

Include following in the LD_LIBRARY_PATH
/usr/local/lib:/usr/local/ssl/lib

(3) Build and install openssl-1.0.1j
Unzip and un-tar openssl-1.0.1j.tar.gz to /usr/local/openssl-1.0.1j
Execute following commands in order. The shared parameter is very important so that it can be linked with httpd-2.4.10 build for SSL enabling.

$ cd /usr/local/openssl-1.0.1j
$ ./config shared
$ make
$ make test
$ make install

By default it installs openssl at /usr/local/ssl

(4) Install pcre-8.36
Unzip and un-tar pcre-8.36.tar.gz to /usr/local/ pcre-8.36

Execute following commands in order
$ cd /usr/local/ pcre-8.36
$ ./configure
$ make
$ make install

By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc.

(5) Build and install httpd-2.4.10

Unzip and un-tar httpd-2.4.10.tar.gz to /usr/local/ httpd-2.4.10

Unzip and un-tar apr-1.5.1.tar.gz to /usr/local/ httpd-2.4.10/srclib
Rename /usr/local/ apr-1.5.1 to /usr/local/ apr

Unzip and un-tar apr-util-1.5.4.tar.gz to /usr/local/ httpd-2.4.10/srclib
Rename /usr/local/apr-util to /usr/local/ apr-util

Execute following commands in order
$ ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-so -enable-ssl=shared --with-ssl=/usr/local/ssl
$ make
$ make install

It installs it at /usr/local/apache2

The installation is complete.To enable SSL and Proxy, Update /usr/local/apache2/conf/ httpd.conf with uncommentting following lines

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_express_module modules/mod_proxy_express.so

LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule ssl_module modules/mod_ssl.so

Include conf/extra/httpd-ssl.conf

Now you can work on httpd-ssl.conf as you usually do to complete your configuration
Post by SRINIVAS UNDAPALLI
Hi Experts,
Please shed some light here.
Getting this below error, while compiling Apache 2.4.10(2.4.*) on Solaris 9. Also i tried adding this patch r1442409(modules/filtersmod_proxy_html.c). Here used Packages are apr1.5.1, apr-util-1.5.3, pcre8.35 and openssl1.0.1h
I exported 64-bit libraries to install Apache in 64-bit else Apache is installing with 32-bit libraries. I installed 2.2.27 in same process before trying with 2.4.10
/local/apache/2.4.10/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/include/libxml2 -pthreads -m64 -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/include -I. -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/os/unix -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/include -I/local/apache/2.4.10/apr/include/apr-1 -I/local/apache/2.4.10/apr-util/include/apr-1 -I/local/apache/2.4.10/pcre/include -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/aaa -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/cache -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/core -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/database -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/filters -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/ldap -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/server -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/loggers -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/lua -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/proxy -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/session -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/ssl -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/test -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/server -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/arch/unix -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/dav/main -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/generators -I/local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/mappers -prefer-pic -c mod_proxy_html.c && touch mod_proxy_html.slo
mod_proxy_html.c:407: error: structure has no member named `attrs_req'
mod_proxy_html.c:408: error: structure has no member named `attrs_req'
mod_proxy_html.c:415: warning: implicit declaration of function `htmlAttrAllowed'
mod_proxy_html.c:416: error: `HTML_INVALID' undeclared (first use in this function)
mod_proxy_html.c:416: error: (Each undeclared identifier is reported only once
mod_proxy_html.c:416: error: for each function it appears in.)
mod_proxy_html.c:421: error: `HTML_DEPRECATED' undeclared (first use in this function)
mod_proxy_html.c:426: error: `HTML_REQUIRED' undeclared (first use in this function)
mod_proxy_html.c:859: error: `XML_PARSE_RECOVER' undeclared (first use in this function)
mod_proxy_html.c:859: error: `XML_PARSE_NONET' undeclared (first use in this function)
mod_proxy_html.c:860: error: `XML_PARSE_NOBLANKS' undeclared (first use in this function)
mod_proxy_html.c:860: error: `XML_PARSE_NOERROR' undeclared (first use in this function)
mod_proxy_html.c:860: error: `XML_PARSE_NOWARNING' undeclared (first use in this function)
mod_proxy_html.c:930: warning: implicit declaration of function `xmlCtxtUseOptions'
*** Error code 1
make: Fatal error: Command failed for target `mod_proxy_html.slo'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/filters
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules/filters
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10/modules
*** Error code 1
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /local/apachepackages/apache2.4.10packages/httpd-2.4.10
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Loading...