Re: Error configuring JK2

2004-01-29 Thread OUTTERS Guillaume
Ralf Schneider wrote:

 configure: error: Invalid location for apxs: 
'/usr/local/apache2/bin/apxs'

Looking at the configure file, it could be that your apxs is not 
executable (copied by FTP?).

If you manage to get over this problem, I had two other ones on Solaris 
9. The first seems to be a system-dependant problem (default shell), 
there are two if ! ${TEST} in configure.in which I replaced by if 
${TEST} !. The second one is an inconsistance between jk_ws.m4 (macros 
for generating the configure) and its uses: JK_WS_INCDIR needs three 
parameters, but uses only two, and the callers pass it two too.

I had to automate the building process, which gives:

cd /tmp

cat  jkwsincdir.lex  TERMINE
%x DEDANS
%{
int g_niveau;
%}
%%

\[JK_WS_INCDIR\] { fwrite(yytext, 1, yyleng, yyout); g_niveau = 0; 
BEGIN(DEDANS); }
DEDANS\[ { fwrite(yytext, 1, yyleng, yyout); ++g_niveau; }
DEDANS\] { fwrite(yytext, 1, yyleng, yyout); if(!--g_niveau) BEGIN(0); }
DEDANS\$3 { fprintf(yyout, \$2); }

%%

int yywrap() { return 1; }
int main(int argc, char ** argv) { yylex(); return 0; }
TERMINE
flex jkwsincdir.lex  gcc -o jkwsincdir lex.yy.c
gnutar xzf /opt/install/jakarta-tomcat-connectors-jk2-src-current.tar.gz
cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
/tmp/jkwsincdir  ../../jk/support/jk_ws.m4  /tmp/jk_ws.m4 
mv /tmp/jk_ws.m4 ../../jk/support/jk_ws.m4
sed -e 's/if ! ${TEST}/if ${TEST} !/'  configure.in  /tmp/configure.in 
 mv /tmp/configure.in configure.in

sh buildconf.sh
# I needed target=NONE to force a configure sub-script to take the
# platform detected by configure. I suppose you want to modify the
# tomcat41 directive in a tomcat5 one.
./configure --with-apache2-include=$HTTPD_DIR/include 
--with-apache2-lib=$HTTPD_DIR/lib --with-apxs2=$HTTPD_DIR/bin/apxs 
--with-tomcat41=$TOMCAT_DIR --target=NONE --with-jni
make

--
Guillaume Outters


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error configuring JK2

2004-01-28 Thread Ralf Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I try to build mod_jk2, but I run into an error when I run configure. In 
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 I run the following 
command:

./configure --with-apxs2=/usr/local/apache2/bin/apxs 
- --with-apache2=/usr/local/apache2 --with-tomcat5=/usr/local/tomcat 
- --with-java-home=/usr/lib/SunJava2-1.4.1 --with-jni --with-pcre

When running the command I get this error message:

no apxs given
ippp0
eth0
1024:65535
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
ippp0
eth0
1024:65535
ippp0
eth0
1024:65535
ippp0
eth0
1024:65535
configure: error: Invalid location for apxs: '/usr/local/apache2/bin/apxs'

I use Apache 2.0.48 which is installed in /usr/local/apache2 and Tomcat 5.0.16 
which is installed in /usr/local/tomcat.

Any ideas what might be the problem? I did not find any hints in the archives.

Best regards,
Ralf.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAGBfP7YyyfykA0YkRAtgGAKCWVAHPGBaXQabFLZGmejfU9rnbcwCeJfa/
biWHEMa9AmB20xYYkND4qU0=
=RXbD
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]