You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/07/03 07:18:25 UTC

DO NOT REPLY [Bug 45329] New: Can not load module libaprutil-0.so on AIX

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

           Summary: Can not load module libaprutil-0.so on AIX
           Product: Apache httpd-2
           Version: 2.0.59
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Runtime Config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mingzhao.chen@hingesoftware.com
        Depends on: 40579


Hi,

I configure the Apache 2.0.59 on AIX with the following command:
./configure --prefix=/home/viador/apache2 --enable-so --enable-ssl
--with-ssl=/usr/local/ssl --with-expat=builtin

Then I copy the apache dist on the other AIX machine and modify the necessary
environment,such as the old PREFIX path (/home/viador/apache2) in the
apachectl,apxs,httpd.conf,ssl.conf,to new
PREFIX(/export/home/oracle/apache2).But I get the following error when I run
the apachectl:

Could not load program /export/home/oracle/apache2/bin/httpd:
Could not load module /export/home/oracle/apache2/lib/libaprutil-0.so.
        Dependent module /home/viador/apache2/lib/libexpat.a(libexpat.so.0)
could not be loaded.
Could not load module /home/viador/apache2/lib/libexpat.a(libexpat.so.0).
System error: No such file or directory
Could not load module httpd.
        Dependent module /export/home/oracle/apache2/lib/libaprutil-0.so could
not be loaded.
Could not load module .

Aaron,
2008-07-03


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45329] Can not load module libaprutil-0.so on AIX

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45329


Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #2 from Eric Covener <co...@gmail.com>  2009-05-25 07:38:23 PST ---
Original issue: You have to set the native shared library path if you want to
move files around. This report turned into a question about building mod_jk --
it belongs on a user-support forum not in a bug.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45329] Can not load module libaprutil-0.so on AIX

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45329


Aaron <mi...@hingesoftware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mingzhao.chen@hingesoftware.
                   |                            |com




--- Comment #1 from Aaron <mi...@hingesoftware.com>  2008-07-05 19:48:51 PST ---
Hi,

This problem has been resolved.When you configure the apache,you can add the
flag of '--enable-shared=no'.

$./configure --prefix=/home/viador/apache2 --enable-so --enable-ssl
--with-ssl=/usr/local/ssl --with-expat=builtin --enable-shared=no
$make
$make install

In this way, you can move the apache to other directory or other AIX
machine,but you should modify the PREFIX path in some files.

But I want to generate the mod_jk.so with tomcat-connectors-1.2.23-src:
In the directory tomcat-connectors-1.2.23-src
$cd native
$./configure --with-apxs=/home/viador/apache2/bin/apxs
$cd apache-2.0
$make
$make install

There are some errors when execute the 'make install':

Installing files to Apache Modules Directory...
        /home/viador/apache2/bin/apxs -i mod_jk.la
/home/viador/apache2/build/instdso.sh
SH_LIBTOOL='/home/viador/apache2/build/libtool' mod_jk.la
/home/viador/apache2/modules
rm -f /home/viador/apache2/modules/mod_jk.so
/home/viador/apache2/build/libtool --mode=install cp mod_jk.la /
home/viador/apache2/modules/
cp .libs/mod_jk.lai /home/viador/apache2/modules/mod_jk.la
cp .libs/mod_jk.a /home/viador/apache2/modules/mod_jk.a
ranlib /home/viador/apache2/modules/mod_jk.a
chmod 644 /home/viador/apache2/modules/mod_jk.a

Libraries have been installed in:
   /home/viador/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LIBPATH' environment variable
     during execution
   - use the `-Wl,-blibpath:LIBDIR:/home/viador/apache2/lib:/hom
e/sybase125/product/OCS-12_5/lib:/home/sybase125/product/ASE-12_5/lib:/home/syba
se125/product/FTS-12_5/lib:/usr/lib:/lib:/export/home/dbase/DB28/db2inst2/sqllib
/lib ' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

Warning!  dlname not found in /home/viador/apache2/modules/mod_jk.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /home/viador/apache2/modules/mod_jk.so
chmod: /home/viador/apache2/modules/mod_jk.so: A file or directo
ry in the path name does not exist.
apxs:Error: Command failed with rc=65536
make: 1254-004 The error code from the last command is 1.

But when configure the apahce without the flag of '--enable-shared=no',the
mod_jk.so can generate and the apache can work will with the tomcat.Could you
tell me what's the mater?Thanks a lot.

Aaron,
2008-07-06


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org