You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Casper Wandahl Schmidt <ka...@gmail.com> on 2011/08/25 11:18:42 UTC

Cannot build mod_jk.1.2.32

Hi there

So I downloaded the mod_jk.1.2.32-src the other day because I couldn't 
get a binary for linux (ubuntu 8.04 to be exact). First I couldn't use 
the ./configure because it said no apxs given so I searched google and 
found out I needed apache2-threaded-dev - downloaded it and used 
--with-apxs2=/usr/sbin/apxs2. It then complained about no apache given 
and returned with the error: cannot find the WebServer (apache2.2 is 
installed from package with apt-get install apache2). I had to do 
apt-get install apache2-src, locate the tar.gz, unpack it and add the 
--with-apache=/usr/src/apache2 switch with the with-apxs2. I then 
managed to run the configure successful but when I try to do sudo make a 
whole bunch of warnings and errors occurs (mostly something like 
expected character "}" at end of input line) which means that I cannot 
build the mod_jk.so file :(

I should add that this is my first go on building something from source 
EVER so please be gentle :)

Am I missing something or what?

Kind regards
Casper

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Casper Wandahl Schmidt <ka...@gmail.com>.

Den 29-08-2011 12:47, Mladen Turk skrev:
> On 08/29/2011 11:46 AM, Casper Wandahl Schmidt wrote:
>>
>>
>> Anyway I was able to run make successfully and now I have the 
>> mod_jk.so :)
>>
>
> Cool.
>
>
>> Thank you all for your time and help. I might be back with questions 
>> on how to make the connector work at a later time :)
>
> Cannot wait for that one ;)
Sorry to disappoint you but I got it up and running with the tomcat 
examples in less than 10 minutes this time :) (I kept all the conf files 
etc. from my last try and only did minor changes)
>
>
> Cheers
Kind regards
Casper

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Mladen Turk <mt...@apache.org>.
On 08/29/2011 11:46 AM, Casper Wandahl Schmidt wrote:
>
>
> Anyway I was able to run make successfully and now I have the mod_jk.so :)
>

Cool.


> Thank you all for your time and help. I might be back with questions on how to make the connector work at a later time :)

Cannot wait for that one ;)


Cheers
-- 
^TM

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Casper Wandahl Schmidt <ka...@gmail.com>.

Den 29-08-2011 11:30, Mladen Turk skrev:
> On 08/29/2011 10:55 AM, Casper Wandahl Schmidt wrote:
>> 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)
>>
>> 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?
>>
>
> Nope.
Nice, then I should be able to make it work soon :)
>
>> 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:
>
> You don't need source packages.
> All you need are -dev packages.
> Then configure --with-apxs=/path/to/the/apxs(2)
As I think I said in the beginning ./configure complained about no 
apache and giving me an error about some source directory (can't 
remember the details)
>
>> 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,
>
> This happens since you forced the 'src' directory.
> Sources like name suggests contain sources, apr.h and apu.h are generated
> when you build the apr/apr-util (can be part of httpd build process)
> but you don't need to build the httpd. Your dist already have it.
>
>>>
>>> $ 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
>>>
>
> Note: Some distros don't have 2 sufix. It's just /xxx/yyy/apxs
> However seems Ubuntu has /usr/bin/apxs2
I tried removing my working directory and unpacking the tar.gz again. 
This time I did a chown before trying ./configure --with-apxs (leaving 
the 2 out)=/usr/bin/apxs2 - it still gave the "no apache given" 
"warning" but it actually did configure thinks correctly this time :) I 
don't know if it was because of the chown (ran ./configure as root 
before because the folder was owned by root:bin after unpacking with 
sudo tar ....) or because I changed --with-apxs2 to --with-apxs 
(although I believe I tried both before starting this thread because I 
only found the --with-apxs2 switch after searching google for days)

Anyway I was able to run make successfully and now I have the mod_jk.so :)

Thank you all for your time and help. I might be back with questions on 
how to make the connector work at a later time :)
>
>
>
>
> Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Mladen Turk <mt...@apache.org>.
On 08/29/2011 10:55 AM, Casper Wandahl Schmidt wrote:
> 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)
>
> 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?
>

Nope.

> 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:

You don't need source packages.
All you need are -dev packages.
Then configure --with-apxs=/path/to/the/apxs(2)

> 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,

This happens since you forced the 'src' directory.
Sources like name suggests contain sources, apr.h and apu.h are generated
when you build the apr/apr-util (can be part of httpd build process)
but you don't need to build the httpd. Your dist already have it.

>>
>> $ 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
>>

Note: Some distros don't have 2 sufix. It's just /xxx/yyy/apxs
However seems Ubuntu has /usr/bin/apxs2




Regards
-- 
^TM

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Casper Wandahl Schmidt <ka...@gmail.com>.
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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Casper Wandahl Schmidt <ka...@gmail.com>.

Den 25-08-2011 17:46, Christopher Schultz skrev:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Casper,
>
> On 8/25/2011 5:18 AM, Casper Wandahl Schmidt wrote:
>> So I downloaded the mod_jk.1.2.32-src the other day because I
>> couldn't get a binary for linux (ubuntu 8.04 to be exact).
> As you've found, you need apache2-threaded-dev package.
>
> I'm surprised that you needed the apache2-src package, though.
> apache2-threaded-dev should really be all you need.
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?
>
>> I then managed to run the configure successful but when I try to do
>> sudo make a whole bunch of warnings and errors occurs (mostly
>> something like expected character "}" at end of input line) which
>> means that I cannot build the mod_jk.so file :(
> You shouldn't run 'make' as root when just compiling. Maybe for
> installation, but not for just building. I don't ever use 'make
> install' unless the procedure is just impossible to understand.
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 :)
>
> Can you paste some of the error messages into your next reply? That
> would be helpful, especially if you post the very top of the output --
> since C compilers like to get tripped up on one little thing and then
> tell you that the entire source file is syntactically incorrect. :)
Well I tried make > make.log but only the first few lines gets written 
to the file, the rest is output to the shell. The first line I can see 
in the shell is mod_jk.c:692: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'get_content_length'

After that it goes on about lines with expected ')' before '*' token and 
other stuff like that.

I don't know how to see if there are any errors before the ones I just 
mentioned. Any tips are greatly appreciated :)
>
>> I should add that this is my first go on building something from
>> source EVER so please be gentle :)
> Thanks for not first complaining that no binary package exists, Apache
> should get off their butts, etc. Glad to see that someone has the
> courage to build mod_jk. It shouldn't be that hard to build it from
> source. I'm sorry you are having such trouble.
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)
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk5WblQACgkQ9CaO5/Lv0PAh7gCdH93YuLwHT6bbE7QB3gqWL3gc
> Ev4AnjzWPs/2Ieaw2xhBWfdQHXmLQ+44
> =0Dtc
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Cannot build mod_jk.1.2.32

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Casper,

On 8/25/2011 5:18 AM, Casper Wandahl Schmidt wrote:
> So I downloaded the mod_jk.1.2.32-src the other day because I
> couldn't get a binary for linux (ubuntu 8.04 to be exact).

As you've found, you need apache2-threaded-dev package.

I'm surprised that you needed the apache2-src package, though.
apache2-threaded-dev should really be all you need.

> I then managed to run the configure successful but when I try to do
> sudo make a whole bunch of warnings and errors occurs (mostly
> something like expected character "}" at end of input line) which
> means that I cannot build the mod_jk.so file :(

You shouldn't run 'make' as root when just compiling. Maybe for
installation, but not for just building. I don't ever use 'make
install' unless the procedure is just impossible to understand.

Can you paste some of the error messages into your next reply? That
would be helpful, especially if you post the very top of the output --
since C compilers like to get tripped up on one little thing and then
tell you that the entire source file is syntactically incorrect. :)

> I should add that this is my first go on building something from
> source EVER so please be gentle :)

Thanks for not first complaining that no binary package exists, Apache
should get off their butts, etc. Glad to see that someone has the
courage to build mod_jk. It shouldn't be that hard to build it from
source. I'm sorry you are having such trouble.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5WblQACgkQ9CaO5/Lv0PAh7gCdH93YuLwHT6bbE7QB3gqWL3gc
Ev4AnjzWPs/2Ieaw2xhBWfdQHXmLQ+44
=0Dtc
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org