https://bz.apache.org/bugzilla/show_bug.cgi?id=63517

            Bug ID: 63517
           Summary: ./apachectl not working in AIX 7.2
           Product: Apache httpd-2
           Version: 2.4.39
          Hardware: Other
                OS: AIX
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: All
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 36632
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36632&action=edit
AIX_7.2 libs installed

./httpd -t or apachectl not working in AIX 7.2, IBM,8205-E6D

Steps followed :

PATH environment
Utilities like make and ar are in  /usr/bin and gcc is located in /usr/bin in
AIX.
Set your PATH
export  PATH=$PATH:/usr/bin

set “export CC=gcc”

Create a folder as build_apache and place httpd-2.4.39
Give rights recursively to httpd-2.4.39 folder as :
Give permission to any folder chmod -R 777 "folder name" 

Build openssl 
§   gunzip/extract(tar xvf) source into a desired location Source location -
http://www.openssl.org/source/

§   gzip –d openssl-tar.gz

§   tar  -xvf openssl-.tar

§   cd into openssl-

§   ./config shared  --prefix=/usr/local/ssl –openssldir=/usr/local/ssl

§   gmake

§   gmake install

Verify version, " /usr/local/ssl/bin/openssl version"

AIX-pcre

§   Download pcre from pcre.org
§   Put pcre in build_apache folder and do cd pcre

bash-4.3# cd /usr/local/build_apache/pcre-8.43
bash-4.3# ./configure --prefix=/usr/local/apache2/pcre
Make 
Make install

AIX-zlib

§   gunzip/extract(tar xvf) source into a desired location
§   cd into zlib
bash-4.3# cd /usr/local/zlib-1.2.11
bash-4.3# ./configure -prefix=/usr/local/apache2/zlib
Make 
Make install

AIX-http build 

§   gunzip/extract(tar xvf) source into a desired location     

§   Source location -http://httpd.apache.org/download.cgi#apache24

§   http://archive.apache.org/dist/httpd/

§    gzip –d httpd -2.4.39.tar.gz

§   tar  -xvf httpd -2.4.39.tar

§   cd into httpd-2.4.39

path before configure and make 
/usr/bin:/opt/freeware/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java6/jre/bin:/usr/java6/bin

make clean

./configure --prefix=/usr/local/apache2 --enable-ssl=shared
--enable-deflate=shared --enable-mods-shared=all --with-expat=builtin
--with-z=/usr/local/apache2/zlib --with-pcre=/usr/local/apache2/pcre
--with-ssl=/usr/local/ssl --with-apr=/usr/local/apr-httpd/
--with-apr-util=/usr/local/apr-util-httpd/ --enable-v4-mapped

make 

path before make install
/opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java6/jre/bin:/usr/java6/bin

make install .... works fine

cd /usr/local/apache2/bin
./httpd -t


Gives following error:

exec(): 0509-036 Cannot load program ./httpd because of the following errors:
rtld: 0712-001 Symbol __sync_fetch_and_add_8 was referenced
      from module /usr/local/apache2/lib/libapr-1.so(), but a runtime
definition
      of the symbol was not found.
rtld: 0712-001 Symbol __sync_fetch_and_sub_8 was referenced
      from module /usr/local/apache2/lib/libapr-1.so(), but a runtime
definition
      of the symbol was not found.
rtld: 0712-001 Symbol __sync_sub_and_fetch_8 was referenced
      from module /usr/local/apache2/lib/libapr-1.so(), but a runtime
definition
      of the symbol was not found.
rtld: 0712-001 Symbol __sync_val_compare_and_swap_8 was referenced
      from module /usr/local/apache2/lib/libapr-1.so(), but a runtime
definition
      of the symbol was not found.
rtld: 0712-001 Symbol __sync_lock_test_and_set_8 was referenced
      from module /usr/local/apache2/lib/libapr-1.so(), but a runtime
definition
      of the symbol was not found.


Please find the list of libraries installed in attachment.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to