Bug 45346 - Can not generate the mod_jk.so with apxs
Summary: Can not generate the mod_jk.so with apxs
Status: RESOLVED INVALID
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: Common (show other bugs)
Version: unspecified
Hardware: Other AIX
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-05 19:59 UTC by Aaron
Modified: 2008-10-05 03:10 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron 2008-07-05 19:59:39 UTC
Hi,

I configure the apache with follwing command:

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

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
Comment 1 Mark Thomas 2008-09-02 14:57:48 UTC
1.2.23 is quite old and has known issues for AIX although they may not be related to what you are seeing.

These types of issues are generally more often configuration issues rather than bugs so (as you may have deduced from the lack of response to this issue) Bugzilla is not the best place to seek help and advice. I suggest you try the users mailing list for assistance in the first instance.

If the fault finding there reaches the conclusion that this is a mod_jk bug then feel free to reopen this issue and add the details of the bug.