Compiling mod_jk

2001-09-21 Thread Bryan Lipscy

I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
box.  I received the error detailed below.  Apache was installed with
Solaris and loads mod_so.

What does the "language optional software package not installed" mean?  Is
it significant? How do I fix it?

Why did apxs fail?
What does the rc=65536 mean?
How can it be solved?
Does someone have a compiled mod_jk compiled on Solaris 8?

Thanks,
Bryan

Error:
root >build-solaris.sh
Building mod_jk
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536
Error with apxs


Environment:
Solaris 8 Kernel 108528-06
Sun 420R (4 * 450Mhz) 4GB Memory
gcc: gcc-2.95.2
perl, version 5.005_03 built for sun4-solaris
JDK 1.3.1.01
Apache v1.3 (Installed with Solaris 8)


Execute line:
/usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
mod_jk.c




Compiling mod_jk

2001-09-24 Thread Bryan Lipscy

I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
box.  I received the error detailed below.  Apache was installed with
Solaris and loads mod_so.

What does the "language optional software package not installed" mean?  Is
it significant? How do I fix it?

Why did apxs fail?
What does the rc=65536 mean?
How can it be solved?
Does someone have a compiled mod_jk compiled on Solaris 8?

Thanks,
Bryan

Error:
root >build-solaris.sh
Building mod_jk
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536
Error with apxs


Environment:
Solaris 8 Kernel 108528-06
Sun 420R (4 * 450Mhz) 4GB Memory
gcc: gcc-2.95.2
perl, version 5.005_03 built for sun4-solaris
JDK 1.3.1.01
Apache v1.3 (Installed with Solaris 8)


Execute line:
/usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
mod_jk.c




compiling mod_jk

2001-01-05 Thread Dario Novakovic

i hardly found mod_jk source and compiled it, and it worked fine. question
is: woldn't it be easier if we colud download a compiled mod_jk.so? do i
realy need to compile it on a box where it is going to be deployed and why?


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




Problems compiling mod_jk

2002-06-18 Thread Luca Zancan

Hello everybody,

I've downloaded "jakarta-tomcat-connectors-4.0.2-01.src.tar.gz" and I've
launched "ant" and "ant install" without problems (they created a
"build" directory in the "jk" subdir)
Then I've changed to the "native" subdir to launch the command
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-EAPI
(I'm using Apache 1.3.24, Tomcat 4.0.3 and Ant 1.4.1 on a RedHat 7.2,
kernel 2.4.7-10)
I have no "configure" and then (following the directions in
REAME.configure) I've tried with "autoconf".
"autoconf" creates a "configure" file but gives me a couple of errors:

autoconf: Undefined macros:
configure.in:18:AC_LIBTOOL_DLOPEN
configure.in:26:AC_PROG_LD


(I'm using "autoconf 2.13-14" and "libtool 1.4-8")

I've tried to launch "./configure --with-apxs.", but it gives me:

loading cache ./config.cache
configure: error: can not find install-sh or install.sh in
scripts/build/unix ./scripts/build/unix



Any ideas???
I've tried also with "jakarta-tomcat-connectors-4.0.4-b3-src.tar.gz",
but I obtain immediately this error when I launch "ant"
__
guess_catalina40:

guess_catalina41:

cpath:

prepare:
 [copy] Could not find file
/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
to copy.

BUILD FAILED

/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/jk/build.xml:100:
Could not find file
/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
to copy.
___

I need a version of mod_jk with EAPI enabled and I have not been able to
find a compiled one...

Any help would be greatly appreciated.

bye
Luca
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




error compiling mod_jk

2002-08-09 Thread Aaron

Hi-

I'm trying to build mod_jk on Mac OS X.  I am using libtool-1.4.2 and I  
see the -arch_only option in the documentation.  Does anyone know how  
to fix this?

Thanks,

Aaron

[mobile:local/jakarta-tomcat-connectors/jk] mobile# ant native
Buildfile: build.xml

jkant:
 [javac] Compiling 17 source files to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes
  [copy] Copying 1 file to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes/META-INF
   [jar] Building jar:  
/usr/local/jakarta-tomcat-connectors/jk/build/lib/jkant.jar

detect:
  [echo]  jakarta-tomcat-connectors 

report:
  [echo] Tomcat33: ${tomcat33.detect}
  [echo] Tomcat40:  true ../../jakarta-tomcat-4.0.3
  [echo] Tomcat41: true ../../jakarta-tomcat-4.1.8
  [echo] Apache13: ${apache13.detect} ${apache13.home}
  [echo] Apache2: true /usr/local/apache2
  [echo] iPlanet:  ${iplanet.detect} ${iplanet.home}
  [echo] IIS:  ${iis.detect} ${iis.home}
  [echo] Using catalina.home:  ${catalina.home}

native:

init:
  [echo] /var/root
[available] DEPRECATED -  used to override an existing  
property.
[available]   Build file should not reuse the same property name for  
different values.
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk

apache20:
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2
[so] Compiling 19 out of 19
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: missing initializer
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: (near initialization for `jk_cmds[16].func')
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c:  
In function `ajp_process_callback':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_ajp_common.c:949: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_connect.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_context.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_map.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_md5.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_pool.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_sockbuf.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c: In function `map_uri_to_worker':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c:571: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_util.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_worker.c
Linking  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/mod_jk.so
[so] Link failed 1
[so] Command:libtool --mode=link cc -module -avoid-version  
-rpath /usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2 -o  
mod_jk.la  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/apache-2.0/ 
mod_jk.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp12_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp_common.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_connect.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_context.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_jni_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_lb_work

Problems compiling mod_jk

2001-06-03 Thread Ed Robbins

Hi everyone,

I'm having trouble getting mod_jk to compile for either apache1.3 or 2.0.  
I've read the instructions several times and I've worked out most of the 
problems with the makefiles (finding the header files), but I can't seem to 
get past this last problem.  The message below is what I get when I run the 
makefile or if I run the apxs command directly.  Any help would be greatly 
appreciated.

Ed



make -f Makefile
cc -c -DHAVE_CONFIG_H -g -fpic  -DSHARED_MODULE -O2 -D_REENTRANT -pthread 
-DLINUX -Wall -DAPACHE2_SIGHACK -I/usr/local/jdk1.3.1/include 
-I/usr/local/jdk1.3.1/include/linux -I. 
-I/home/root/JAVA/httpd-2_0_16/include 
-I/home/root/JAVA/httpd-2_0_16/src/modules/standard 
-I/home/root/JAVA/httpd-2_0_16/src -I/home/root/JAVA/httpd-2_0_16/src/include 
-I/home/root/JAVA/httpd-2_0_16/src/lib/apr/include 
-I/home/root/JAVA/httpd-2_0_16/src/os/unix 
-I/home/root/JAVA/httpd-2_0_16/srclib/apr/include 
-I/home/root/JAVA/httpd-2_0_16/srclib/apr-util/include 
-I/home/root/JAVA/httpd-2_0_16/os/unix -I../jk mod_jk.c
mod_jk.c:97: parse error before `jk_module'
mod_jk.c:97: warning: type defaults to `int' in declaration of `jk_module'
mod_jk.c:97: warning: data definition has no type or storage class
mod_jk.c: In function `ws_start_response':
mod_jk.c:161: warning: implicit declaration of function `ap_psprintf'
mod_jk.c:161: warning: assignment makes pointer from integer without a cast
mod_jk.c:165: warning: implicit declaration of function `ap_pstrdup'
mod_jk.c:165: warning: initialization makes pointer from integer without a 
cast
mod_jk.c:169: warning: implicit declaration of function `ap_table_set'
mod_jk.c:182: warning: implicit declaration of function `ap_table_add'
mod_jk.c:186: warning: implicit declaration of function `ap_send_http_header'
mod_jk.c: In function `ws_write':
mod_jk.c:225: `BUFF' undeclared (first use in this function)
mod_jk.c:225: (Each undeclared identifier is reported only once
mod_jk.c:225: for each function it appears in.)
mod_jk.c:225: `bf' undeclared (first use in this function)
mod_jk.c:225: structure has no member named `client'
mod_jk.c:226: `ap_size_t' undeclared (first use in this function)
mod_jk.c:226: parse error before `w'
mod_jk.c:236: warning: implicit declaration of function `ap_bwrite'
mod_jk.c:236: `w' undeclared (first use in this function)
mod_jk.c:236: `r' undeclared (first use in this function)
mod_jk.c:244: warning: implicit declaration of function `ap_bflush'
mod_jk.c: In function `jk_error_exit':
mod_jk.c:270: warning: implicit declaration of function `ap_pvsprintf'
mod_jk.c:270: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `get_content_length':
mod_jk.c:284: warning: implicit declaration of function `ap_table_get'
mod_jk.c: In function `init_ws_service':
mod_jk.c:312: too few arguments to function `ap_get_remote_host'
mod_jk.c:317: warning: assignment discards qualifiers from pointer target type
mod_jk.c:319: warning: assignment discards qualifiers from pointer target type
mod_jk.c:341: warning: implicit declaration of function `ap_table_elts'
mod_jk.c:342: `ap_array_header_t' undeclared (first use in this function)
mod_jk.c:342: `t' undeclared (first use in this function)
mod_jk.c:342: invalid lvalue in assignment
mod_jk.c:345: `ap_table_entry_t' undeclared (first use in this function)
mod_jk.c:345: `elts' undeclared (first use in this function)
mod_jk.c:345: parse error before `)'
mod_jk.c:347: warning: implicit declaration of function `ap_palloc'
mod_jk.c:347: warning: assignment makes pointer from integer without a cast
mod_jk.c:348: warning: assignment makes pointer from integer without a cast
mod_jk.c:350: warning: initialization makes pointer from integer without a 
cast
mod_jk.c:351: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_mountcopy':
mod_jk.c:374: request for member `module_index' in something not a structure 
or union
mod_jk.c: In function `jk_mount_context':
mod_jk.c:390: request for member `module_index' in something not a structure 
or union
mod_jk.c:396: warning: passing arg 4 of `map_put' from incompatible pointer 
type
mod_jk.c: In function `jk_set_wroker_file':
mod_jk.c:406: request for member `module_index' in something not a structure 
or union
mod_jk.c: In function `jk_set_log_file':
mod_jk.c:419: request for member `module_index' in something not a structure 
or union
mod_jk.c: In function `jk_set_log_level':
mod_jk.c:432: request for member `module_index' in something not a structure 
or union
mod_jk.c: At top level:
mod_jk.c:458: parse error before `jk_cleanup_endpoint'
mod_jk.c:458: warning: return type defaults to `int'
mod_jk.c: In function `jk_handler':
mod_jk.c:467: warning: initialization makes pointer from integer without a 
cast
mod_jk.c:476: request for member `module_index' in something not a structure 
or union
mod_jk.c: At top level:
mod_jk.c:538: parse error before `*'
mod_jk.c: In function `create_jk_config':
mod_jk.c:54

Re: Compiling mod_jk

2001-09-25 Thread jean-frederic clere

Bryan Lipscy wrote:
> 
> I am trying to compile mod_jk to integrate Apache with Tomcat on a Solaris 8
> box.  I received the error detailed below.  Apache was installed with
> Solaris and loads mod_so.
> 
> What does the "language optional software package not installed" mean?  Is
> it significant? How do I fix it?
> 
> Why did apxs fail?
> What does the rc=65536 mean?
> How can it be solved?
> Does someone have a compiled mod_jk compiled on Solaris 8?
> 
> Thanks,
> Bryan
> 
> Error:
> root >build-solaris.sh
> Building mod_jk
> /usr/ucb/cc:  language optional software package not installed
> apxs:Break: Command failed with rc=65536
> Error with apxs

Your C compiler does not work... That is the problem (try LANG=C; export LANG
before before using build-solaris.sh).

mod_jk also allow to use configure - Check
jakarta-tomcat-connectors/jk/native/README.configure -

> 
> Environment:
> Solaris 8 Kernel 108528-06
> Sun 420R (4 * 450Mhz) 4GB Memory
> gcc: gcc-2.95.2
> perl, version 5.005_03 built for sun4-solaris
> JDK 1.3.1.01
> Apache v1.3 (Installed with Solaris 8)
> 
> Execute line:
> /usr/apache/bin/apxs -S CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
> mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
> x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
> ../common/jk_ajp13_worker.c ../common/jk_connect.c ../common/jk_jni_worker.c
> ../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
> ../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
> ../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
> mod_jk.c



RE: Compiling mod_jk

2001-09-26 Thread Bryan Lipscy

I built Apache 1.3.20 according to the readme file and set LANG to C and
exported it.  Still get the same error.

Where is this readme file at in the build?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of jean-frederic clere
Sent: Tuesday, September 25, 2001 1:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Compiling mod_jk



Your C compiler does not work... That is the problem (try LANG=C; export
LANG
before before using build-solaris.sh).

mod_jk also allow to use configure - Check
jakarta-tomcat-connectors/jk/native/README.configure -

>
> Environment:
> Solaris 8 Kernel 108528-06
> Sun 420R (4 * 450Mhz) 4GB Memory
> gcc: gcc-2.95.2
> perl, version 5.005_03 built for sun4-solaris
> JDK 1.3.1.01
> Apache v1.3 (Installed with Solaris 8)
>
> Execute line:
> /usr/apache/bin/apxs -S
CFLAGS=-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -o
>
mod_jk.so -I../common -I/usr/java/include -I/usr/java/include/solaris -lposi
> x4 -c ../common/jk_ajp12_worker.c ../common/jk_ajp13.c
> ../common/jk_ajp13_worker.c ../common/jk_connect.c
../common/jk_jni_worker.c
> ../common/jk_lb_worker.c ../common/jk_map.c ../common/jk_msg_buff.c
> ../common/jk_nwmain.c ../common/jk_pool.c ../common/jk_sockbuf.c
> ../common/jk_uri_worker_map.c ../common/jk_util.c ../common/jk_worker.c
> mod_jk.c




error compiling mod_jk

2003-01-29 Thread Ing. Gustavo Edelstein
Hi list!
My platform is HPUX 11.0, Tomcat 3.3.1, Apache 1.3.19
The command I'm using to compile is:

apxs -I$JAVA_HOME/include -I$JAVA_HOME/include/hpux -I../jk -o mod_jk.so -c *.c 
../common/*.c

The error msg I've got is:

gcc -DHPUX11 -DMOD_SSL=208103 -I/usr/local/php-4.0.6 -I/usr/local/php-4.0.6/main
 -I/usr/local/php-4.0.6/main -I/usr/local/php-4.0.6/Zend -I/usr/local/php-4.0.6/
Zend -I/usr/local/php-4.0.6/TSRM -I/usr/local/php-4.0.6/TSRM -I/usr/local/php-4.
0.6 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -DKRB5  -I/usr/local/a
pache/include -I/opt/java1.3/include -I/opt/java1.3/include/hpux -I../jk  -c ../
common/jk_worker.c
In file included from ../common/jk_global.h:69,
 from ../common/jk_logger.h:65,
 from ../common/jk_ajp12_worker.h:65,
 from ../common/jk_worker_list.h:80,
 from ../common/jk_worker.c:63:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28: warning:
`__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: t
his is the location of the previous definition
  -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o
jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o j
k_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
apxs:Break: Command failed with rc=16777215

Thanks for your help !!

Gustavo A. Edelstein




Re: compiling mod_jk

2001-01-06 Thread andy oliver





Dario Novakovic wrote:

> i hardly found mod_jk source and compiled it, and it worked fine. question
> is: woldn't it be easier if we colud download a compiled mod_jk.so? do i
> realy need to compile it on a box where it is going to be deployed and why?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

The answer is no, maybe and so it will work.  Unfortunately a differently
compiled
apache, kernel, libraries, etc. may result in needing differently compiled
mod_jk.so.
If both your machines are essentially the same, then no, just copy it onto
both.  If they
are different then you'll need a differently compiled mod_jk.so and have to
compile
it for each.  If you're on windows then you're in DLL hell anyhow and so there
are
precompiled versions.  If you're on linux then its somewhat easier to specify
what version
of things are required and things tend to be more the same.  If you're on
solaris then
you have no idea what sun stuck under the hood this time and called it the
same version/patch,
nor how the bozo that compiled it set the optionsyou'll need to compile it
yourself...
(Which will probably be painful)...

-Andy





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


compiling mod_jk under AIX

2002-11-05 Thread Maureen Barger
Has anyone done this successfully? I have tried with IBM's compiler as well 
as gcc and both result in same error:

ld: 0711-244 ERROR: No csects or exported symbols have been saved.
apxs:Break: Command failed with rc=8

I am running aix 4.3.3

Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Experience is something you don't get until just after you need it.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



compiling mod_jk on AIX

2002-06-22 Thread Milt Epstein


I downloaded the connector source
(jakarta-tomcat-connectors-4.0.2-01-src) and I'm trying to compile
mod_jk for AIX.

I'm following the instructions in the README.txt file
in the jk subdirectory of the source.  I'm trying to use ant, as
described there.

First I run "ant", and that works OK.  Then I run "ant native".  That
part actually crashes, but it looks like it's trying to build both jk
and jk2 stuff, and the jk stuff finishes OK and it's on jk2 that it
crashes.  It crashes because it can't find some header files, apr.h
and some other ones (apr_.h).  I don't know what apr is,
but it doesn't seem to come with the connector source.  One guess I
have is that it's related to Apache 2, but I don't have Apache 2.

Anyway, that's not what my question is about (although if anyone can
provide more info about it, that'd be appreciated).  Basically, I'm
trying to build the mod_jk.so file so I can use mod_jk with Apache and
Tomcat.  But it's not getting created.  I see a message related to it
in the output:

Linking 
.../jakarta-tomcat-connectors-4.0.2-01-src/jk/build/WEB-INF/jk/apache13/mod_jk.so

(The "..." weren't literally there, I just deleted that part.)
There's no error/failure message around it, so it looks like it
succeeded.  The thing is, I can't find a mod_jk.so file, in that
directory or anywhere else.  That directory has files

libmod_jk.a
mod_jk.la

In addition, there's a .libs subdirectory that has files

libmod_jk.a
libmod_jk.exp
libmod_jk.so.0
mod_jk.la
mod_jk.lai

mod_jk.la is a symbolic link to the same-named file in the directory
above it.  libmod_jk.a is the same (via diff) as the same-named file
in the directory above it.  Can I use one of these files as mod_jk.so?
Is it just a matter of renaming one of them?  If so, why didn't the
build process do it?

If anyone can shed some light on what's going on here, it would be
appreciated.  Thanks.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




compiling mod_jk on Solaris

2001-04-23 Thread Sue Schoch

I thought I'd share my findings on compiling mod_jk on my Solaris 2.7 machine.
I use the Sun C compiler on one machine and gcc on another.  I think I'm
finally able to compile on either machine.   My problem seems to be related
to the apache apxs script not working correctly.  I created a makefile to 
use instead of running apxs.  I've listed it below in case it could help
someone else.

Thanks for those of you who tried to send me a compile mod_jk.  I never could
use them because there seemed to be mismatched libraries on my my machine.

Sue Schoch
[EMAIL PROTECTED]
IRIS Data Management Center


 -- Makefile.solaris ---
 
# Compiles mod_jk.so using either the Sun C compiler or the GNU C compiler
# I believe the problem compiling mod_jk.so as instructed in the tomcat
# documentation is more tied to problems in apxs
#
# Copy to {tomcat-source-home}/src/native/apache1.3/Makefile.solaris
# Pick your compiler and change JAVA_HOME and APACHE_HOME paths
# % make -f Makefile.solaris
#
# Not sure if the -lposix4 is needed or not
#
# IRIS - K. Sue Schoch April 23, 2001

## Following uses the Sun compiler
#CC=cc

## Following uses the gnucompiler
CC=gcc

JAVA_HOME=/usr/local/jdk1.2.2
APACHE_HOME=/export/home/www

LD_SHAREDCMD=ld -G

JAVA_INCLUDE=-I$(JAVA_HOME)/include -I${JAVA_HOME}/include/solaris
APACHE_INCLUDE=-I$(APACHE_HOME)/include

all:
$(CC) -DSOLARIS -c $(APACHE_INCLUDE) $(JAVA_INCLUDE) -I../jk *.c ../jk/*.c 
$(LD_SHAREDCMD) -o mod_jk.so *.o -lposix4




help with compiling mod_jk

2001-07-14 Thread Michael Lai

Hi.  I am trying to configure Apache(2.0.16) on my linux system (redhat 
7.1) with tomcat (3.2).  According to tomcat's documentation, I should 
try to compile my own mod_jk module by downloading the source for 
jakarta-tomcat.  I downloaded it and then I ran the command as per 
documentation:

apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include  
-I/usr/local/jdk/include/linux -c *.c ../jk/*.c

I have adjusted the java path accordingly so that it reflects $JAVA_HOME 
on my system.  However when I ran this command, I get the following errors:

libtool --silent --mode=compile gcc -pthread 
-I/usr/local/apache2/include -I../jk -I/usr/local/java/include 
-I/usr/local/java/include/linux  -c mod_jk.c && touch mod_jk.slo
mod_jk.c:76:31: http_conf_globals.h: No such file or directory
apxs:Break: Command failed with rc=65536

It says that it can't find the http_conf_globals.h file but I couldn't 
find it on my system even after doing a search.

Please help.  Thanks,
Michael.





Compiling mod_jk on HPUX11.00

2001-02-21 Thread John P. Dodge

Has anyone been successfull in getting mod_jk to compile and run on
HPUX11.00. I have searched the list and found the response from "Matchim,
Brian - BOP/BDP" <[EMAIL PROTECTED]>. I am having problems getting
past the "dlopen - unresolved symbol" problem that Brian talks about. I am
unable to use the GCC compiler and am using the HP C compiler. Brian
mentions that "dlopen" is available for 64-bit compilers but the source
code must me modified to use the equivalent "shl_open" function for 32-bit
compilers. Does anyone have source code with this fix applied?


Thanks



"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group



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




Compiling mod_jk on HPUX

2000-11-22 Thread Won Hong

All, I'm trying to install Apache and Tomcat on HPUX 11. All is fine until I
try to run apxs to generate the mod_jk.so file when I get following error
my comments are prefixed with >>>
>>>Execution line
# /opt/apache/bin/apxs -o mod_jk.so -I../jk -I/opt/java1.2/include
-I/opt/java1.2/include/hp-ux -c *.c ../jk/*.c
>>>Resulting error
gcc -fpic -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -i../lib/expat-lite -O
-DSHARED_MODULE -I/opt/apache/include -I../jk -I/opt/java1.2/include
-Iopt/java1.2/include/hp-ux -c mod_jk
In file included from ../jk/jk_util.h:66,
 from mod_jk.c:90:
../jk/jk_pool.h:116: parse error before 'jk_pool_atom_t'
mod_jk.c: In function 'jk_handler':
mod_jk.c:679: 'jk_pool_atom_t' undelcared (first use in this function)
mod_jk.c:679: (Each undeclared identifier is reported only once
mod_jk.c:679: for each function it appears in.)
mod_jk.c:679: parse error before 'buf'
mod_jk.c:680: 'buf' undeclared (first use in this function)
apx:Break: Command failed with rc=1

Best Regards,

Won Hong
Product Manager
Firekey, Inc.
443-572-5564
[EMAIL PROTECTED]




compiling mod_jk with -pthread

2000-12-02 Thread Didier Godefroy

Hi all again,

how do we compile mod_jk with the -pthread option?
I tried having it in the CFLAGS and CC environment but that is ignored.
I also tried including it in the apxs cmd line but it gives out errors.
So what is the right way to do this?

-- 
Didier Godefroy
mailto:[EMAIL PROTECTED]




Problems compiling mod_jk 1.2.6

2004-11-18 Thread Lars George
Hi,
We are trying to compile mod_jk 1.2.6 on a Linux system with 2.2 kernel 
where we get this error:

[EMAIL PROTECTED] native]# make
Making all in common
make[1]: Entering directory 
`/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
/bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
-I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
-I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
-c jk_ajp12_worker.c
/bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
-I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
-I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
-c jk_connect.c
jk_connect.c: In function `jk_resolve':
jk_connect.c:56: `in_addr_t' undeclared (first use in this function)
jk_connect.c:56: (Each undeclared identifier is reported only once
jk_connect.c:56: for each function it appears in.)
jk_connect.c:56: parse error before `laddr'
jk_connect.c:100: `laddr' undeclared (first use in this function)
make[1]: *** [jk_connect.lo] Error 1
make[1]: Leaving directory 
`/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
make: *** [all-recursive] Error 1

Apparently when Googleing for it it seems like the older code base of 
the 2.2 kernel does not have that "in_addr_t" defined. How is this amended?

Thanks,
Lars

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


Compiling mod_jk, mod_jk2 on Solaris

2002-08-30 Thread gabriele . garuglieri

For anyone who may be interested, i have managed to compile mod_jk and
mod_jk2
of jakarta-tomcat-connectors-4.1.9 for apache 2.0.39 under Solaris 2.8,
using
both configure and ant methods.
The tools used were:
 ant 1.5
 gcc 2.95.2
 libtool 1.4.2
 Autoconf 2.53
 automake 1.6
 JDK 1.4.0_01
If you download libtool package from one of the sunfreeware sites, i don't
know
in what environment it was built, but it produces wrong flags for ld and
the
link phase will fail. Libtool to produce reliable results is highly
sensitive to the environment so in any case i suggest to start with source
and
build it on your machine.
Here's what i did.
I'm assuming jakarta-tomcat-connectors-4.1.9-src/jk as base directory, so
any
reference will be relative to this.

** mod_jk, configure method **
This compiles right out of the box so within native dir i run
 buildconf.sh
then
 ./configure \
 --with-apxs=/usr/local/apache2/bin/apxs \
 --with-java-home=${JAVA_HOME} \
 --with-java-platform=2 \
 --enable-jni
then
 make
and that's it.

** mod_jk2, configure method **
Here things start to complicate.
native2/include/jk_global.h includes sys/ioctl.h that to expand correctly
in
solaris needs the BSD_COMP define to be set.
So as the easy option you can
 buildconf.sh
 ./configure \
  --with-apxs2=/usr/local/apache2/bin/apxs \
  --with-tomcat41=/usr/local/jakarta-tomcat-4.1.9 \
  --with-java-home=${JAVA_HOME} \
  --with-java-platform=2 \
  --with-jni

 make CPPFLAGS=-DBSD_COMP

Otherwise if you are really brave you can modify support/jk_apxs.m4
changing
the following two lines
 APXS$1_CFLAGS="`${APXS$1} -q CFLAGS` `${APXS$1} -q EXTRA_CFLAGS`"
 APXS$1_CPPFLAGS="`${APXS$1} -q EXTRA_CPPFLAGS`"
into
 APXS$1_CFLAGS="`${APXS$1} -q CFLAGS` `${APXS$1} -q EXTRA_CFLAGS`
${CFLAGS}"
 APXS$1_CPPFLAGS="`${APXS$1} -q EXTRA_CPPFLAGS` ${CPPFLAGS}"
This allow to pass additional CFLAGS and CPPFLAGS during the configure step
that will be merged with those produced by configure and apxs.
After this, again
 buildconf.sh
 ./configure \
  --with-apxs2=/usr/local/apache2/bin/apxs \
  --with-tomcat41=/usr/local/jakarta-tomcat-4.1.9 \
  --with-java-home=${JAVA_HOME} \
  --with-java-platform=2 \
  --with-jni \
  CPPFLAGS=-DBSD_COMP
 make
I know that for this the first line of jk_apxs.m4 is not really needed to
be
modified, but i have included it as a nice to have suggestion for the
developers.


*** mod_jk, ant method ***
WARNING: be aware that running ./configure into native or native2 dirs
rewrites
build.properties, so if you customize it remember to save it if you ever
think to use ./configure. (i learned it the hard way)

Here you need to customize build.properties as indicated in the README then
add
the following lines:

build.native.cc=gcc
the compiler defaults to cc so if you don't have installed Sun official
compiler or have an alias or link from cc to gcc you need the previous
line.

solaris=true
j2sdk1.4.0_01/include/jni.h includes the platform dependent jni_md.h that
for
solaris is in j2sdk1.4.0_01/include/solaris, so to allow the include to
succeed
you should modify native/build.xml adding  to the "apache20" and "jni"
targets
where the comment says  the following
line


build.native.extra_cflags=-pthreads -DNO_DBM_REWRITEMAP -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DBSD_COMP
(this is broken in the mail but it must be a single line)
The values in this line are those used in my compilation but you should get
yours as the merge of the output of these commands
 /bin/apxs -q CFLAGS
 /bin/apxs -q EXTRA_CFLAGS
 /bin/apxs -q EXTRA_CPPFLAGS
plus the -DBSD_COMP define as previuosly explained.
(in the output of those commands you will possibly find "-g" and "-O" flags
if
they were set when apache was compiled. You should not use them since they
are controlled by so.debug and so.optimize properties)
This is needed because apacheConfig, that will extract those options from
apxs,
is not yet working and if you want to compile with the same options as the
configure method you need to extract them manually from apxs.

After this from jk dir just run

 ant native

*** mod_jk2, ant method ***
Running ant native actually builds both mod_jk and mod_jk2.
For jk2 there would be no need to add
solaris=true
line into build.properties nor to modify native2/build.xml because into it
already are steps necessary to guess os and set the necessary includes, but
since the native target is always executed before you need to add this
line.

Otherwise you can split the native target as follows





 



 



 



 


The same consideration apply to the -DBSD_COMP option added to the
build.native.extra_cflags property. It is only needed to compile jk2 but
without splitting the native target you need to set it also when compiling
jk.

To conclude, if i'm allowed to make 

RE: compiling mod_jk under AIX

2002-11-05 Thread Turner, John

Which Apache?  There are mod_jk.so binaries for AIX on my site:

http://www.johnturner.com/howto

Might be worth a try.

That said, what configure options did you use when trying the build?  

John


> -Original Message-
> From: Maureen Barger [mailto:mf12@;cornell.edu]
> Sent: Tuesday, November 05, 2002 11:25 AM
> To: [EMAIL PROTECTED]
> Subject: compiling mod_jk under AIX
> 
> 
> Has anyone done this successfully? I have tried with IBM's 
> compiler as well 
> as gcc and both result in same error:
> 
> ld: 0711-244 ERROR: No csects or exported symbols have been saved.
> apxs:Break: Command failed with rc=8
> 
> I am running aix 4.3.3
> 
> Maureen Barger, CIT/ID, Cornell University
> Ithaca, NY 14850
> [EMAIL PROTECTED]
> http://mo.cit.cornell.edu/
> 
> Experience is something you don't get until just after you need it.
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@;jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




Re: compiling mod_jk under AIX

2002-11-05 Thread Milt Epstein
On Tue, 5 Nov 2002, Maureen Barger wrote:

> Has anyone done this successfully? I have tried with IBM's compiler
> as well as gcc and both result in same error:
>
> ld: 0711-244 ERROR: No csects or exported symbols have been saved.
> apxs:Break: Command failed with rc=8
>
> I am running aix 4.3.3

If you really want to build it yourself, I'd take the above error
message and go search comp.unix.aix at groups.google.com.  This is
really an AIX shared library question, not an Apache module question.
I've seen this error before, and the solution is to use certain
linker/loader options (I don't remember exactly which ones, but you
can find them in comp.unix.aix), and/or perhaps find an apxs that
works with AIX.  (If you're using an old Apache, upgrading might help,
because I'd think newer versions would have an apxs that has been
"fixed" for AIX.)

The other alternative is to find an already built mod_jk, matched
to your version of AIX and Apache.  John Turner has collected a bunch
of built mod_jk's (and corresponding howto's) at his web site,
including some for AIX (I know, because I contributed one :-).  The
web site is something like:

http://www.johnturner.com/

Or search the list archives.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: compiling mod_jk under AIX

2002-11-05 Thread Maureen Barger
Thanks. I have googled and see lots of folks with the error but none with 
the solution. Same with the archives.

I am using apache 1.3.14 but my systems group should be pushing 1.3.26 out 
later today or tomorrow. So John Turner's links don't help -- I tried that 
too ;-)


Now I have discovered that there are a bunch of configure scripts available 
at 
 
and am trying to work with those .. but of course I am still running into 
some problems (some of which are probably my own doing as I am new to this 
I am afraid).

I am running
./configure --with-apxs=/path-to/apache_1.3.14/bin/apxs 
--with-java-home=path-to/jdk_130

which goes ok.

Then when I issue make, I receive
Making all in common
/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor 
--mode=compile gcc -I/web2_sys/apache_1.3.14/include -g -O2 -DAIX=43 
-DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qnogenpcomp 
-qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE 
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES 
-qlonglong -g -O2  -I /include -I /include/ -c ./jk_ajp12_worker.c
/usr/bin/sh: 
/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor: 
not found.
make: 1254-004 The error code from the last command is 127.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.


Near as I can figure, my /sbin directory does not contain what the script 
is looking for (in this case, /sbin/var/ifor). In fact the sbin directory 
contains only 3 files and one other dir named helpers. So I am not sure if 
I can comment that out or go back to the systems group and ask them or what.


At 01:26 PM 11/5/2002 -0600, Milt Epstein wrote:
If you really want to build it yourself, I'd take the above error
message and go search comp.unix.aix at groups.google.com.  This is
really an AIX shared library question, not an Apache module question.
I've seen this error before, and the solution is to use certain
linker/loader options (I don't remember exactly which ones, but you
can find them in comp.unix.aix), and/or perhaps find an apxs that
works with AIX.  (If you're using an old Apache, upgrading might help,
because I'd think newer versions would have an apxs that has been
"fixed" for AIX.)

The other alternative is to find an already built mod_jk, matched
to your version of AIX and Apache.  John Turner has collected a bunch
of built mod_jk's (and corresponding howto's) at his web site,
including some for AIX (I know, because I contributed one :-).  The
web site is something like:

http://www.johnturner.com/

Or search the list archives.



Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Experience is something you don't get until just after you need it.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: compiling mod_jk under AIX

2002-11-05 Thread Milt Epstein
On Tue, 5 Nov 2002, Maureen Barger wrote:

> Thanks. I have googled and see lots of folks with the error but none
> with the solution. Same with the archives.

Well, I did a quick search earlier today when I sent that earlier
response, and I saw lots of people posting with similar errors, and
lots of responses with suggestions.  And I myself had similar troubles
some time back, and was able to make use of those suggestions to get
things working.  So I know there is good information there.  Again,
the solution involves specifying certain loader/linker options.


> I am using apache 1.3.14 but my systems group should be pushing
> 1.3.26 out later today or tomorrow. So John Turner's links don't
> help -- I tried that too ;-)

Then the best thing is probably to wait until that's available, for
many reasons.


> Now I have discovered that there are a bunch of configure scripts available
> at
> 
> and am trying to work with those .. but of course I am still running into
> some problems (some of which are probably my own doing as I am new to this
> I am afraid).
>
> I am running
> ./configure --with-apxs=/path-to/apache_1.3.14/bin/apxs
> --with-java-home=path-to/jdk_130
>
> which goes ok.
>
> Then when I issue make, I receive
> Making all in common
>  
>/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor
> --mode=compile gcc -I/web2_sys/apache_1.3.14/include -g -O2 -DAIX=43
> -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -qnogenpcomp
> -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_HSREGEX -DEAPI -D_ALL_SOURCE
> -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES
> -qlonglong -g -O2  -I /include -I /include/ -c ./jk_ajp12_worker.c
> /usr/bin/sh:
> 
>/bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/var/ifor:
> not found.
> make: 1254-004 The error code from the last command is 127.
>
>
> Stop.
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
>
>
> Near as I can figure, my /sbin directory does not contain what the script
> is looking for (in this case, /sbin/var/ifor). In fact the sbin directory
> contains only 3 files and one other dir named helpers. So I am not sure if
> I can comment that out or go back to the systems group and ask them or what.
>
>
> At 01:26 PM 11/5/2002 -0600, Milt Epstein wrote:
> >If you really want to build it yourself, I'd take the above error
> >message and go search comp.unix.aix at groups.google.com.  This is
> >really an AIX shared library question, not an Apache module question.
> >I've seen this error before, and the solution is to use certain
> >linker/loader options (I don't remember exactly which ones, but you
> >can find them in comp.unix.aix), and/or perhaps find an apxs that
> >works with AIX.  (If you're using an old Apache, upgrading might help,
> >because I'd think newer versions would have an apxs that has been
> >"fixed" for AIX.)
> >
> >The other alternative is to find an already built mod_jk, matched
> >to your version of AIX and Apache.  John Turner has collected a bunch
> >of built mod_jk's (and corresponding howto's) at his web site,
> >including some for AIX (I know, because I contributed one :-).  The
> >web site is something like:
> >
> >http://www.johnturner.com/
> >
> >Or search the list archives.
>
> 
> Maureen Barger, CIT/ID, Cornell University
> Ithaca, NY 14850
> [EMAIL PROTECTED]
> http://mo.cit.cornell.edu/
>
> Experience is something you don't get until just after you need it.
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: compiling mod_jk on AIX

2002-06-24 Thread Costas Stergiou

Mail me to [EMAIL PROTECTED] and I will send you a binary copy of aix mod_jk.so
for aix4.3 if you need it.
Costas

- Original Message -
From: "Milt Epstein" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, June 23, 2002 5:45 AM
Subject: compiling mod_jk on AIX


>
> I downloaded the connector source
> (jakarta-tomcat-connectors-4.0.2-01-src) and I'm trying to compile
> mod_jk for AIX.
>
> I'm following the instructions in the README.txt file
> in the jk subdirectory of the source.  I'm trying to use ant, as
> described there.
>
> First I run "ant", and that works OK.  Then I run "ant native".  That
> part actually crashes, but it looks like it's trying to build both jk
> and jk2 stuff, and the jk stuff finishes OK and it's on jk2 that it
> crashes.  It crashes because it can't find some header files, apr.h
> and some other ones (apr_.h).  I don't know what apr is,
> but it doesn't seem to come with the connector source.  One guess I
> have is that it's related to Apache 2, but I don't have Apache 2.
>
> Anyway, that's not what my question is about (although if anyone can
> provide more info about it, that'd be appreciated).  Basically, I'm
> trying to build the mod_jk.so file so I can use mod_jk with Apache and
> Tomcat.  But it's not getting created.  I see a message related to it
> in the output:
>
> Linking
.../jakarta-tomcat-connectors-4.0.2-01-src/jk/build/WEB-INF/jk/apache13/mod_
jk.so
>
> (The "..." weren't literally there, I just deleted that part.)
> There's no error/failure message around it, so it looks like it
> succeeded.  The thing is, I can't find a mod_jk.so file, in that
> directory or anywhere else.  That directory has files
>
> libmod_jk.a
> mod_jk.la
>
> In addition, there's a .libs subdirectory that has files
>
> libmod_jk.a
> libmod_jk.exp
> libmod_jk.so.0
> mod_jk.la
> mod_jk.lai
>
> mod_jk.la is a symbolic link to the same-named file in the directory
> above it.  libmod_jk.a is the same (via diff) as the same-named file
> in the directory above it.  Can I use one of these files as mod_jk.so?
> Is it just a matter of renaming one of them?  If so, why didn't the
> build process do it?
>
> If anyone can shed some light on what's going on here, it would be
> appreciated.  Thanks.
>
> Milt Epstein
> Research Programmer
> Systems and Technology Services (STS)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Problems compiling mod_jk - SOLVED

2002-07-01 Thread Luca Zancan

Hello everybody,

I finally discovered (thank you very much again, Martin van den Bemt) how to compile 
the
"ik" connector.

I have changed directory into the location for which webserver mod_jk is meant
(/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-1.3 in my case)
and execute the (manually adjusted) appropiate shell file (build-unix.sh).
(adding DEAPI to the CFLAGS variable).
I've launched the shell script and all has went smooth (it compiles right and installs
mod_jk.so in /usr/local/apache/libexec)

I can't understand why these pieces of information are not available on the web... 
even in
Jakarta home is impossible to find a clear installation procedure and the various 
READMEs
contained in the source code do not tell everything is needed...

bye
Luca

Luca Zancan wrote:

> Hello everybody,
>
> I've downloaded "jakarta-tomcat-connectors-4.0.2-01.src.tar.gz" and I've
> launched "ant" and "ant install" without problems (they created a
> "build" directory in the "jk" subdir)
> Then I've changed to the "native" subdir to launch the command
> ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-EAPI
> (I'm using Apache 1.3.24, Tomcat 4.0.3 and Ant 1.4.1 on a RedHat 7.2,
> kernel 2.4.7-10)
> I have no "configure" and then (following the directions in
> REAME.configure) I've tried with "autoconf".
> "autoconf" creates a "configure" file but gives me a couple of errors:
> 
> autoconf: Undefined macros:
> configure.in:18:AC_LIBTOOL_DLOPEN
> configure.in:26:AC_PROG_LD
> 
>
> (I'm using "autoconf 2.13-14" and "libtool 1.4-8")
>
> I've tried to launch "./configure --with-apxs.", but it gives me:
> 
> loading cache ./config.cache
> configure: error: can not find install-sh or install.sh in
> scripts/build/unix ./scripts/build/unix
> 
>
> Any ideas???
> I've tried also with "jakarta-tomcat-connectors-4.0.4-b3-src.tar.gz",
> but I obtain immediately this error when I launch "ant"
> __
> guess_catalina40:
>
> guess_catalina41:
>
> cpath:
>
> prepare:
>  [copy] Could not find file
> 
>/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
> to copy.
>
> BUILD FAILED
>
> /usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/jk/build.xml:100:
> Could not find file
> 
>/usr/local/src/jakarta-tomcat-connectors-4.0.4-b3-src/coyote/build/lib/tomcat-coyote.jar
> to copy.
> ___
>
> I need a version of mod_jk with EAPI enabled and I have not been able to
> find a compiled one...
>
> Any help would be greatly appreciated.
>
> bye
> Luca
> __
>
> Luca Zancan
> Logica S.r.l.
> e-mail [EMAIL PROTECTED]
> URL http://www.logicaonline.com
> __
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




problem compiling mod_jk on aix

2001-04-13 Thread Olivier Hislaire

Hello,

Does anaybody knows how to achieve this ? The best I get, once all include 
files have been located, is a whole bunch of 'conflicting types 
(redefinition)', then it breaks.

Or would anybody know where to find a binary version for that shared object ?

Using aix4310 and jdk1.1.8.

Any help appreciated,
Olivier.

Olivier Hislaire

MSG International   Email:   [EMAIL PROTECTED]
97 Avenue de Tervuren Phone: +32 (0)2 735.91.59 Ext. 55
1040 Brussels Fax: +32 (0)2 732.12.19
Belgium  http://www.msg-i.com







Problem compiling mod_jk for Solaris

2001-05-16 Thread Ron Wolf

Hi, All!

I'm having a problem getting mod_jk compiled for Solaris.

Here's my setup:
Solaris 2.6
apache 1.3.13 (I know it's old, but it's what we're 
 using in production, so until that 
 changes, it's what I have to work with)
Apache was compiled with mod_so enabled and with OpenSSL
tomcat 3.2.1
Java 1.3_0_02

I took our standard apache 1.3.13 with OpenSSL and mod_so 
compiled in, have it running and serving pages through https.

I downloaded and installed j2sdk1_3_0_02 and associated 
patches.

I applied the patches, and installed java.

I downloaded tomcat 3.2.1, installed it, and have it running correctly on
port 8080.

I downloaded the tomcat source for 3.2.1, and extracted the tar
ball.  went to /src/native/apache1.3

I read the how-to page at:

  http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

Which said to use the following command:
apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include
-I/usr/java/include/solaris -c *.c ../jk/*.c

I, of course, changed it for my environment to read:
apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java2/include
-I/usr/java2/include/solaris -c *.c ../jk/*.c

Here's where things started going wrong.  The link stage to 
take the corresponding object files (*.o) and create the shared 
object (mod_jk.so) failed.  After much reading in the archives 
of this mail list and other resources, and much trial and 
error, I modified the apxs script to use "ld" with the "-G" 
flag, (which also failed).  Finally I used a manual command to 
create the *.so file from the object files since the command 
generated by apxs were looking in the wrong directory for the 
*.o files.

Now, finally, I have a mod_jk.so file.  I move it into the 
libexec directory under the apache server, put the "Include"
line into the httpd.conf file to get the tomcat auto-generated
file, "mod_jk.conf-auto" (per the instructions).

I started the tomcat server, and started the apache server, and
got another error message.  With more research, I found (in the
how-to file) the following explanation of that problem.

It said "On some systems, this will build the module correctly, 
but will fail at runtime with a "symbol "fdatasync" not found". 
To fix, add -lposix4 just before the -c in the above command".

So I recompiled the mod_jk.so file again with the "-lposix4"
flag and tried again. (stopping both servers, and restarting)

Now I received a slightly different error.  After searching the 
archives again, and finding nothing.  I decided the time has 
come to consult my fellow strugglers.  Here's the error message 
I received this time: 

[Wed May 16 15:10:18 2001] [debug] apache_ssl.c(355): Random input
/dev/urandom(1024) -> 0
Syntax error on line 8 of
/apacheSSL/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
Can't locate API module structure `jk_module' in file
/apacheSSL/libexec/mod_jk.so: ld.so.1: /apacheSSL/bin/httpsd: fatal:
jk_module: can't find symbol

Now, I've also looked through the source file, mod_jk.c, and the 
definition of jk_module is there, so I can't figure out why it's 
complaining that it can't find the symbol.

Please help.

Thanks.

Ron
--
Ron Wolf
http://www.getthere.com
[EMAIL PROTECTED]
(972) 277-3869





Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Wayne Pascoe

Hi all,

I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20

I have unpacked the tomcat connectors source, and then cd'd to
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native

>From there, cd to apache-1.3, edit the build-unix.sh file to change
JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
and change linux on that line to freebsd. This allows me to build and
install a mod_jk module into my apache libexec dir by running sh
build-unix.sh

Following the same process in apache-2.0, and things start out fine. I then
get the following :
.
.
.
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
jk_ajp_common.lo: In function `ajp_destroy':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
jk_ajp_common.lo: In function `ajp_done':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x2097): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x20d6): undefined reference to `pthread_mutex_destroy'
jk_ajp_common.lo: In function `ajp_get_endpoint':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21aa): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21fe): undefined reference to `pthread_mutex_destroy'
apxs:Error: Command failed with rc=65536
.
Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
cp: mod_jk.so: No such file or directory
Done. Install by running ./install-unix.sh

There are quite a few screens of this error.

Does anyone have any advice for fixing this? I'd really like to use apache 2
on this server.

Thanks in advance,

-- 
Wayne Pascoe <[EMAIL PROTECTED]>

The price of freedom is eternal vigilance
   - Thomas Jefferson


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Compiling mod_jk on Win2K, anyone?

2002-04-25 Thread Douglas, Rory

Hello
 
It seems some people are having success getting mod_jk2 compiled on Linux
platforms. Is this the only way?
 
Compiling the java side of the connector is, of course, painless and works
like a charm. The native side appears to be "somewhat confusing". I have
downloaded Cygwin which gave me some of the missing include files, however,
now the compiler wants "sys/socketvar.h" which doesn't exist in either
VC++'s or Cygwin's include directories.
 
Any ideas would be welcome
Rory Douglas
Sun Chemical Corporation
(201) 224-4600 x178
[EMAIL PROTECTED]  
 



Problems compiling mod_jk under AIX

2001-06-20 Thread MBAaron

Hey, wondering if anyone has encountered this problem while compiling
mod_jk under aix:

When I try to compile, I get the following message:

I'm running AIX 4.3.3, gcc 2.95.3, apache 3.2.2

Building mod_jk
gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qno
genpcomp -qnousepcomp -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT
-I../lib/expat-
lite -O -qmaxmem=8192 -DSHARED_MODULE -I/usr/local/include/apache
-I../common -I
/usr/jdk_base/include -I/usr/jdk_base/include/aix  -c
../common/jk_ajp12_worker.
c
gcc: unrecognized option `-qnogenpcomp'
gcc: unrecognized option `-qnousepcomp'
gcc: unrecognized option `-qmaxmem=8192'
gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qno
genpcomp -qnousepcomp -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT
-I../lib/expat-
lite -O -qmaxmem=8192 -DSHARED_MODULE -I/usr/local/include/apache
-I../common -I
/usr/jdk_base/include -I/usr/jdk_base/include/aix  -c ../common/jk_ajp13.c
gcc: unrecognized option `-qnogenpcomp'
gcc: unrecognized option `-qnousepcomp'
gcc: unrecognized option `-qmaxmem=8192'
gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qno
genpcomp -qnousepcomp -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT
-I../lib/expat-
lite -O -qmaxmem=8192 -DSHARED_MODULE -I/usr/local/include/apache
-I../common -I
/usr/jdk_base/include -I/usr/jdk_base/include/aix  -c
../common/jk_ajp13_worker.
c
gcc: unrecognized option `-qnogenpcomp'
gcc: unrecognized option `-qnousepcomp'
gcc: unrecognized option `-qmaxmem=8192'
gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qno
genpcomp -qnousepcomp -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT
-I../lib/expat-
lite -O -qmaxmem=8192 -DSHARED_MODULE -I/usr/local/include/apache
-I../common -I
/usr/jdk_base/include -I/usr/jdk_base/include/aix  -c
../common/jk_connect.c
gcc: unrecognized option `-qnogenpcomp'
gcc: unrecognized option `-qnousepcomp'
gcc: unrecognized option `-qmaxmem=8192'
gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qno
genpcomp -qnousepcomp -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT
-I../lib/expat-
lite -O -qmaxmem=8192 -DSHARED_MODULE -I/usr/local/include/apache
-I../common -I
/usr/jdk_base/include -I/usr/jdk_base/include/aix  -c
../common/jk_jni_worker.c
gcc: unrecognized option `-qnogenpcomp'
gcc: unrecognized option `-qnousepcomp'
gcc: unrecognized option `-qmaxmem=8192'
../common/jk_jni_worker.c:764: warning: #warning
---

../common/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT
FOR
JAVA 2 FEATURES DISABLED
../common/jk_jni_worker.c:766: warning: #warning
---

In file included from /usr/jdk_base/include/jni.h:36,
 from ../common/jk_jni_worker.c:67:
/usr/jdk_base/include/aix/jni_md.h:89: parse error before `*'
/usr/jdk_base/include/aix/jni_md.h:89: warning: initialization makes
pointer fro
m integer without a cast
/usr/jdk_base/include/aix/jni_md.h:89: initializer element is not constant
/usr/jdk_base/include/aix/jni_md.h:89: warning: data definition has no type
or s
torage class
/usr/jdk_base/include/aix/jni_md.h:89: parse error before `if'
/usr/jdk_base/include/aix/jni_md.h:89: parse error before `1'
/usr/jdk_base/include/aix/jni_md.h:89: warning: data definition has no type
or s
torage class
/usr/jdk_base/include/aix/jni_md.h:89: parse error before `->'
/usr/jdk_base/include/aix/jni_md.h:89: redefinition of
`_currentSuspendState'
/usr/jdk_base/include/aix/jni_md.h:89: `_currentSuspendState' previously
defined
 here
/usr/jdk_base/include/aix/jni_md.h:89: warning: data definition has no type
or s
torage class
/usr/jdk_base/include/aix/jni_md.h:89: parse error before `}'
/usr/jdk_base/include/aix/jni_md.h:127: warning: This file contains more
`}'s th
an `{'s.
In file included from ../common/jk_jni_worker.c:67:
/usr/jdk_base/include/jni.h:1858: warning: This file contains more `}'s
than `{'
s.
apxs:Break: Command failed with rc=1
Error with apxs


Thanks for any help you can give




Re: help with compiling mod_jk

2001-07-14 Thread Paul D. Bain

At Saturday 7/14/01 11:16 AM , you wrote:
>Hi.  I am trying to configure Apache(2.0.16) on my linux system


My
understanding is that Apache modules written for Apache 1.3 (such as
mod_jk) cannot be made to work with the new Apache, version 2.x. In order
to run with the new Apache, an Apache module must be rewritten, and I
suspect that mod_jk has not yet been rewritten.

> (redhat 
>7.1) with tomcat (3.2).  According to tomcat's documentation, I
should 
>try to compile my own mod_jk module by downloading the source for

>jakarta-tomcat.  I downloaded it and then I ran the command as
per 
>documentation:
>
>apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include  
>-I/usr/local/jdk/include/linux -c *.c ../jk/*.c
>
>I have adjusted the java path accordingly so that it reflects
$JAVA_HOME 
>on my system.  However when I ran this command, I get the
following errors:
>
>libtool --silent --mode=compile gcc -pthread 
>-I/usr/local/apache2/include -I../jk -I/usr/local/java/include 
>-I/usr/local/java/include/linux  -c mod_jk.c && touch
mod_jk.slo
>mod_jk.c:76:31: http_conf_globals.h: No such file or directory
>apxs:Break: Command failed with rc=65536
>
>It says that it can't find the http_conf_globals.h file but I
couldn't 
>find it on my system even after doing a search.
>
>Please help.  Thanks,
>Michael.
>



RE: Compiling mod_jk on HPUX11.00

2001-02-21 Thread Mike Braden

I was able to get mod_jk built on an hpux 11 l-class using gcc.

I wasn't able to get the dl stuff working (dlopen, dlclose, etc.).

I ended up changing a few things and removing support for JNI, which was the
only part that uses the dl stuff.  For my install, I won't use jni,
I'm using apache 1.3 and it isn't recommended anyway.

I was trying to create a build script, but with all of the changes it
doesn't look like something easy to automate.  I can clean up my notes
and send you a copy if you can get by without jni.

Mike.
--
Mike Braden
[EMAIL PROTECTED]


-Original Message-
From: John P. Dodge [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 11:28 AM
To: Tomcat Users Mail Liat
Subject: Compiling mod_jk on HPUX11.00


Has anyone been successfull in getting mod_jk to compile and run on
HPUX11.00. I have searched the list and found the response from "Matchim,
Brian - BOP/BDP" <[EMAIL PROTECTED]>. I am having problems getting
past the "dlopen - unresolved symbol" problem that Brian talks about. I am
unable to use the GCC compiler and am using the HP C compiler. Brian
mentions that "dlopen" is available for 64-bit compilers but the source
code must me modified to use the equivalent "shl_open" function for 32-bit
compilers. Does anyone have source code with this fix applied?


Thanks



"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group



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

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




RE: Compiling mod_jk on HPUX11.00

2001-02-21 Thread John P. Dodge

Great, I'll take any help you can provide to ge this working. I am using
Apache1.3 also and I don't care about JNI.





Thanks



On Wed, 21 Feb 2001, Mike Braden wrote:

> I was able to get mod_jk built on an hpux 11 l-class using gcc.
> 
> I wasn't able to get the dl stuff working (dlopen, dlclose, etc.).
> 
> I ended up changing a few things and removing support for JNI, which was the
> only part that uses the dl stuff.  For my install, I won't use jni,
> I'm using apache 1.3 and it isn't recommended anyway.
> 
> I was trying to create a build script, but with all of the changes it
> doesn't look like something easy to automate.  I can clean up my notes
> and send you a copy if you can get by without jni.
> 
> Mike.
> --
> Mike Braden
> [EMAIL PROTECTED]
> 
> 


"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group



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




[OT] Error compiling mod_jk (linux)

2003-10-29 Thread Ivan Venuti
Hello,

I'd like to use a Apache+Tomcat for using SSL & Certificates.
I need to build the mod_jk module for Apache.

I have downloaded jakarta-tomcat-connectors-jk-1.2-src-current.zip from
Jakarta Web Site.
I have unzipped it and:

1) cd (DIR)/jk/native
2) ./configure --with-apxs=(APACHE DIR)/bin/apxs
3) make

and I'm optaining these errors:

gcc -I/usr/local/apache/include -g -O2 -DLINUX=22 -DMOD_SSL=208115 -DUSE_HSR
EGEX
 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -g -O2 -I
/usr/java/j2sdk1.4.0//include
-I /usr/java/j2sdk1.4.0//include/ -c jk_connect.c  -fPIC -DPIC -o
.libs/jk_conne
ct.lo
jk_connect.c: In function `jk_resolve':
jk_connect.c:123: `in_addr_t' undeclared (first use in this function)
jk_connect.c:123: (Each undeclared identifier is reported only once
jk_connect.c:123: for each function it appears in.)
jk_connect.c:123: parse error before `laddr'
jk_connect.c:167: `laddr' undeclared (first use in this function)
make[1]: *** [jk_connect.lo] Error 1
make[1]: Leaving directory
`/home/javauser/apache/jakarta-tomcat-connectors-jk-1
.2.5-src/jk/native/common'
make: *** [all-recursive] Error 1

Anyone can help me with this?

I'm using RH 7, on a i686

-- Ivan



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



Re: Problems compiling mod_jk 1.2.6

2004-11-19 Thread Lars George
Hi Lars,
I solved your (my) problem. Just added a
#define in_addr_t unsigned long
into the jk_connect.h and compiled. Runs smoothly so far. Darn C code ;-)
Thanks,
Lars
PS: me, myself and I
Lars George wrote:
Hi,
We are trying to compile mod_jk 1.2.6 on a Linux system with 2.2 kernel 
where we get this error:

[EMAIL PROTECTED] native]# make
Making all in common
make[1]: Entering directory 
`/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
/bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
-I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
-I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
-c jk_ajp12_worker.c
/bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
-I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
-I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
-c jk_connect.c
jk_connect.c: In function `jk_resolve':
jk_connect.c:56: `in_addr_t' undeclared (first use in this function)
jk_connect.c:56: (Each undeclared identifier is reported only once
jk_connect.c:56: for each function it appears in.)
jk_connect.c:56: parse error before `laddr'
jk_connect.c:100: `laddr' undeclared (first use in this function)
make[1]: *** [jk_connect.lo] Error 1
make[1]: Leaving directory 
`/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
make: *** [all-recursive] Error 1

Apparently when Googleing for it it seems like the older code base of 
the 2.2 kernel does not have that "in_addr_t" defined. How is this amended?

Thanks,
Lars

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

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


RE: Compiling mod_jk, mod_jk2 on Solaris

2002-08-30 Thread Ignacio J. Ortega



Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Enviado el: 30 de agosto de 2002 16:59
> Para: [EMAIL PROTECTED]
> Asunto: Compiling mod_jk, mod_jk2 on Solaris
> 
> 
> Sorry,
> the two lines
> 
> 
> 
> are missing the closing slash and should read
> 
> 
>  depends="clean-native,clean-native2" />
> 
> I  apologize for that.
> Gabriele.
> 
> [EMAIL PROTECTED]
> 055-420 2832
> 388-9473323
> 
> 

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




errors compiling mod_jk for Apache 2.0.39

2002-06-22 Thread Dom

When I try to compile mod_jk in 4.1.3 connectors for Apache 2.0.39 on RH
7.3, I get the following errors :

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
`_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
undefined reference to `main'
mod_jk.lo: In function `ws_start_response':
/apps/jakarta-tomcat-connectors-4.1.3-src/jk/native/apache-2.0/mod_jk.c:225:
undefined reference to `apr_psprintf'
/apps/jakarta-tomcat-connectors-4.1.3-src/jk/native/apache-2.0/mod_jk.c:229:
undefined reference to `apr_pstrdup'
etc...
collect2: ld returned 1 exit status
apxs:Error; Command failed with rc=65536


Dom




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: problem compiling mod_jk on aix

2001-04-13 Thread Ed Robbins

How exactly does it break?  What are the error messages?

Ed

Olivier Hislaire wrote:
> 
> Hello,
> 
> Does anaybody knows how to achieve this ? The best I get, once all include
> files have been located, is a whole bunch of 'conflicting types
> (redefinition)', then it breaks.
> 
> Or would anybody know where to find a binary version for that shared object ?
> 
> Using aix4310 and jdk1.1.8.
> 
> Any help appreciated,
> Olivier.
> 
>
> Olivier Hislaire
> 
> MSG International   Email:   [EMAIL PROTECTED]
> 97 Avenue de Tervuren Phone: +32 (0)2 735.91.59 Ext. 55
> 1040 Brussels Fax: +32 (0)2 732.12.19
> Belgium  http://www.msg-i.com
> 
>



Re: Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Pascal Forget

Hi Wayne,

Welcome to the club.  I have been spending countless hours trying to 
resolve the
same problem you describe.  I'm trying to buid mod_jk on Linux.  I'll 
let you know
if I find the answer, and I hope you'll do the same if you solve the 
problem before me.

Best Regards,

Pascal


Wayne Pascoe wrote:

>Hi all,
>
>I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
>building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20
>
>I have unpacked the tomcat connectors source, and then cd'd to
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native
>
>>From there, cd to apache-1.3, edit the build-unix.sh file to change
>JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
>and change linux on that line to freebsd. This allows me to build and
>install a mod_jk module into my apache libexec dir by running sh
>build-unix.sh
>
>Following the same process in apache-2.0, and things start out fine. I then
>get the following :
>.
>.
>.
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
>k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
>jk_ajp_common.lo: In function `ajp_destroy':
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
>k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
>jk_ajp_common.lo: In function `ajp_done':
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
>k_ajp_common.c(.text+0x2097): undefined reference to `pthread_mutex_unlock'
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
>k_ajp_common.c(.text+0x20d6): undefined reference to `pthread_mutex_destroy'
>jk_ajp_common.lo: In function `ajp_get_endpoint':
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
>k_ajp_common.c(.text+0x21aa): undefined reference to `pthread_mutex_unlock'
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
>k_ajp_common.c(.text+0x21fe): undefined reference to `pthread_mutex_destroy'
>apxs:Error: Command failed with rc=65536
>.
>Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
>cp: mod_jk.so: No such file or directory
>Done. Install by running ./install-unix.sh
>
>There are quite a few screens of this error.
>
>Does anyone have any advice for fixing this? I'd really like to use apache 2
>on this server.
>
>Thanks in advance,
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Michael Delamere

Hi,

I managed to get mod_jk compiled on:

SuSe Linux 7.1 with Apache2.0.35:

The only problem was that when calling a servlet I got "jakarta-servlet" not
found.  Otherwise, Apache accepted it without an error message.

bye Michael Delamere



- Original Message -
From: "Pascal Forget" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 5:23 PM
Subject: Re: Compiling mod_jk for Apache 2.0.35


> Hi Wayne,
>
> Welcome to the club.  I have been spending countless hours trying to
> resolve the
> same problem you describe.  I'm trying to buid mod_jk on Linux.  I'll
> let you know
> if I find the answer, and I hope you'll do the same if you solve the
> problem before me.
>
> Best Regards,
>
> Pascal
>
>
> Wayne Pascoe wrote:
>
> >Hi all,
> >
> >I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
> >building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20
> >
> >I have unpacked the tomcat connectors source, and then cd'd to
> >/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native
> >
> >>From there, cd to apache-1.3, edit the build-unix.sh file to change
> >JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find
fails,
> >and change linux on that line to freebsd. This allows me to build and
> >install a mod_jk module into my apache libexec dir by running sh
> >build-unix.sh
> >
> >Following the same process in apache-2.0, and things start out fine. I
then
> >get the following :
> >.
> >.
> >.
>
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
> >k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
> >jk_ajp_common.lo: In function `ajp_destroy':
>
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
> >k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
> >jk_ajp_common.lo: In function `ajp_done':
>
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
> >k_ajp_common.c(.text+0x2097): undefined reference to
`pthread_mutex_unlock'
>
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
> >k_ajp_common.c(.text+0x20d6): undefined reference to
`pthread_mutex_destroy'
> >jk_ajp_common.lo: In function `ajp_get_endpoint':
>
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
> >k_ajp_common.c(.text+0x21aa): undefined reference to
`pthread_mutex_unlock'
>
>/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/
j
> >k_ajp_common.c(.text+0x21fe): undefined reference to
`pthread_mutex_destroy'
> >apxs:Error: Command failed with rc=65536
> >.
> >Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
> >cp: mod_jk.so: No such file or directory
> >Done. Install by running ./install-unix.sh
> >
> >There are quite a few screens of this error.
> >
> >Does anyone have any advice for fixing this? I'd really like to use
apache 2
> >on this server.
> >
> >Thanks in advance,
> >
>
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Anthony W. Marino

I, too, am having problems compiling this on Linux.

Anthony

> Hi Wayne,
>
> Welcome to the club.  I have been spending countless hours trying to
> resolve the
> same problem you describe.  I'm trying to buid mod_jk on Linux.  I'll
> let you know
> if I find the answer, and I hope you'll do the same if you solve the
> problem before me.
>
> Best Regards,
>
> Pascal
>
> Wayne Pascoe wrote:
> >Hi all,
> >
> >I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
> >building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20
> >
> >I have unpacked the tomcat connectors source, and then cd'd to
> >/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native
> >
> >>From there, cd to apache-1.3, edit the build-unix.sh file to change
> >
> >JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
> >and change linux on that line to freebsd. This allows me to build and
> >install a mod_jk module into my apache libexec dir by running sh
> >build-unix.sh
> >
> >Following the same process in apache-2.0, and things start out fine. I
> > then get the following :
> >.
> >.
> >.
> >/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
> >/j k_ajp_common.c(.text+0x1eaa): undefined reference to
> > `pthread_mutex_init' jk_ajp_common.lo: In function `ajp_destroy':
> >/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
> >/j k_ajp_common.c(.text+0x1fb7): undefined reference to
> > `pthread_mutex_lock' jk_ajp_common.lo: In function `ajp_done':
> >/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
> >/j k_ajp_common.c(.text+0x2097): undefined reference to
> > `pthread_mutex_unlock'
> > /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.
> >0/j k_ajp_common.c(.text+0x20d6): undefined reference to
> > `pthread_mutex_destroy' jk_ajp_common.lo: In function `ajp_get_endpoint':
> >/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
> >/j k_ajp_common.c(.text+0x21aa): undefined reference to
> > `pthread_mutex_unlock'
> > /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.
> >0/j k_ajp_common.c(.text+0x21fe): undefined reference to
> > `pthread_mutex_destroy' apxs:Error: Command failed with rc=65536
> >.
> >Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
> >cp: mod_jk.so: No such file or directory
> >Done. Install by running ./install-unix.sh
> >
> >There are quite a few screens of this error.
> >
> >Does anyone have any advice for fixing this? I'd really like to use apache
> > 2 on this server.
> >
> >Thanks in advance,



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Compiling mod_jk on Win2K, anyone?

2002-04-25 Thread Tim Cronin

this is for mod_jk but it might help...

http://www.acg-gmbh.de/mod_jk/

-Original Message-
From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:06 AM
To: Tomcat Users List (E-mail)
Subject: Compiling mod_jk on Win2K, anyone?


Hello
 
It seems some people are having success getting mod_jk2 compiled on Linux
platforms. Is this the only way?
 
Compiling the java side of the connector is, of course, painless and works
like a charm. The native side appears to be "somewhat confusing". I have
downloaded Cygwin which gave me some of the missing include files, however,
now the compiler wants "sys/socketvar.h" which doesn't exist in either
VC++'s or Cygwin's include directories.
 
Any ideas would be welcome
Rory Douglas
Sun Chemical Corporation
(201) 224-4600 x178
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Compiling mod_jk on Win2K, anyone?

2002-04-25 Thread Simon Stewart

On Thu, Apr 25, 2002 at 12:06:17PM -0400, Douglas, Rory wrote:
> Hello
>  
> It seems some people are having success getting mod_jk2 compiled on Linux
> platforms. Is this the only way?

There is a site with a Win32 DLL on it for mod_jk somewhere, but I
can't remember where. It's been mentioned in the last week or so,
though, so perhaps you can trawl the archives?

> Compiling the java side of the connector is, of course, painless and works
> like a charm. The native side appears to be "somewhat confusing". I have
> downloaded Cygwin which gave me some of the missing include files, however,
> now the compiler wants "sys/socketvar.h" which doesn't exist in either
> VC++'s or Cygwin's include directories.

I'd seriously consider moving to mod_webapp if you're using Apache
2. IME, mod_jk doesn't work at all (well, it loads, but doesn't
connect to Tomcat properly or serve content) and mod_jk2 likes to
throw itself into an infinite loop, sucking up memory until something
dies. Not good. This is under Linux, though, so perhaps you'll have
more luck

Cheers,

Simon

-- 
"A friend of mine is into Voodoo Acupuncture. You don't have to
go. You'll just be walking down the street, and...ohh,
that's much better..." --- Steven Wright

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Compiling mod_jk on Win2K, anyone?

2002-05-02 Thread bm

hi
is there any way i can get mod_ssl for apache 2 windows

or how to generate that  ?
thanks in advance
Reg
BM

Tim Cronin wrote:

> this is for mod_jk but it might help...
>
> http://www.acg-gmbh.de/mod_jk/
>
> -Original Message-
> From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 11:06 AM
> To: Tomcat Users List (E-mail)
> Subject: Compiling mod_jk on Win2K, anyone?
>
> Hello
>
> It seems some people are having success getting mod_jk2 compiled on Linux
> platforms. Is this the only way?
>
> Compiling the java side of the connector is, of course, painless and works
> like a charm. The native side appears to be "somewhat confusing". I have
> downloaded Cygwin which gave me some of the missing include files, however,
> now the compiler wants "sys/socketvar.h" which doesn't exist in either
> VC++'s or Cygwin's include directories.
>
> Any ideas would be welcome
> Rory Douglas
> Sun Chemical Corporation
> (201) 224-4600 x178
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Issue compiling mod_jk 1.2.10 on AIX

2005-07-13 Thread Ben Ricker
After 800 tries at getting APache compiled with the AIX C compiler
xlc_r, I now need to compile mod_k. I downloaded the sources for
connector 1.2.10.

I am trying to compile it on AIX 5L with uname -a "AIX hostname 2 5
00C04A2E4C00". I am using AIX's cc_r compiler per instructions from
http://people.apache.org/~trawick/tomcataix.html#mod_jk_gcc.

I think the compile is in some sort of loop. Here is the output from
truss that repeats over and over:

statx("/usr/bin/ln", 0x2FF211B8, 76, 0) = 0
link("/tmp/sh3686418.1", "/tmp/sh3686418.3671") = 0
kfork() = 3850378
_sigaction(20, 0x, 0x2FF21210)  = 0
_sigaction(20, 0x2FF21210, 0x2FF21220)  = 0
kwaitpid(0x2FF21280, -1, 6, 0x, 0x) = 3850378
_sigaction(20, 0x, 0x2FF21210)  = 0
_sigaction(20, 0x2FF21210, 0x2FF21220)  = 0
statx("/usr/bin/sleep", 0x2FF20F18, 76, 0)  = 0

It creates a link in /tmp, does that kfork stuff, and then sleeps
until the next symlink. The numbers on the tmp file keep going up
(i.e., the "3671" in the "/tmp/sh3686418.foo").

Here is the make it is hanging on:

/bin/sh /sys_apps_01/apache/server20Cent/versions/server2.0.47/build/libtool
--silent --mode=compile cc_r
-I/sys_apps_01/apache/server20Cent/versions/server2.0.47/include -g -g
-qHALT=E -DHAVE_APR
-I/apps_01/webapps/apache_compile/httpd-2.0.47/srclib/apr/include -g
-U__STR__ -D_THREAD_SAFE -D_USE_IRS -I /include -I /include/ -c
jk_ajp12_worker.c

My config was: "CC=cc_r" ./configure --with-apxs=/path/to/apache/bin/apxs"

I also tried to use Gcc and it hung just the same as cc_r did.

Any ideas,

Ben RIcker

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



Some trouble compiling mod_jk (solved, actually)

2005-03-02 Thread David Tonhofer, m-plify S.A.
Hi,
I have managed to compile the "mod_jk" shared object that comes
with jakarta-tomcat-5.5.7-src.tar.gz. That could have been
easier!
Here's a problem I encountered on Red Hat ES 4, just wanted
to share.
If anyone thinks this belongs into bugzilla, I will gladly
add it.
Running "ant native" yields a libtool error that stops the
build process in compile and link mode:
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
...which is not nice. Apparently the 'tag' can be set to
anything -- I haven't found out what it actually is for from
the libtool documentation (!!) This is libtool-1.5.6-4
The workaround:
Edit
jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/LibtoolCompiler.java
jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/LibtoolLink.java
and add
   cmd.createArgument().setValue("--tag=something");
after the existing.
   cmd.createArgument().setValue("--mode=compile");
There might be a way to give the "So" Task an appropriate argument, too.
But I think not.
On to the next problem.







-- David Tonhofer
  M-PLIFY S.A.
  Resp. Informatique
  47, av. de la Liberté
  L-1931 Luxembourg
  Tel: +352 261846-52
  Fax: +352 261846-46
  Mob: +352 021-139031

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


Error while compiling mod_jk for HP-UX

2002-06-13 Thread Ravi Verma

Friends,

I am trying to compile mod_jk for HP-UX and I am getting the following
error:

Building mod_jk
gcc -DHPUX11 -DMOD_SSL=208103 -DMOD_PERL -DUSE_PERL_SSI -D_POSIX_C_SOURCE=19
9506
L -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC -fno-s
tric
t-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DUSE
_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -O2 -DCHROOT -fPIC
 -DS
HARED_MODULE -I/opt/apache/include -I../common -I/opt/java1.3/include -I/opt
/jav
a1.3/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
In file included from /usr/include/netdb.h:69,
 from ../common/jk_global.h:84,
 from ../common/jk_logger.h:65,
 from ../common/jk_ajp12_worker.h:65,
 from ../common/jk_ajp12_worker.c:63:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
/usr/include/sys/socket.h:501: parse error before "__sendfile64"
/usr/include/sys/socket.h:501: parse error before "bsize_t"
/usr/include/sys/socket.h:502: parse error before "__sendpath64"
/usr/include/sys/socket.h:502: parse error before "bsize_t"
/usr/include/sys/socket.h:504: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:504: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:505: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:505: parse error before "bsize_t"
In file included from /usr/include/sys/mp.h:55,
 from /usr/include/sys/malloc.h:59,
 from /usr/include/net/netmp.h:53,
 from /usr/include/sys/socketvar.h:61,
 from ../common/jk_global.h:92,
 from ../common/jk_logger.h:65,
 from ../common/jk_ajp12_worker.h:65,
 from ../common/jk_ajp12_worker.c:63:
/usr/include/machine/sys/setjmp.h: At top level:
/usr/include/machine/sys/setjmp.h:45: redefinition of `struct label_t'
apxs:Break: Command failed with rc=1
Error with apxs


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Compiling mod_jk for Apache 2.0.35 on Win2K

2002-04-24 Thread Douglas, Rory

I'm trying to compile mod_jk on Win2k Server, using the source from the
Tomcat 4.0.4b2 connectors download. The Ant build failed initially when it
couldn't find windows.h, but running vcvars32.bat fixed that.

Now, it fails because it can't find unistd.h, which a hard drive search
revealed doesn't exist in my VC++ directory at all. I was under the
impression unistd.h is a very common include file (on Unix at any rate).
Anyone else have the same experience?

Rory Douglas
Sun Chemical Corporation
(201) 224-4600 x178
[EMAIL PROTECTED]



Error compiling mod_jk on Red Hat 9

2004-04-02 Thread Ivan Venuti
Hi,

I'm trying to compile the AJP connectors from source in order to communicate
with Apache 2.0.40 installed in my Red Hat 9a. I've installed tomcat 4.1.29
and I've done:

$ unzip jakarta-tomcat-connectors-jk-1.2-src-current.zip
$ cd jakarta-tomcat-connectors-jk-1.2.5-src/jk/native
$ ./buildconf.sh
$ ./configure --with-apxs=/usr/sbin/apxs --enable-EAPI
$ make

This command doesn't terminate correctly. This is the error:

i386-redhat-linux-gcc: ../common/jk_ajp12_worker.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_connect.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_msg_buff.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_util.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp13.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_pool.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_worker.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp13_worker.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_lb_worker.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_sockbuf.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_map.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_uri_worker_map.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_ajp14.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp14_worker.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_md5.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp_common.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_context.lo: No such file or directory
make[1]: *** [mod_jk.la] Error 1
make[1]: Leaving directory
`/home/caribel/INSTALL.d/jakarta-tomcat-connectors-jk
-1.2.5-src/jk/native/apache-2.0'
make: *** [all-recursive] Error 1

anyone can help me?
Thanks in advance

-- Ivan Venuti



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



compiling mod_jk 1.2.8 from source on Win32

2005-01-31 Thread Charles Baker
I have visual studio 6 service pack 5 installed. I have the processor
packs installed. I have set APACHE1_HOME to my apache_1.3.33 source
directory. I have set JAVA_HOME to my JDK directory. APACHE_HOME is set
to the apache installation directory. A colleague advised me to change
these two lines in the mod_jk.dsp file from 

ADD CPP /nologo /MD /W3 /O2 /Zi /I "..\common" /I
"$(APACHE1_HOME)\include" /I "$(APACHE1_HOME)\src\include" /I
"$(APACHE1_HOME)\src\os\win32" /I "$(JAVA_HOME)\include" /I
"$(JAVA_HOME)\include\win32" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D
"_MBCS" /D "_USRDLL" /D "MOD_JK_EXPORTS" /Fd"Release\mod_jk_src" /FD /

to

ADD CPP /nologo /MD /W3 /O2 /Zi /I "..\common" /I
"$(APACHE1_HOME)\include" /I "$(APACHE1_HOME)\src\include" /I
"$(APACHE1_HOME)\src\os\win32" /I "$(JAVA_HOME)\include" /I
"$(JAVA_HOME)\include\win32" /D "EAPI" /D "WIN32" /D "NDEBUG" /D
"_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "MOD_JK_EXPORTS"
/Fd"Release\mod_jk_src" /FD /

Note the only change is the addition of /D "EAPI". I did this in the
release and debug sections, and of course uncommented those lines. I'm
expecting this to produce a DLL. However I get 19 errors when I run
``MSDEV mod_jk.dsp /MAKE ALL''. Here are the errors from the Release
build:

Configuration: mod_jk - Win32
Release
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_ajp_c
ommon.c(
32): Could not find the file util_ebcdic.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_ajp_c
ommon.c(
35): Could not find the file novsock2.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(47):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(51):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(52):
 Could not find the file apr_strings.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(53):
 Could not find the file apr_lib.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(66):
 Could not find the file unistd.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(68):
 Could not find the file novsock2.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(75):
 Could not find the file netdb.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(76):
 Could not find the file netinet/in.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(77):
 Could not find the file sys/socket.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(80):
 Could not find the file netinet/tcp.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(81):
 Could not find the file arpa/inet.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(82):
 Could not find the file sys/un.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(84):
 Could not find the file sys/socketvar.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(87):
 Could not find the file sys/select.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(91):
 Could not find the file sys/time.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(92):
 Could not find the file sys/ioctl.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(172)
: Could not find the file util_ebcdic.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_mt.h(
59): Could not find the file pthread.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(47):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(51):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(52):
 Could not find the file apr_strings.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(53):
 Could not find the file apr_lib.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(66):
 Could not find the file unistd.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(68):
 Could not find the file novsock2.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(75):
 Could not find the file netdb.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(76):
 Could not find the file netinet/in.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(77):
 Could not find the file sys/socket.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(80):
 Could not find the file netinet/tcp.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_glob

Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Claude Coiffier

Hi,

I'm working with Apache 2.0 and Tomcat 4.0.4,
I've been trying to execute build-unix.sh to compile mod_jk under Linux, and
I get the following error :

...
/usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_jk.so -rpath
/usr/local/apache2/modules -module -avoid-version -I../common -I/usr/local/a
pache2/include/apr-util -I/usr/local/j2sdk1.4.0_01/include -I/usr/local/j2sd
k1.4.0_01/include/linux   mod_jk.lo jk_worker.lo jk_util.lo
jk_uri_worker_map.lo jk_sockbuf.lo jk_pool.lo jk_nwmain.lo jk_msg_buff.lo
jk_md5.lo jk_map.lo jk_lb_worker.lo jk_jni_worker.lo jk_context.lo
jk_connect.lo jk_ajp_common.lo jk_ajp14_worker.lo jk_ajp14.lo
jk_ajp13_worker.lo jk_ajp13.lo jk_ajp12_worker.lo
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_jk.o: In function `ws_start_response':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:225: undefined reference to `apr_psprintf'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:229: undefined reference to `apr_pstrdup'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:230: undefined reference to `ap_content_type_tolower'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:233: undefined reference to `apr_table_set'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:236: undefined reference to `apr_table_set'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:239: undefined reference to `apr_table_set'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:246: undefined reference to `apr_date_parse_http'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:246: undefined reference to `ap_update_mtime'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:247: undefined reference to `ap_set_last_modified'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:249: undefined reference to `apr_table_add'
mod_jk.o: In function `ws_read':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:280: undefined reference to `ap_should_client_block'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:287: undefined reference to `ap_get_client_block'
mod_jk.o: In function `ws_write':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:339: undefined reference to `ap_rwrite'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:354: undefined reference to `ap_rflush'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:355: undefined reference to `ap_log_error'
mod_jk.o: In function `jk_error_exit':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:384: undefined reference to `apr_pvsprintf'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:387: undefined reference to `ap_log_error'
mod_jk.o: In function `get_content_length':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:398: undefined reference to `apr_table_get'
mod_jk.o: In function `init_ws_service':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:431: undefined reference to `ap_get_remote_host'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:437: undefined reference to `ap_get_server_name'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:437: undefined reference to `ap_get_server_port'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:453: undefined reference to `apr_sockaddr_port_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:456: undefined reference to `ap_get_server_version'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:498: undefined reference to `ap_os_escape_path'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:514: undefined reference to `ap_add_common_vars'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:517: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:522: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:529: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:532: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:538: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:551: undefined reference to `apr_palloc'
/usr/local/jakarta-to

Error when compiling mod_jk under HPUX 11.00 : jk_global.h

2001-05-03 Thread Marc-henri PAMISEUX

Hi,

I'm trying to compile mod_jk under HPUX 11.00 with gcc.
gcc (2.95.2) works find, i've ever compiled some opensources with it.
I've also installed binutils before gcc.
I've installed apache from the source and it works properly with a DSO
support.
I've download jakarta-tomcat-3.2.1-bin, and it work properly on hpux 11.00,
but now i'd like to compile mod_jk.
So, i've download jakarta-tomcat-3.2.1-src, and i went in
src/native/apache1.3 to compile mod_jk.
I'm trying to compile mod_jk with the following Makefile (Notes that all the
path are correct on my system):

OS=hp-ux

JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS}
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads
#ifndef APXS
   APXS=/usr/sbin/apxs
#endif

JK=../jk/
SRCS=../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c
../jk/jk_util.c ../jk/jk_ajp13.c \
  ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c
../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c \
  ../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c

all: mod_jk.so

mod_jk.so:
$(APXS) -I ../jk ${JAVA_INCL} -c -o $@ mod_jk.c $(SRCS)

clean:
rm *.o *.so

Then, i did a make, and the result is :

In file included from mod_jk.c:89:
../jk/jk_global.h:91: sys/select.h: No such file or directory
apxs:Break: Command failed with rc=1
*** Error exit code 1

Stop.

Daniel Brack said on Fri, 9 Mar 2001 on this list that he know that there
are problems compiling on HPUX11 and modifications in jk_global.h and
jk_pool.h are neccesary.
Ok, maybe, but i don't know what sort of modifications in jk_global.h and
jk_pool.h i need to apply ?
Of course, on hpux, there is no sys/select.h anywhere... It's a glibc lib !
Does anyone can help me, and show me these modifications ?

Regards,

Marc-Henri PAMISEUX
Administrateur Systèmes et Réseaux
[EMAIL PROTECTED]

CLG
34 Avenue des Champs Elysées
75008 Paris




Re: Compiling mod_jk for Apache 2.0.35 on Win2K

2002-04-24 Thread bm

 hi

here is it
 http://cygwin.com/setup.exe

 download and install this. you will get unistd.h

 I am also trying to link tomcat 4 and apache 2.0 in win 2000

Pls give me some kind of help once if you succeed doing this mod_jk under
win2000

regards
BM

"Douglas, Rory" wrote:

> I'm trying to compile mod_jk on Win2k Server, using the source from the
> Tomcat 4.0.4b2 connectors download. The Ant build failed initially when it
> couldn't find windows.h, but running vcvars32.bat fixed that.
>
> Now, it fails because it can't find unistd.h, which a hard drive search
> revealed doesn't exist in my VC++ directory at all. I was under the
> impression unistd.h is a very common include file (on Unix at any rate).
> Anyone else have the same experience?
>
> Rory Douglas
> Sun Chemical Corporation
> (201) 224-4600 x178
> [EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Turner, John


Cool error!

Which build process are you doing?  I don't have a build-unix.sh in my dir
tree.

On a Linux (I use RH), you should be able to simply do the following:

- change to /path/to/connector-src/jk/native
- run buildconf.sh
- run "./configure --with-apxs=/some/path/to/apache2/bin/apxs
--with-java-home=${JAVA_HOME}"
- run "make"
- take the resulting mod_jk.so in apache-2.0 directory and copy it to
$APACHE_HOME/modules

John

> -Original Message-
> From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 9:03 AM
> To: 'Tomcat Users List' (E-mail)
> Subject: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
> 
> 
> Hi,
> 
> I'm working with Apache 2.0 and Tomcat 4.0.4,
> I've been trying to execute build-unix.sh to compile mod_jk 
> under Linux, and
> I get the following error :
> 

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




RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Claude Coiffier

Uh sorry, the error log seems to have disappeared between my sending it and
my ail being posted ! :)

To say it short, it's in the last line of the compilation (the 'link' line),
I get
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_jk.o: In function `ws_start_response':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:225: undefined reference to `apr_psprintf'
... Then a heap of 'undefined reference' error lines.

Thank if you can help ! :)

> --
> Claude Coiffier -TEAMLOG
> +33(0)4 76 61 36 48
>


-Message d'origine-
De : Turner, John [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 6 septembre 2002 15:19
À : 'Tomcat Users List'
Objet : RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem



Cool error!

Which build process are you doing?  I don't have a build-unix.sh in my dir
tree.

On a Linux (I use RH), you should be able to simply do the following:

- change to /path/to/connector-src/jk/native
- run buildconf.sh
- run "./configure --with-apxs=/some/path/to/apache2/bin/apxs
--with-java-home=${JAVA_HOME}"
- run "make"
- take the resulting mod_jk.so in apache-2.0 directory and copy it to
$APACHE_HOME/modules

John

> -Original Message-
> From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 9:03 AM
> To: 'Tomcat Users List' (E-mail)
> Subject: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
>
>
> Hi,
>
> I'm working with Apache 2.0 and Tomcat 4.0.4,
> I've been trying to execute build-unix.sh to compile mod_jk
> under Linux, and
> I get the following error :
>

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


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




RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Turner, John


No, I saw it.  I deleted it in my reply, as there was no need to keep
sending it back and forth.

Which build process are you using?  Which Linux?  I am using RedHat, and I
don't have a build-unix.sh in my dir tree.

John


> -Original Message-
> From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 10:53 AM
> To: 'Tomcat Users List'
> Subject: RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
> 
> 
> Uh sorry, the error log seems to have disappeared between my 
> sending it and
> my ail being posted ! :)
> 
> To say it short, it's in the last line of the compilation 
> (the 'link' line),
> I get
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> mod_jk.o: In function `ws_start_response':
> /usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/ap
> ache-2.0/mod_j
> k.c:225: undefined reference to `apr_psprintf'
> ... Then a heap of 'undefined reference' error lines.
> 
> Thank if you can help ! :)
> 
> > --
> > Claude Coiffier -TEAMLOG
> > +33(0)4 76 61 36 48
> >
> 
> 
> -Message d'origine-
> De : Turner, John [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 6 septembre 2002 15:19
> À : 'Tomcat Users List'
> Objet : RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
> 
> 
> 
> Cool error!
> 
> Which build process are you doing?  I don't have a 
> build-unix.sh in my dir
> tree.
> 
> On a Linux (I use RH), you should be able to simply do the following:
> 
> - change to /path/to/connector-src/jk/native
> - run buildconf.sh
> - run "./configure --with-apxs=/some/path/to/apache2/bin/apxs
> --with-java-home=${JAVA_HOME}"
> - run "make"
> - take the resulting mod_jk.so in apache-2.0 directory and copy it to
> $APACHE_HOME/modules
> 
> John
> 
> > -Original Message-
> > From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 06, 2002 9:03 AM
> > To: 'Tomcat Users List' (E-mail)
> > Subject: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
> >
> >
> > Hi,
> >
> > I'm working with Apache 2.0 and Tomcat 4.0.4,
> > I've been trying to execute build-unix.sh to compile mod_jk
> > under Linux, and
> > I get the following error :
> >
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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




Re: Error when compiling mod_jk under HPUX 11.00 : jk_global.h

2001-05-03 Thread Brendan McKenna

Hi,

In general, it's an iterative process.  You don't have 
sys/select.h on your machine.  Fine.  Comment it out and try your 
compile again.  This time it'll fail because those items that it 
expected to find definitions for in that header file aren't there.  So 
you'll need to find where on your system those items are defined. (In 
this case, you're going to need to find where the select(2) call is 
defined on your system, as well as the macros that are used with it.  
Your system's man pages are a good place to start your search.)  Where 
you commented out the '#include ', now add in the correct 
includes for your system.  And so on...

Repeat this process for all of the headers you don't have, 
until you don't get any errors any more.

I don't have access to an HPUX system, so I can't help any more 
than that, sorry.


Brendan
-- 
Brendan McKennaEmail: [EMAIL PROTECTED]
Development Strategist Phone: +353-61-338177
Taringold Ltd. Fax:   +353-61-338065





Re: Error when compiling mod_jk under HPUX 11.00 : jk_global.h

2001-05-03 Thread Marc-henri PAMISEUX

Hi,

Ok, it works ...
I've only comment the line :   #include  in
../jk/jk_global.h
Then the make command never give me any error message.
So, i copy mod_jk.so in /usr/lib/apache, i modify
/etc/httpd/conf/httpd.conf, and add the following lines  :
...
LoadModule jk_module/usr/lib/apache/mod_jk.so
...
AddModule mod_jk.c
...
JkWorkersFile   /opt/jakarta/jakarta-tomcat/conf/workers.properties
JkLogFile   /var/log/httpd/default/mod_jk.log
JkLogLevel  warn
...

Before these modification, Apache works properly.
Now, when i start apache, i've got this error message :

# /usr/sbin/apachectl start

/usr/lib/dld.sl: Unresolved symbol: dlclose (code)  from
/usr/lib/apache/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlopen (code)  from
/usr/lib/apache/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlerror (code)  from
/usr/lib/apache/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlsym (code)  from
/usr/lib/apache/mod_jk.so
Syntax error on line 51 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/mod_jk.so into server: Unresolved external
/usr/sbin/apachectl start: httpd could not be started

The line 51 is : "LoadModule jk_module/usr/lib/apache/mod_jk.so"

Does anybody get this error ?

Regards,

Marc-Henri PAMISEUX
[EMAIL PROTECTED]




Re: Error when compiling mod_jk under HPUX 11.00 : jk_global.h

2001-05-03 Thread John P. Dodge

Do not use sys/select.h on HPUX systems

Another alternative is to add an extra #ifndef in jk_global.h, that way
the same script will continue to work on other platforms. Change
jk_global.h to look like...

(jk_global.h somewhere near line 86)

#ifndef NETWARE
#include 
#include 
#include 
#include 
 do not include sys/select.h if using HPUX11 
#ifndef HPUX11
  #include 
#endif
  
#endif


On Thu, 3 May 2001, Brendan McKenna wrote:

> Hi,
> 
>   In general, it's an iterative process.  You don't have 
> sys/select.h on your machine.  Fine.  Comment it out and try your 
> compile again.  This time it'll fail because those items that it 
> expected to find definitions for in that header file aren't there.  So 
> you'll need to find where on your system those items are defined. (In 
> this case, you're going to need to find where the select(2) call is 
> defined on your system, as well as the macros that are used with it.  
> Your system's man pages are a good place to start your search.)  Where 
> you commented out the '#include ', now add in the correct 
> includes for your system.  And so on...
> 
>   Repeat this process for all of the headers you don't have, 
> until you don't get any errors any more.
> 
>   I don't have access to an HPUX system, so I can't help any more 
> than that, sorry.
> 
> 
>   Brendan
> -- 
> Brendan McKenna  Email: [EMAIL PROTECTED]
> Development Strategist   Phone: +353-61-338177
> Taringold Ltd.   Fax:   +353-61-338065
> 
> 


"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group





RE: Error when compiling mod_jk under HPUX 11.00 : jk_global.h

2001-05-04 Thread GOMEZ Henri

Something we try to add in web-connector will be 
autoconf/libtool stuff to ease the build of mod_jk :)

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Marc-henri PAMISEUX [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 03, 2001 5:13 PM
>To: [EMAIL PROTECTED]
>Subject: Error when compiling mod_jk under HPUX 11.00 : jk_global.h
>
>
>Hi,
>
>I'm trying to compile mod_jk under HPUX 11.00 with gcc.
>gcc (2.95.2) works find, i've ever compiled some opensources with it.
>I've also installed binutils before gcc.
>I've installed apache from the source and it works properly with a DSO
>support.
>I've download jakarta-tomcat-3.2.1-bin, and it work properly 
>on hpux 11.00,
>but now i'd like to compile mod_jk.
>So, i've download jakarta-tomcat-3.2.1-src, and i went in
>src/native/apache1.3 to compile mod_jk.
>I'm trying to compile mod_jk with the following Makefile 
>(Notes that all the
>path are correct on my system):
>
>OS=hp-ux
>
>JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS}
>JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
>${JAVA_HOME}/lib/${ARCH}/native_threads
>#ifndef APXS
>   APXS=/usr/sbin/apxs
>#endif
>
>JK=../jk/
>SRCS=../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c
>../jk/jk_util.c ../jk/jk_ajp13.c \
>  ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c
>../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c \
>  ../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c
>
>all: mod_jk.so
>
>mod_jk.so:
>$(APXS) -I ../jk ${JAVA_INCL} -c -o $@ mod_jk.c $(SRCS)
>
>clean:
>rm *.o *.so
>
>Then, i did a make, and the result is :
>
>In file included from mod_jk.c:89:
>../jk/jk_global.h:91: sys/select.h: No such file or directory
>apxs:Break: Command failed with rc=1
>*** Error exit code 1
>
>Stop.
>
>Daniel Brack said on Fri, 9 Mar 2001 on this list that he know 
>that there
>are problems compiling on HPUX11 and modifications in jk_global.h and
>jk_pool.h are neccesary.
>Ok, maybe, but i don't know what sort of modifications in 
>jk_global.h and
>jk_pool.h i need to apply ?
>Of course, on hpux, there is no sys/select.h anywhere... It's 
>a glibc lib !
>Does anyone can help me, and show me these modifications ?
>
>Regards,
>
>Marc-Henri PAMISEUX
>Administrateur Systèmes et Réseaux
>[EMAIL PROTECTED]
>
>CLG
>34 Avenue des Champs Elysées
>75008 Paris
>



Problem with cc-gcc compiling mod_jk in Solaris 9

2004-01-27 Thread Mauricio Cadima
Hi
I'm trying to compile mod_jk in Solaris 9  with Apache 1.3 and Tomcat
4.1, I followed the instructions explained in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/quickhowto.html .

I don't have cc installed so I created a symbolic link to gcc (CC=gcc)
and I added the gcc executable and linker paths in the PATH .  It seems
buildconf.sh and configure are executed successfully, but when I use
make I get illegal compiler argument errors, like if the makefile is
still created for cc :

gcc: unrecognized option `-Xa'
gcc: language ildoff not recognized

I'm using gcc 3.2.3 and jk2, how can I fix this?

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



Re: Problem with cc-gcc compiling mod_jk in Solaris 9

2004-01-27 Thread Mark Eggers
Mauricio,

Are you trying to compile mod_jk, or mod_jk2?

Instead of creating a symbolic link, do the following:

1. Make sure that gcc is in your path (it's usually
installed in /opt/ if I remember
correctly).

2. Set an environment variable:

setenv CC=gcc  (C shell)
export CC=gcc (Bash shell)

3. If you compiled apache yourself, use the same
CPPFLAGS environment variable for this compilation.

4. The configure script will attempt to find java, so
set the JAVA_HOME environment variable to point to
your desired location.

5. For mod_jk2, download the 2.0.2 source, gunzip, and
untar it.

6. Go to the jk/native2 directory and run the
following configure command:

./configure --with-apxs2= \
--with-tomcat41= \
--with-jni

6i. If you have the Perl regular expresions library
installed, use the following configure command

./configure --with-apxs2= \
--with-tomcat41= \
--with-jni --with-pcre

7. Fix a line in server/apache2/Makefile.  The line:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix

should read:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix -laprutil-0

8. Run make

9. The module (mod_jk2.so) and jkjni.so should be in 

../build/jk2/apache2/

5a. For mod_jk, download the 1.25 source, gunzip it,
and untar it.

6a. Go to the jk/native directory and run the
following configure command:

./configure --with-apxs= \
--with-jni

7a. Run make

8a. The module (mod_jk.so) should be in apache2/

9a. The jni component (jkjni_cb.so) should be in jni/

That all being said, I've not used the mod_jk.so or
jni component much.  I use mod_jk2.so and jkjni.so on
Linnux, and mod_jk2.dll and jkjni.dll on Windows/2000.

Hope this helps you get started.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: Problem with cc-gcc compiling mod_jk in Solaris 9

2004-01-28 Thread Mauricio Cadima
Mark
I really appreciate your help.
I execute the steps you describe before send my question, I was using
Apache 1.3, so I updated to 2.0 and I did not have any problem. 

Anyway I have a doubt, you said that is needed add "laprutil-0" to
JK_LDFLAGS before run make, but I was able to compile the mod_jk2.so
with and without this option, what is this for?

Thanks




-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 4:46 PM
To: Tomcat Users List
Subject: Re: Problem with cc-gcc compiling mod_jk in Solaris 9 

Mauricio,

Are you trying to compile mod_jk, or mod_jk2?

Instead of creating a symbolic link, do the following:

1. Make sure that gcc is in your path (it's usually
installed in /opt/ if I remember
correctly).

2. Set an environment variable:

setenv CC=gcc  (C shell)
export CC=gcc (Bash shell)

3. If you compiled apache yourself, use the same
CPPFLAGS environment variable for this compilation.

4. The configure script will attempt to find java, so
set the JAVA_HOME environment variable to point to
your desired location.

5. For mod_jk2, download the 2.0.2 source, gunzip, and
untar it.

6. Go to the jk/native2 directory and run the
following configure command:

./configure --with-apxs2= \
--with-tomcat41= \
--with-jni

6i. If you have the Perl regular expresions library
installed, use the following configure command

./configure --with-apxs2= \
--with-tomcat41= \
--with-jni --with-pcre

7. Fix a line in server/apache2/Makefile.  The line:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix

should read:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix -laprutil-0

8. Run make

9. The module (mod_jk2.so) and jkjni.so should be in 

../build/jk2/apache2/

5a. For mod_jk, download the 1.25 source, gunzip it,
and untar it.

6a. Go to the jk/native directory and run the
following configure command:

./configure --with-apxs= \
--with-jni

7a. Run make

8a. The module (mod_jk.so) should be in apache2/

9a. The jni component (jkjni_cb.so) should be in jni/

That all being said, I've not used the mod_jk.so or
jni component much.  I use mod_jk2.so and jkjni.so on
Linnux, and mod_jk2.dll and jkjni.dll on Windows/2000.

Hope this helps you get started.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



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



RE: compiling mod_jk under AIX (or any other OS it wasn't developed on)

2002-11-06 Thread Madere, Colin
I'm having the same build war with my Solaris 7 box.  Have the build scripts
using cc in places even when gcc is specified, have it telling me my apxs
path is invalid when I am absolutely sure it is valid and is not corrupt in
any way.  Every time I fix one thing, another is a problem.

Anyone know what platform you can actually compile the latest version of
JK/JK2 on without errors?  Isn't the whole purpose of having a buildconf and
configure script to solve most of those "where's the library" and other
platform issues?

> -Original Message-
> From: Milt Epstein [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 05, 2002 8:27 PM
> To:   Tomcat Users List
> Subject:  Re: compiling mod_jk under AIX
> 
> On Tue, 5 Nov 2002, Maureen Barger wrote:
> 
> > Thanks. I have googled and see lots of folks with the error but none
> > with the solution. Same with the archives.
> 
> Well, I did a quick search earlier today when I sent that earlier
> response, and I saw lots of people posting with similar errors, and
> lots of responses with suggestions.  And I myself had similar troubles
> some time back, and was able to make use of those suggestions to get
> things working.  So I know there is good information there.  Again,
> the solution involves specifying certain loader/linker options.
> 
> 
> > I am using apache 1.3.14 but my systems group should be pushing
> > 1.3.26 out later today or tomorrow. So John Turner's links don't
> > help -- I tried that too ;-)
> 
> Then the best thing is probably to wait until that's available, for
> many reasons.
> 
> 
> > Now I have discovered that there are a bunch of configure scripts
> available
> > at
> >
> <http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.
> 2.0/src/>
> > and am trying to work with those .. but of course I am still running
> into
> > some problems (some of which are probably my own doing as I am new to
> this
> > I am afraid).
> >
> > I am running
> > ./configure --with-apxs=/path-to/apache_1.3.14/bin/apxs
> > --with-java-home=path-to/jdk_130
> >
> > which goes ok.
> >
> > Then when I issue make, I receive
> > Making all in common
> >
> /bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr
> /bin/X11:/sbin:/var/ifor
> > --mode=compile gcc -I/web2_sys/apache_1.3.14/include -g -O2 -DAIX=43
> > -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -qnogenpcomp
> > -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_HSREGEX -DEAPI
> -D_ALL_SOURCE
> > -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES
> > -qlonglong -g -O2  -I /include -I /include/ -c ./jk_ajp12_worker.c
> > /usr/bin/sh:
> >
> /bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr
> /bin/X11:/sbin:/var/ifor:
> > not found.
> > make: 1254-004 The error code from the last command is 127.
> >
> >
> > Stop.
> > make: 1254-004 The error code from the last command is 1.
> >
> >
> > Stop.
> >
> >
> > Near as I can figure, my /sbin directory does not contain what the
> script
> > is looking for (in this case, /sbin/var/ifor). In fact the sbin
> directory
> > contains only 3 files and one other dir named helpers. So I am not sure
> if
> > I can comment that out or go back to the systems group and ask them or
> what.
> >
> >
> > At 01:26 PM 11/5/2002 -0600, Milt Epstein wrote:
> > >If you really want to build it yourself, I'd take the above error
> > >message and go search comp.unix.aix at groups.google.com.  This is
> > >really an AIX shared library question, not an Apache module question.
> > >I've seen this error before, and the solution is to use certain
> > >linker/loader options (I don't remember exactly which ones, but you
> > >can find them in comp.unix.aix), and/or perhaps find an apxs that
> > >works with AIX.  (If you're using an old Apache, upgrading might help,
> > >because I'd think newer versions would have an apxs that has been
> > >"fixed" for AIX.)
> > >
> > >The other alternative is to find an already built mod_jk, matched
> > >to your version of AIX and Apache.  John Turner has collected a bunch
> > >of built mod_jk's (and corresponding howto's) at his web site,
> > >including some for AIX (I know, because I contributed one :-).  The
> > >web site is something like:
> > >
> > >http://www.johnturner.com/
> > >
> > >Or search the list archives.
&g

RE: compiling mod_jk under AIX (or any other OS it wasn't developed on)

2002-11-07 Thread Henri Gomez
Fix (BSD_COMP) commited

JK2 2.0.2 will include it

Thanks :)



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: compiling mod_jk under AIX (or any other OS it wasn't develop ed on)

2002-11-07 Thread Turner, John

I have had no problems on Red Hat 7.2 & 7.3, and I got an email from someone
who didn't have any major problems on Red Hat 8.  Likewise SuSe and
Mandrake.

I had no problems whatsoever the other day with JK on Solaris 8, but had
problems with JK2 on Solaris 8.  I still need to search bugzilla to see if a
problem I had with JK2 has been submitted...there was no definition for some
socket descriptors in jk_channel_connect.c. The other was user error on my
part by not having a sym-link to libapr.so from libapr.0.so.

For some reason, people seem to be skipping Solaris 7 in the build process,
I don't know why.  I see info on building for Solaris 6 and 8, but not 7.
In my experience, any of the Linux distros should be good to go for building
JK/JK2, which is to be expected with an open source project.  It actually
took quite a bit of effort to get my Solaris 8 box happy with building
GNU-oriented open source code...I had to install dozens of Sun packages on
top of a normal Solaris install, not to mention a whole bunch of packages
from sunfreeware.com before I could even start building.

John


> -Original Message-
> From: Madere, Colin [mailto:colin.madere@;ieminc.com]
> Sent: Wednesday, November 06, 2002 5:47 PM
> To: 'Tomcat Users List'
> Subject: RE: compiling mod_jk under AIX (or any other OS it wasn't
> develop ed on)
> 
> 
> I'm having the same build war with my Solaris 7 box.  Have 
> the build scripts
> using cc in places even when gcc is specified, have it 
> telling me my apxs
> path is invalid when I am absolutely sure it is valid and is 
> not corrupt in
> any way.  Every time I fix one thing, another is a problem.
> 
> Anyone know what platform you can actually compile the latest 
> version of
> JK/JK2 on without errors?  Isn't the whole purpose of having 
> a buildconf and
> configure script to solve most of those "where's the library" 
> and other
> platform issues?
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: compiling mod_jk under AIX (or any other OS it wasn't develop ed on)

2002-11-07 Thread Kajen, Michael
Hi,
Some months ago, I built mod_jk for HPUX and AIX with some difficulty. (The
Solaris build was postponed indefinitely.)
I read all the posted documentation, and nothing compiled 'out of the box'.
I found that many people posted identical errors that I encountered.
The basic problem, as I see it, is that the native compilers are too stupid
to compile the dialect of C code now used in public domain software. (I say
this having been a compiler implementer on a variety of platforms many years
ago).
Based on the errors I encountered with the build scripts and the C code, it
is my opinion that the build scripts were never tested on these platforms.

While it is certainly possible to hack the connector source to compile with
the various native compilers, I think a more realistic approach is to use
GCC, which is what I ended up doing.

mk

-Original Message-
From: Madere, Colin [mailto:colin.madere@;ieminc.com]
Sent: Wednesday, November 06, 2002 5:47 PM
To: 'Tomcat Users List'
Subject: RE: compiling mod_jk under AIX (or any other OS it wasn't
develop ed on)


I'm having the same build war with my Solaris 7 box.  Have the build scripts
using cc in places even when gcc is specified, have it telling me my apxs
path is invalid when I am absolutely sure it is valid and is not corrupt in
any way.  Every time I fix one thing, another is a problem.

Anyone know what platform you can actually compile the latest version of
JK/JK2 on without errors?  Isn't the whole purpose of having a buildconf and
configure script to solve most of those "where's the library" and other
platform issues?

> -Original Message-
> From: Milt Epstein [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 05, 2002 8:27 PM
> To:   Tomcat Users List
> Subject:  Re: compiling mod_jk under AIX
> 
> On Tue, 5 Nov 2002, Maureen Barger wrote:
> 
> > Thanks. I have googled and see lots of folks with the error but none
> > with the solution. Same with the archives.
> 
> Well, I did a quick search earlier today when I sent that earlier
> response, and I saw lots of people posting with similar errors, and
> lots of responses with suggestions.  And I myself had similar troubles
> some time back, and was able to make use of those suggestions to get
> things working.  So I know there is good information there.  Again,
> the solution involves specifying certain loader/linker options.
> 
> 
> > I am using apache 1.3.14 but my systems group should be pushing
> > 1.3.26 out later today or tomorrow. So John Turner's links don't
> > help -- I tried that too ;-)
> 
> Then the best thing is probably to wait until that's available, for
> many reasons.
> 
> 
> > Now I have discovered that there are a bunch of configure scripts
> available
> > at
> >
> <http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.
> 2.0/src/>
> > and am trying to work with those .. but of course I am still running
> into
> > some problems (some of which are probably my own doing as I am new to
> this
> > I am afraid).
> >
> > I am running
> > ./configure --with-apxs=/path-to/apache_1.3.14/bin/apxs
> > --with-java-home=path-to/jdk_130
> >
> > which goes ok.
> >
> > Then when I issue make, I receive
> > Making all in common
> >
> /bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr
> /bin/X11:/sbin:/var/ifor
> > --mode=compile gcc -I/web2_sys/apache_1.3.14/include -g -O2 -DAIX=43
> > -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
> -qnogenpcomp
> > -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL -DUSE_HSREGEX -DEAPI
> -D_ALL_SOURCE
> > -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -q32 -D_LARGE_FILES
> > -qlonglong -g -O2  -I /include -I /include/ -c ./jk_ajp12_worker.c
> > /usr/bin/sh:
> >
> /bin:/usr/common/bin:/usr/common/etc:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr
> /bin/X11:/sbin:/var/ifor:
> > not found.
> > make: 1254-004 The error code from the last command is 127.
> >
> >
> > Stop.
> > make: 1254-004 The error code from the last command is 1.
> >
> >
> > Stop.
> >
> >
> > Near as I can figure, my /sbin directory does not contain what the
> script
> > is looking for (in this case, /sbin/var/ifor). In fact the sbin
> directory
> > contains only 3 files and one other dir named helpers. So I am not sure
> if
> > I can comment that out or go back to the systems group and ask them or
> what.
> >
> >
> > At 01:26 PM 11/5/2002 -0600, Milt Epstein wrote:
> > >If you really want to build it yourself, I'd take the above error
> > >message and go searc

RE: compiling mod_jk under AIX (or any other OS it wasn't develop ed on)

2002-11-07 Thread Brzezinski, Paul J





: -Original Message-
: From: Turner, John [mailto:JTurner@;AAS.com] 
: Sent: Thursday, November 07, 2002 8:40 AM
: To: 'Tomcat Users List'
: Subject: RE: compiling mod_jk under AIX (or any other OS it 
: wasn't develop ed on)
: 
: 
: 
: I have had no problems on Red Hat 7.2 & 7.3, and I got an 
: email from someone who didn't have any major problems on Red 
: Hat 8.  Likewise SuSe and Mandrake.
: 
: I had no problems whatsoever the other day with JK on Solaris 
: 8, but had problems with JK2 on Solaris 8.  I still need to 
: search bugzilla to see if a problem I had with JK2 has been 
: submitted...there was no definition for some socket 
: descriptors in jk_channel_connect.c. The other was user error 
: on my part by not having a sym-link to libapr.so from libapr.0.so.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13386

: For some reason, people seem to be skipping Solaris 7 in the 
: build process, I don't know why.  I see info on building for 
: Solaris 6 and 8, but not 7. In my experience, any of the 
: Linux distros should be good to go for building JK/JK2, which 
: is to be expected with an open source project.  It actually 
: took quite a bit of effort to get my Solaris 8 box happy with 
: building GNU-oriented open source code...I had to install 
: dozens of Sun packages on top of a normal Solaris install, 
: not to mention a whole bunch of packages from sunfreeware.com 
: before I could even start building.
: 
: John
: 
: 
: > -Original Message-
: > From: Madere, Colin [mailto:colin.madere@;ieminc.com]
: > Sent: Wednesday, November 06, 2002 5:47 PM
: > To: 'Tomcat Users List'
: > Subject: RE: compiling mod_jk under AIX (or any other OS it wasn't 
: > develop ed on)
: > 
: > 
: > I'm having the same build war with my Solaris 7 box.  Have
: > the build scripts
: > using cc in places even when gcc is specified, have it 
: > telling me my apxs
: > path is invalid when I am absolutely sure it is valid and is 
: > not corrupt in
: > any way.  Every time I fix one thing, another is a problem.
: > 
: > Anyone know what platform you can actually compile the latest
: > version of
: > JK/JK2 on without errors?  Isn't the whole purpose of having 
: > a buildconf and
: > configure script to solve most of those "where's the library" 
: > and other
: > platform issues?
: > 
: 
: --
: To unsubscribe, e-mail:   
: <mailto:tomcat-user-: [EMAIL PROTECTED]>
: For 
: additional commands, 
: e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
: 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: compiling mod_jk under AIX (or any other OS it wasn't develop ed on)

2002-11-07 Thread Turner, John

Thanks! :)

John


> -Original Message-
> From: Brzezinski, Paul J [mailto:paul.brzezinski@;eds.com]
> Sent: Thursday, November 07, 2002 9:52 AM
> To: Tomcat Users List
> Subject: RE: compiling mod_jk under AIX (or any other OS it wasn't
> develop ed on)
> 
> 
> : -Original Message-
> : From: Turner, John [mailto:JTurner@;AAS.com] 
> : Sent: Thursday, November 07, 2002 8:40 AM
> : To: 'Tomcat Users List'
> : Subject: RE: compiling mod_jk under AIX (or any other OS it 
> : wasn't develop ed on)
> : 
> : 
> : 
> : I have had no problems on Red Hat 7.2 & 7.3, and I got an 
> : email from someone who didn't have any major problems on Red 
> : Hat 8.  Likewise SuSe and Mandrake.
> : 
> : I had no problems whatsoever the other day with JK on Solaris 
> : 8, but had problems with JK2 on Solaris 8.  I still need to 
> : search bugzilla to see if a problem I had with JK2 has been 
> : submitted...there was no definition for some socket 
> : descriptors in jk_channel_connect.c. The other was user error 
> : on my part by not having a sym-link to libapr.so from libapr.0.so.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13386
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>