So I fanilly had time to check up on this topic :)
Lets start with the apache2ctl -V command:
Server version: Apache/2.2.8 (Ubuntu)
Server built: Nov 18 2010 21:19:17
Server's Module Magic Number: 20051115:11
Server loaded: APR 1.2.11, APR-Util 1.2.12
Compiled using: APR 1.2.11, APR-Util 1.2.12
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
I suppose the Server MPM: Prefork (you have Worker) might be the reason
why I couldn't get the mod_jk working earlier because apache is not set
up for using a worker as I was trying to?
Next the other apache info:
ii apache2 2.2.8-1ubuntu0.19
ii apache2-mpm-prefork 2.2.8-1ubuntu0.19
ii apache2-src 2.2.8-1ubuntu0.19
ii apache2-threaded-dev 2.2.8-1ubuntu0.19
ii apache2-utils 2.2.8-1ubuntu0.19
ii apache2.2-common 2.2.8-1ubuntu0.19
ii libapache2-mod-php5 5.2.4-2ubuntu5.17
Finally the beginning of the error-log I made when running make:
Making all in common
make[1]: Entering directory
`/var/www/tomcat-connectors-1.2.32-src/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/var/www/tomcat-connectors-1.2.32-src/native/common'
Making all in apache-2.0
make[1]: Entering directory
`/var/www/tomcat-connectors-1.2.32-src/native/apache-2.0'
/bin/sh ../libtool --mode=compile gcc -I/usr/src/apache2/include
-I/usr/src/apache2/srclib/apr/include -I/usr/src/apache2/os/unix
-I/usr/src/apache2/srclib/apr-util/include -DHAVE_CONFIG_H
-DUSE_APACHE_MD5 -I ../common -I /include -I /include/
-DHAVE_CONFIG_H -c mod_jk.c -o mod_jk.lo
gcc -I/usr/src/apache2/include -I/usr/src/apache2/srclib/apr/include
-I/usr/src/apache2/os/unix -I/usr/src/apache2/srclib/apr-util/include
-DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I ../common -I /include -I /include/
-DHAVE_CONFIG_H -c mod_jk.c -fPIC -DPIC -o .libs/mod_jk.o
In file included from mod_jk.c:29:
/usr/src/apache2/include/ap_config.h:25:17: error: apr.h: No such file
or directory
In file included from /usr/src/apache2/include/ap_config.h:26,
from mod_jk.c:29:
/usr/src/apache2/srclib/apr-util/include/apr_hooks.h:20:17: error:
apu.h: No such file or directory
In file included from
/usr/src/apache2/srclib/apr-util/include/apr_hooks.h:22,
from /usr/src/apache2/include/ap_config.h:26,
from mod_jk.c:29:
/usr/src/apache2/srclib/apr/include/apr_tables.h:25:17: error: apr.h: No
such file or directory
In file included from /usr/src/apache2/srclib/apr/include/apr_pools.h:38,
from /usr/src/apache2/srclib/apr/include/apr_tables.h:26,
from
/usr/src/apache2/srclib/apr-util/include/apr_hooks.h:22,
from /usr/src/apache2/include/ap_config.h:26,
from mod_jk.c:29:
/usr/src/apache2/srclib/apr/include/apr_errno.h: In function 'APR_DECLARE':
/usr/src/apache2/srclib/apr/include/apr_errno.h:52: error: expected
declaration specifiers before 'apr_strerror'
In file included from /usr/src/apache2/srclib/apr/include/apr_pools.h:39,
from /usr/src/apache2/srclib/apr/include/apr_tables.h:26,
from
/usr/src/apache2/srclib/apr-util/include/apr_hooks.h:22,
from /usr/src/apache2/include/ap_config.h:26,
from mod_jk.c:29:
/usr/src/apache2/srclib/apr/include/apr_general.h:68: error: storage
class specified for parameter 'apr_signum_t'
/usr/src/apache2/srclib/apr/include/apr_general.h:126: error: expected
declaration specifiers or '...' before 'size_t'
/usr/src/apache2/srclib/apr/include/apr_general.h:160: error: expected
declaration specifiers or '...' before 'size_t'
/usr/src/apache2/srclib/apr/include/apr_general.h:176: error: expected
declaration specifiers before 'APR_DECLARE'
/usr/src/apache2/srclib/apr/include/apr_general.h:190: error: expected
declaration specifiers before 'APR_DECLARE'
/usr/src/apache2/srclib/apr/include/apr_general.h:203: error: expected
declaration specifiers before 'APR_DECLARE_NONSTD'
/usr/src/apache2/srclib/apr/include/apr_general.h:214: error: expected
declaration specifiers before 'APR_DECLARE'
I hope someone is able to help me out :)
Kind regards
Casper
Den 26-08-2011 17:55, Christopher Schultz skrev:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Casper,
On 8/26/2011 2:50 AM, Casper Wandahl Schmidt wrote:
Well as I said in my first post configure complained about a
missing WebServer - maybe because I installed apache from apt-get
and not from source?
Hmm... I've never had to install the source. The headers are all that
are necessary (which come with apaache2-threaded-dev). I'll check on
my Debian system to see what I've got installed.
If I don't run make with sudo it complains about permissions,
probably because I unpacked the tar.gz with sudo so the directory
has root as owner. Or it might be because I uploaded the tar.gz
from ftp which puts it in a directory owned by the ftp user and not
my ssh user :)
Okay. You should chown everything and not run make as root, though.
Well I tried make> make.log but only the first few lines gets
written to the file, the rest is output to the shell.
Try:
$ make> make.log 2>&1
That redirects stderr to stdout, and then you already know what> does.
The first line I can see in the shell is mod_jk.c:692: error:
expected '=', ',', ';', 'asm' or '__attribute__' before
'get_content_length'
Hmm.
$ svn checkout https://svn.apache.org/repos/asf/tomcat/jk/tags/JK_1_2_32
$ cd JK_1_2_32/native
$ ./buildconf.sh (you don't need to do this if you didn't use svn)
$ which apxs2
/usr/bin/apxs2
$ ./configure --with-apxs=/usr/bin/apxs2
...
config.status: creating common/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory
That's not good. Trunk has the same problem. Yours didn't bomb this way?
Let's try to compile, anyway.
$ make
...
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `...../JK_1_2_32/native/apache-2.0'
Looks like it builds for me.
I'm on Debian Squeeze:
$ dpkg -l | grep apache2 \
| sed -e "s/^\([^ ]\+[ ]\+[^ ]\+[ ]\+[^ ]\+\).*/\1/"
ii apache2 2.2.16-6+squeeze1
ii apache2-mpm-worker 2.2.16-6+squeeze1
ii apache2-threaded-dev 2.2.16-6+squeeze1
ii apache2-utils 2.2.16-6+squeeze1
ii apache2.2-bin 2.2.16-6+squeeze1
ii apache2.2-common 2.2.16-6+squeeze1
$ /usr/sbin/apache2ctl -V
Server version: Apache/2.2.16 (Debian)
Server built: Mar 22 2011 20:56:34
Server's Module Magic Number: 20051115:24
Server loaded: APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"
Being a computer science student I really should be able to take
on tasks as compiling stuff myself. It is partly because I'm lazy
and partly because I don't have time to mess with compiling errors
like this that I haven't done anything like this before :) I bought
my fit-pc2 box about 2 years ago so I have only played a little
with Linux so far :) (being setting up stuff - crashing the server
by accident and starting all over again)
It's a good way to learn. Honestly, I wouldn't hire a developer onto
my team if they couldn't compile an OSS project from source.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk5XweQACgkQ9CaO5/Lv0PDupgCdGlKZNJCB+8MHYXcFraNQPKCY
0AcAnA2QKZJthSlJ2YXeohzEr6xUV3w4
=aTmZ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org