Hi Justin,
Justin Vassallo schrieb:
Thank you that helped. I got gnumake installed and configure worked fine.
(had to chmod 700 configure and scripts/build/instdso.sh)
No, I think you are still using the wrong source download. In the tar.gz
download of mod_jk 1.2.26 configure is already executable.
Now getting this warning, otherwise .so being created ok:
Warning! dlname not found in
/local/home/ixops3/tomcat-connectors-1.2.26-src/tomcat-connectors-1.2.26-src
/native/apache-2.0/mod_jk.la.
I did the build myself too on Solaris 10 x86. I get no such warning.
My .la file conta9ins a dlname:
myhost% cat apache-2.0/mod_jk.la
# mod_jk.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18
22:14:06)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='mod_jk.so'
...
However, apache is not liking it...
httpd: Syntax error on line 412 of
/local/apache/apache2.2.8/conf/httpd.conf: Cannot load
/local/apache/apache2.2.8/modules/mod_jk.so into server: ld.so.1: httpd:
fatal: /local/apache/apache2.2.8/modules/mod_jk.so: wrong ELF data format:
ELFDATA2MSB
It does load my file and the file command tells me, that m module is a
myhost% file apache-2.0/mod_jk.so
apache-2.0/mod_jk.so: ELF 32-bit LSB dynamic lib 80386 Version 1,
dynamically linked, not stripped
I first build httpd with
./configure --with-included-apr --prefix=/my/install/dir --enable-so
--enable-modules=all --enable-mods-shared=all
Before calling configure I set the env var MAKE to gmake.
After building and installing Apache httpd, I added the lib directory of
httpd and /usr/sfw/lib to LD_LIBRARY_PATH:
LD_LIBRARY_PATH=/my/install/dir/lib:/usr/sfw/lib
export LD_LIBRARY_PATH
and then I do
./configure --with-apxs=/my/install/dir/bin/apxs
inside the mod_jk native directory and then gmake and gmake install.
That's it. No errors.
Thanks - j
PS - it was Re since I had posted this before I became a user, and forwarded
once I joined
Regards,
Rainer
-----Original Message-----
From: Rainer Jung [mailto:[EMAIL PROTECTED]
Sent: 10 March 2008 17:53
To: Tomcat Users List
Subject: Re: building mod_jk failing
Justin Vassallo wrote:
Hello,
I am trying to build mod_jk on Solaris 10 x86, which unfortunately is not
available in binary form.
I dlded Apache source and built using:
$ PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin
$ export PATH SH_LIBS
$ ./configure --with-included-apr
--prefix=/usr/local/apache/httpd-2.2.8 --enable-so --enable-mods
-shared=ssl
--enable-ssl --enable-module=rewrite --enable-shared=rewrite
I then dlded mod_jk source, cd native, then tried to build using the apxs
from the Apache i just built from source. I am getting a general error
which
is not helping me to identify the problem.
Where can i look to get more information? thanks
# ./configure --with-apxs=/local/apache/apache2.2.8/bin/apxs
: bad interpreter: No such file or directory
Not sure, why your mail subject starts with "Re:", I couldn't find any
previous mails in this thread.
configure is a shell script. From the error I would guess, that you
downloaded the zip source and not the tarball format. The zip file
contains DOS files, so configure and many other files have DOS line
endings and using those shell scripts gives an error, because /bin/sh^M
is not an existing shell.
If I'm right about the zip download, simply choose the .tar.gz download,
which should work. Are we talking about mod_jk 1.2.26?
Please also make sure, that you are using the make/gmake in /usr/sfw/bin
and not the Solaris make in /usr/ccs/bin.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]