Re: problem make webapp module for apache

2001-08-12 Thread Steffen Haase

Pier P. Fumagalli wrote:

 RedHat 7.1... Craig did the build (I don't have a Linux box), and AFAIK he
 didn't have any problem... Worked straight out of the box...

Probably I'll try to compile the sources on a Debian Linux. Normally, there should
be no different between Red Hat, SuSE and other Linux boxes... Which OS do you
use? FreeBSD or Solaris? Probably; I'll switch to FreeBSD...


best regards,

Steffen
--
+--- This message is printed on 100% recycled electrons ---+
Steffen Haase   mailto:[EMAIL PROTECTED]
Java SmartCard Development  http://www.celocom.com
http://www.java-club.de
Celo Communications GmbH - The provider of secure e-business
Weissenfelser Str. 46a
D-06217 Merseburg
+--- cêlo, âvi, âtum, (latin) 1 ---+





Re: problem make webapp module for apache

2001-08-12 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:
 
 Probably I'll try to compile the sources on a Debian Linux. Normally, there
 should be no different between Red Hat, SuSE and other Linux boxes... Which OS
 do you use? FreeBSD or Solaris? Probably; I'll switch to FreeBSD...

For development I use OS/X, and in production Solaris 8. I don't use Linux
because of its very poor threading implementation, several bugs in the GLIBC
and a bunch of other stuff I don't like. FreeBSD is very good from the
reliability point of view, but although their threading implementation is
better than Linux (on paper), it's still buggy. I'm waiting for the upcoming
5.0 which is supposed to work great.

SunOS 5.8 (Solaris 8) is a good os, it has by far the best threading
implementation available, it's fast as hell, and I never saw it crash, but
it's slightly picky about hardware requirements, and if something doesn't
work _perfectly_ it complains (a lot). So your PC must be a good one,
especially regarding memory timings (don't mix PC100 and PC133 sims even on
a PC100 mainboard) and hard drive. The only problem is that it's not fully
open source (you can see the sources though), but it comes for free for
anyone for any use up to 4 processors per box... It's good... I like it.

Pier




Re: problem make webapp module for apache

2001-08-12 Thread Steffen Haase

Hi Pier,

thanks for your help and your useful informations.

best regards,

Steffen


Pier P. Fumagalli wrote:

 Steffen Haase at [EMAIL PROTECTED] wrote:
 
  Probably I'll try to compile the sources on a Debian Linux. Normally, there
  should be no different between Red Hat, SuSE and other Linux boxes... Which OS
  do you use? FreeBSD or Solaris? Probably; I'll switch to FreeBSD...

 For development I use OS/X, and in production Solaris 8. I don't use Linux
 because of its very poor threading implementation, several bugs in the GLIBC
 and a bunch of other stuff I don't like. FreeBSD is very good from the
 reliability point of view, but although their threading implementation is
 better than Linux (on paper), it's still buggy. I'm waiting for the upcoming
 5.0 which is supposed to work great.

 SunOS 5.8 (Solaris 8) is a good os, it has by far the best threading
 implementation available, it's fast as hell, and I never saw it crash, but
 it's slightly picky about hardware requirements, and if something doesn't
 work _perfectly_ it complains (a lot). So your PC must be a good one,
 especially regarding memory timings (don't mix PC100 and PC133 sims even on
 a PC100 mainboard) and hard drive. The only problem is that it's not fully
 open source (you can see the sources though), but it comes for free for
 anyone for any use up to 4 processors per box... It's good... I like it.

 Pier

--
+--- This message is printed on 100% recycled electrons ---+
Steffen Haase   mailto:[EMAIL PROTECTED]
Java SmartCard Development  http://www.celocom.com
http://www.java-club.de
Celo Communications GmbH - The provider of secure e-business
Weissenfelser Str. 46a
D-06217 Merseburg
+--- cêlo, âvi, âtum, (latin) 1 ---+





Re: problem make webapp module for apache

2001-08-12 Thread Craig R. McClanahan



On Sun, 12 Aug 2001, Pier P. Fumagalli wrote:

 Steffen Haase at [EMAIL PROTECTED] wrote:
 
  Hi Pier,
  
  Pier P. Fumagalli wrote:
  
  I corrected the compile command in apache-1.3/Makefile and execute make
  clean
  and make. I've got the following errors
  
  The only option left I see is: can you try the pre-built binaries from the
  website?
  
  I tried the pre-build binary on friday evening and yes, it works. I tried to
  compile and link the sources on a Slackware Linux as well and I had the same
  problems. Which OS do you use to compile the sources? Red Hat?
 
 RedHat 7.1... Craig did the build (I don't have a Linux box), and AFAIK he
 didn't have any problem... Worked straight out of the box...
 

Correct ... I had no problems at all when following the directions
included in the jakarta-tomcat-connectors/webappp directory.

 Pier
 
 

Craig





Re: problem make webapp module for apache

2001-08-09 Thread Steffen Haase

Hi Pier,


Pier P. Fumagalli wrote:

  Finding it will not help. Something else is wrong.
  At least 2 things:
 
  1 - What is the result of your configure?
  (There must be something wrong).
 
  no, everything seems to be ok.

 Can you send the output?

I checked out the apr (APACHE_2_0_22) and the jakarta-tomcat-connectors
sources. I can compile the sources but not linking :( I attached the
output from the configure script as zip-file (4KByte).

Steffen

 make --
Compiling sources in
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib...
make[1]: Entering directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'
Generating pr_warp_defs.h
make[1]: Leaving directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'

Compiling sources in
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3...

make[1]: Entering directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'

Compiling Apache 1.3 WebApp module
*Initialization*:1: warning: `LINUX' redefined
*Initialization*:1: warning: this is the location of the previous
definition
Linking Apache 1.3 WebApp Module
/usr/local/install/jakarta/apr/libtool: mod_webapp.lo: command not found

make[1]: *** [mod_webapp.so] Error 127
make[1]: Leaving directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'

make: *** [local-all] Error 2
cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp #


--
+--- This message is printed on 100% recycled electrons ---+
Steffen Haase   mailto:[EMAIL PROTECTED]
Java SmartCard Development  http://www.celocom.com
http://www.java-club.de
Celo Communications GmbH - The provider of secure e-business
Weissenfelser Str. 46a
D-06217 Merseburg
+--- cêlo, âvi, âtum, (latin) 1 ---+


 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-09 Thread Pier P. Fumagalli

Can you send me your three Makefile, Makedefs and apache-1.3/Makefile files?
I believe that both APR and APXS are defining -DLINUX somehow, you should
see two colliding entries in one of those files (but please, SEND them)

Pier 

Steffen Haase at [EMAIL PROTECTED] wrote:

 Hi Pier,
 
 
 Pier P. Fumagalli wrote:
 
 Finding it will not help. Something else is wrong.
 At least 2 things:
 
 1 - What is the result of your configure?
 (There must be something wrong).
 
 no, everything seems to be ok.
 
 Can you send the output?
 
 I checked out the apr (APACHE_2_0_22) and the jakarta-tomcat-connectors
 sources. I can compile the sources but not linking :( I attached the
 output from the configure script as zip-file (4KByte).
 
 Steffen
 
  make --
 Compiling sources in
 /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib...
 make[1]: Entering directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'
 Generating pr_warp_defs.h
 make[1]: Leaving directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'
 
 Compiling sources in
 /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3...
 
 make[1]: Entering directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'
 
 Compiling Apache 1.3 WebApp module
 *Initialization*:1: warning: `LINUX' redefined
 *Initialization*:1: warning: this is the location of the previous
 definition
 Linking Apache 1.3 WebApp Module
 /usr/local/install/jakarta/apr/libtool: mod_webapp.lo: command not found
 
 make[1]: *** [mod_webapp.so] Error 127
 make[1]: Leaving directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'
 
 make: *** [local-all] Error 2
 cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp #





Re: problem make webapp module for apache

2001-08-09 Thread Steffen Haase

Hi Pier,

Pier P. Fumagalli wrote:

 Can you send me your three Makefile, Makedefs and apache-1.3/Makefile files?
 I believe that both APR and APXS are defining -DLINUX somehow, you should
 see two colliding entries in one of those files (but please, SEND them)

yes, there are two different entries. DLINUX=22 and DLINUX=2

what's the meaning of '22' and '2'? the kernel version? My system runs under
kernel 2.4.7.


another thing is the file apache-1.3/mod_webapp.lo.
--- mod_webapp.lo ---
timestamp


I thing this is the reason for the error message. I can't find the
program/command timestamp on my system.

thanks in advance


Steffen


 Makefile.zip
 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-09 Thread Steffen Haase

Hi Pier,

Pier P. Fumagalli wrote:

 Don't worry... This is a patch that should make your module compile:

I can compile, thats not the problem. I can't linking the mod_webapp.so


 RCS file:
 /home/cvs/jakarta-tomcat-connectors/webapp/apache-1.3/Makefile.in,v

I changed my Makefile, but that's only a patch for compiling.


Steffen

-- error message 
Compiling sources in
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib...
make[1]: Entering directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'

Compiling sources in
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3...
make[1]: Entering directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'
Linking Apache 1.3 WebApp Module
/usr/local/install/jakarta/apr/libtool: mod_webapp.lo: command not found
make[1]: *** [mod_webapp.so] Error 127
make[1]: Leaving directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'
make: *** [local-all] Error 2
cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp #


 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-09 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:

 Hi Pier,
 
 Pier P. Fumagalli wrote:
 
 Don't worry... This is a patch that should make your module compile:
 
 I can compile, thats not the problem. I can't linking the mod_webapp.so

That patch fixed the double definition of -DLINUX in the compilation, that's
right...

 RCS file:
 /home/cvs/jakarta-tomcat-connectors/webapp/apache-1.3/Makefile.in,v
 
 I changed my Makefile, but that's only a patch for compiling.

Yes... My bad (should read things twice or three times before replying).

 Steffen
 
 -- error message 
 Compiling sources in
 /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib...
 make[1]: Entering directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'
 
 Compiling sources in
 /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3...
 make[1]: Entering directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'
 Linking Apache 1.3 WebApp Module
 /usr/local/install/jakarta/apr/libtool: mod_webapp.lo: command not found
 make[1]: *** [mod_webapp.so] Error 127
 make[1]: Leaving directory
 `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'
 make: *** [local-all] Error 2
 cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp #

I'm looking at your Makefiles, and somehow there's something I don't
understant... It seems that your httpd is not configured to support DSO
modules. Can you check that the output of httpd -l includes mod_so.c?

Also, your apxs should export the command used for linking DSO modules.
For example, in my case when I hit apxs -q LD_SHLIB, I get cc, my
default ld command used for linking DSO modules... While from the makefile
you sent me, it seems that apxs is not outputting that value correctly.

Can you check those two things? Sorry for troubles...

Pier




Re: problem make webapp module for apache

2001-08-09 Thread Steffen Haase

Hi Pier,

Pier P. Fumagalli wrote:

 I'm looking at your Makefiles, and somehow there's something I don't
 understant... It seems that your httpd is not configured to support DSO
 modules. Can you check that the output of httpd -l includes mod_so.c?

cheiron:/usr/local/httpd/bin # ./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/httpd/bin/suexec
cheiron:/usr/local/httpd/bin #


 Also, your apxs should export the command used for linking DSO modules.
 For example, in my case when I hit apxs -q LD_SHLIB, I get cc, my
 default ld command used for linking DSO modules... While from the makefile
 you sent me, it seems that apxs is not outputting that value correctly.

/usr/local/httpd/bin/apxs -q LD_SHLIB
nothing :(

/usr/local/httpd/bin/apxs -q CC
gcc

/usr/local/httpd/bin/apxs -q CFLAGS
-DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDEDcheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/


Steffen


 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-09 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:

 Hi Pier,
 
 Pier P. Fumagalli wrote:
 
 I'm looking at your Makefiles, and somehow there's something I don't
 understant... It seems that your httpd is not configured to support DSO
 modules. Can you check that the output of httpd -l includes mod_so.c?
 
 cheiron:/usr/local/httpd/bin # ./httpd -l
 Compiled-in modules:
 http_core.c
 mod_env.c
 mod_log_config.c
 mod_mime.c
 mod_negotiation.c
 mod_status.c
 mod_include.c
 mod_autoindex.c
 mod_dir.c
 mod_cgi.c
 mod_asis.c
 mod_imap.c
 mod_actions.c
 mod_userdir.c
 mod_alias.c
 mod_access.c
 mod_auth.c
 mod_so.c
 mod_setenvif.c
 suexec: disabled; invalid wrapper /usr/local/httpd/bin/suexec
 cheiron:/usr/local/httpd/bin #
 
 
 Also, your apxs should export the command used for linking DSO modules.
 For example, in my case when I hit apxs -q LD_SHLIB, I get cc, my
 default ld command used for linking DSO modules... While from the makefile
 you sent me, it seems that apxs is not outputting that value correctly.
 
 /usr/local/httpd/bin/apxs -q LD_SHLIB
 nothing :(
 
 /usr/local/httpd/bin/apxs -q CC
 gcc
 
 /usr/local/httpd/bin/apxs -q CFLAGS
 -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
 -DNO_DL_NEEDEDcheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/

That's definitely weird... If you have mod_so, LD_SHLIB _should_ be defined.
Can you put gcc in your Makefile near APXS_LD_SHLIB, and see what happens.
I really don't understand why this is happening...

Pier




Re: problem make webapp module for apache

2001-08-09 Thread Steffen Haase

Pier P. Fumagalli wrote:

 That's definitely weird... If you have mod_so, LD_SHLIB _should_ be defined.
 Can you put gcc in your Makefile near APXS_LD_SHLIB, and see what happens.
 I really don't understand why this is happening...

I compiled and installed apache 2.0.22 as well. everything seems to be ok, but

cheiron:/tmp/src/jakarta-tomcat-connectors/webapp # /usr/local/httpd-2.0/bin/apxs
-q LD_SHLIB
nothing :(

I still use the version 1.3.20 with dso support. the 2.0.22 is compiled with dso
support as well.

I changed the apache-1.3/Makefile
-
APXS_CC =gcc
APXS_TARGET =httpd
APXS_CFLAGS =-DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED
APXS_SBINDIR =   /usr/local/httpd/bin
APXS_CFLAGS_SHLIB =
APXS_INCLUDEDIR =/usr/local/httpd/include
APXS_LD_SHLIB =  /usr/bin/gcc
APXS_LIBEXECDIR =/usr/local/httpd/libexec
APXS_LDFLAGS_SHLIB =
APXS_SYSCONFDIR =/usr/local/httpd/conf
APXS_LIBS_SHLIB =
APXS_PREFIX =/usr/local/httpd

MODULE = mod_webapp.so
-

...now I've got the following error messages
---
Compiling sources in /tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3...
make[1]: Entering directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
Linking Apache 1.3 WebApp Module
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_webapp.o: In function `wa_log':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:270: undefined
reference to `ap_log_error'
mod_webapp.o: In function `wam_handler_log':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:278: undefined
reference to `ap_log_error'
mod_webapp.o: In function `wam_handler_setctype':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:294: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:295: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:295: undefined
reference to `ap_table_add'
mod_webapp.o: In function `wam_handler_setheader':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:305: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:305: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:305: undefined
reference to `ap_table_add'
mod_webapp.o: In function `wam_handler_commit':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:313: undefined
reference to `ap_send_http_header'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:314: undefined
reference to `ap_rflush'
mod_webapp.o: In function `wam_handler_flush':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:321: undefined
reference to `ap_rflush'
mod_webapp.o: In function `wam_handler_read':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:338: undefined
reference to `ap_should_client_block'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:342: undefined
reference to `ap_get_client_block'
mod_webapp.o: In function `wam_handler_write':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:357: undefined
reference to `ap_rwrite'
mod_webapp.o: In function `wam_match':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:401: undefined
reference to `ap_pstrdup'
mod_webapp.o: In function `wam_invoke':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:429: undefined
reference to `ap_log_error'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:436: undefined
reference to `ap_get_remote_host'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:478: undefined
reference to `ap_setup_client_block'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:486: undefined
reference to `ap_rflush'
collect2: ld returned 1 exit status
make[1]: *** [mod_webapp.so] Error 1
make[1]: Leaving directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
make: *** [local-all] Error 2




Steffen

 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-09 Thread Steffen Haase

Steffen Haase wrote:

 ...now I've got the following error messages

I corrected the compile command in apache-1.3/Makefile and execute make clean and
make. I've got the following errors

---
Compiling sources in /tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3...
make[1]: Entering directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
Linking Apache 1.3 WebApp Module
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_webapp.o: In function `wa_log':
mod_webapp.o(.text+0x48b): undefined reference to `ap_log_error'
mod_webapp.o: In function `wam_handler_log':
mod_webapp.o(.text+0x4d3): undefined reference to `ap_log_error'
mod_webapp.o: In function `wam_handler_setctype':
mod_webapp.o(.text+0x525): undefined reference to `ap_pstrdup'
mod_webapp.o(.text+0x548): undefined reference to `ap_pstrdup'
mod_webapp.o(.text+0x562): undefined reference to `ap_table_add'
mod_webapp.o: In function `wam_handler_setheader':
mod_webapp.o(.text+0x5a5): undefined reference to `ap_pstrdup'
mod_webapp.o(.text+0x5bd): undefined reference to `ap_pstrdup'
mod_webapp.o(.text+0x5d2): undefined reference to `ap_table_add'
mod_webapp.o: In function `wam_handler_commit':
mod_webapp.o(.text+0x5f7): undefined reference to `ap_send_http_header'
mod_webapp.o(.text+0x606): undefined reference to `ap_rflush'
mod_webapp.o: In function `wam_handler_flush':
mod_webapp.o(.text+0x637): undefined reference to `ap_rflush'
mod_webapp.o: In function `wam_handler_read':
mod_webapp.o(.text+0x698): undefined reference to `ap_should_client_block'
mod_webapp.o(.text+0x6c0): undefined reference to `ap_get_client_block'
mod_webapp.o: In function `wam_handler_write':
mod_webapp.o(.text+0x72f): undefined reference to `ap_rwrite'
mod_webapp.o: In function `wam_match':
mod_webapp.o(.text+0x83f): undefined reference to `ap_pstrdup'
mod_webapp.o: In function `wam_invoke':
mod_webapp.o(.text+0x941): undefined reference to `ap_log_error'
mod_webapp.o(.text+0x96f): undefined reference to `ap_get_remote_host'
mod_webapp.o(.text+0xcfe): undefined reference to `ap_setup_client_block'
mod_webapp.o(.text+0xd46): undefined reference to `ap_rflush'
collect2: ld returned 1 exit status
make[1]: *** [mod_webapp.so] Error 1
make[1]: Leaving directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
make: *** [local-all] Error 2
cheiron:/tmp/src/jakarta-tomcat-connectors/webapp #

 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-09 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:

 Steffen Haase wrote:
 
 ...now I've got the following error messages
 
 I corrected the compile command in apache-1.3/Makefile and execute make clean
 and make. I've got the following errors

RRRGH :( IT DOESN'T MAKE ANY SENSE :( :( (ok, I'm about to cry now).
All the symbols which are not found _are_ exported by Apache 1.3... And the
core is linked into the httpd binary... SHIT... I don't really get what's
happening...

I'm going to try to modify the build process to use APXS to build the shared
module (instead of the standard CC and LD commands)... Give me a couple of
hours, please...

Pier (who can't figure out WHAT THE HELL IS WRONG!)

 ---
 Compiling sources in /tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3...
 make[1]: Entering directory
 `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
 Linking Apache 1.3 WebApp Module
 /usr/lib/crt1.o: In function `_start':
 /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
 mod_webapp.o: In function `wa_log':
 mod_webapp.o(.text+0x48b): undefined reference to `ap_log_error'
 mod_webapp.o: In function `wam_handler_log':
 mod_webapp.o(.text+0x4d3): undefined reference to `ap_log_error'
 mod_webapp.o: In function `wam_handler_setctype':
 mod_webapp.o(.text+0x525): undefined reference to `ap_pstrdup'
 mod_webapp.o(.text+0x548): undefined reference to `ap_pstrdup'
 mod_webapp.o(.text+0x562): undefined reference to `ap_table_add'
 mod_webapp.o: In function `wam_handler_setheader':
 mod_webapp.o(.text+0x5a5): undefined reference to `ap_pstrdup'
 mod_webapp.o(.text+0x5bd): undefined reference to `ap_pstrdup'
 mod_webapp.o(.text+0x5d2): undefined reference to `ap_table_add'
 mod_webapp.o: In function `wam_handler_commit':
 mod_webapp.o(.text+0x5f7): undefined reference to `ap_send_http_header'
 mod_webapp.o(.text+0x606): undefined reference to `ap_rflush'
 mod_webapp.o: In function `wam_handler_flush':
 mod_webapp.o(.text+0x637): undefined reference to `ap_rflush'
 mod_webapp.o: In function `wam_handler_read':
 mod_webapp.o(.text+0x698): undefined reference to `ap_should_client_block'
 mod_webapp.o(.text+0x6c0): undefined reference to `ap_get_client_block'
 mod_webapp.o: In function `wam_handler_write':
 mod_webapp.o(.text+0x72f): undefined reference to `ap_rwrite'
 mod_webapp.o: In function `wam_match':
 mod_webapp.o(.text+0x83f): undefined reference to `ap_pstrdup'
 mod_webapp.o: In function `wam_invoke':
 mod_webapp.o(.text+0x941): undefined reference to `ap_log_error'
 mod_webapp.o(.text+0x96f): undefined reference to `ap_get_remote_host'
 mod_webapp.o(.text+0xcfe): undefined reference to `ap_setup_client_block'
 mod_webapp.o(.text+0xd46): undefined reference to `ap_rflush'
 collect2: ld returned 1 exit status
 make[1]: *** [mod_webapp.so] Error 1
 make[1]: Leaving directory
 `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
 make: *** [local-all] Error 2
 cheiron:/tmp/src/jakarta-tomcat-connectors/webapp #
 




Re: problem make webapp module for apache

2001-08-08 Thread jean-frederic clere

Steffen Haase wrote:
 
 Hi,
 
 I have some problems to compile the webapp module (servlet engine) for
 the apache webserver.
 
 The compiler miss the following files:
 mach-o/dyld.h
 dlfcn.h
 dl.h
 
 Where can I find these header files? Which packages do I have to
 download?
 
 System: SuSE Linux 7.2, Apache 1.3.20
 Module:
 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b6/src/webapp-module-1.0-tc40b6.src.tar.gz
 
 Error Message:
 Making all in dso/unix
 make[2]: Entering directory `/usr/local/install/webapp/apr/dso/unix'
 make[3]: Entering directory `/usr/local/install/webapp/apr/dso/unix'
 /bin/sh /usr/local/install/webapp/apr/libtool --silent --mode=compile cc
 -g -O2   -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT   -I../../include
 -I../../include/arch -I../../include/arch/unix  -c dso.c  touch dso.lo
 
 In file included from dso.c:55:
 ../../include/arch/unix/dso.h:67: mach-o/dyld.h: No such file or
 directory
 make[3]: *** [dso.lo] Error 1
 make[3]: Leaving directory `/usr/local/install/webapp/apr/dso/unix'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/usr/local/install/webapp/apr/dso/unix'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/local/install/webapp/apr'
 make: *** [apr-all] Error 2
 cheiron:/usr/local/install/webapp #

Have you done configure before doing make?

 
 What is mach-o?

MacOS/X

 
 Thanks in advance.
 
 best regards,
 
 Steffen
 --
 +--- This message is printed on 100% recycled electrons ---+
 Steffen Haase   mailto:[EMAIL PROTECTED]
 Java SmartCard Development  http://www.celocom.com
 http://www.java-club.de
 Celo Communications GmbH - The provider of secure e-business
 Weissenfelser Str. 46a
 D-06217 Merseburg
 +--- cêlo, âvi, âtum, (latin) 1 ---+



Re: problem make webapp module for apache

2001-08-08 Thread Steffen Haase

Hi,

jean-frederic clere wrote:

 Have you done configure before doing make?

yes, of course.


 
  What is mach-o?

 MacOS/X

where can I find it? It seems that I need these header files for compiling the webapp 
sources.


best regards,

Steffen




Re: problem make webapp module for apache

2001-08-08 Thread Pier P. Fumagalli

jean-frederic clere at [EMAIL PROTECTED] wrote:

 Steffen Haase wrote:
 
 Hi,
 
 I have some problems to compile the webapp module (servlet engine) for
 the apache webserver.
 
 The compiler miss the following files:
 mach-o/dyld.h
 dlfcn.h
 dl.h
 
 Where can I find these header files? Which packages do I have to
 download?
 
 [...]
 
 Have you done configure before doing make?

Something must have gone wrong in configure. Under Linux mach-o shouldn't be
defined, unless Suse didn't start integrating the NSMoule Dynamic Linker
Loader...

 What is mach-o?
 
 MacOS/X

Nope... It's MACH. It's a kernel used by several operating systems INCLUDING
OS/X, but not only that. OS/2 is another example...

Pier




Re: problem make webapp module for apache

2001-08-08 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:
 
 System: SuSE Linux 7.2, Apache 1.3.20
 Module:
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b6/src/webapp
 -module-1.0-tc40b6.src.tar.gz

Hint... Use the latest CVS version, instead of this one. This one is known
to have bugs.

Pier




Re: problem make webapp module for apache

2001-08-08 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:
 
 Hi,
 
 jean-frederic clere wrote:
 
 Have you done configure before doing make?
 
 yes, of course.

Upgrade to the latest CVS version, run configure and send me the output of
what comes out of it... (Actually, read the whole README coming with the CVS
version)

 What is mach-o?
 
 MacOS/X
 
 where can I find it? It seems that I need these header files for compiling the
 webapp sources.

You can't FIND it... It's an operating system.

Pier




Re: problem make webapp module for apache

2001-08-08 Thread jean-frederic clere

Steffen Haase wrote:
 
 Hi,
 
 jean-frederic clere wrote:
 
  Have you done configure before doing make?
 
 yes, of course.
 
  
   What is mach-o?
 
  MacOS/X
 
 where can I find it? It seems that I need these header files for compiling the 
webapp sources.

Finding it will not help. Something else is wrong.
At least 2 things:

1 - What is the result of your configure?
(There must be something wrong).


2 - On my machine I have:

+++
In file included from apr_cpystrn.c:55:
../include/apr.h:281: sys/syslimits.h: No such file or directory
make[3]: *** [apr_cpystrn.lo] Error 1
make[3]: Leaving directory `/home/jfclere/webapp/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jfclere/webapp/apr/strings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jfclere/webapp/apr'
make: *** [apr-all] Error 2
+++
The APR included in webapp is not OK (At least for SuSe 7.2).

I have used an other one from CVS (tagged APACHE_2_0_22_dev). It works OK.
Could you try using APR from CVS?

You have to solve 1 before 2 ;-)

 
 best regards,
 
 Steffen



Re: problem make webapp module for apache

2001-08-08 Thread Steffen Haase

Hi,

jean-frederic clere wrote:

 Finding it will not help. Something else is wrong.
 At least 2 things:

 1 - What is the result of your configure?
 (There must be something wrong).

no, everything seems to be ok.


 2 - On my machine I have:

 +++
 In file included from apr_cpystrn.c:55:
 ../include/apr.h:281: sys/syslimits.h: No such file or directory
 make[3]: *** [apr_cpystrn.lo] Error 1
 make[3]: Leaving directory `/home/jfclere/webapp/apr/strings'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/home/jfclere/webapp/apr/strings'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/jfclere/webapp/apr'
 make: *** [apr-all] Error 2
 +++
 The APR included in webapp is not OK (At least for SuSe 7.2).

yes, I had the same error. locate syslimits.h to find the right directory and ln - . 
sys to create
the sys directory for sys/syslimits.h


 I have used an other one from CVS (tagged APACHE_2_0_22_dev). It works OK.
 Could you try using APR from CVS?

where can I find it? which subproject?


Steffen


 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-08 Thread Steffen Haase

Pier P. Fumagalli wrote:

 Upgrade to the latest CVS version, run configure and send me the output of
 what comes out of it... (Actually, read the whole README coming with the CVS
 version)

ok, I'll try it. Where can I find the newest apr sources? (cvs-tree)

thanks a lot.


Steffen

--
+--- This message is printed on 100% recycled electrons ---+
Steffen Haase   mailto:[EMAIL PROTECTED]
Java SmartCard Development  http://www.celocom.com
http://www.java-club.de
Celo Communications GmbH - The provider of secure e-business
Weissenfelser Str. 46a
D-06217 Merseburg
+--- cêlo, âvi, âtum, (latin) 1 ---+


 S/MIME Cryptographic Signature


Re: problem make webapp module for apache

2001-08-08 Thread jean-frederic clere

Steffen Haase wrote:
 
 Hi,
 
 jean-frederic clere wrote:
 
  Finding it will not help. Something else is wrong.
  At least 2 things:
 
  1 - What is the result of your configure?
  (There must be something wrong).
 
 no, everything seems to be ok.
 
  2 - On my machine I have:
 
  +++
  In file included from apr_cpystrn.c:55:
  ../include/apr.h:281: sys/syslimits.h: No such file or directory
  make[3]: *** [apr_cpystrn.lo] Error 1
  make[3]: Leaving directory `/home/jfclere/webapp/apr/strings'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/home/jfclere/webapp/apr/strings'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/home/jfclere/webapp/apr'
  make: *** [apr-all] Error 2
  +++
  The APR included in webapp is not OK (At least for SuSe 7.2).
 
 yes, I had the same error. locate syslimits.h to find the right directory and ln - . 
sys to create
 the sys directory for sys/syslimits.h
 
  I have used an other one from CVS (tagged APACHE_2_0_22_dev). It works OK.
  Could you try using APR from CVS?
 
 where can I find it? which subproject?

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r APACHE_2_0_22 apr
(password anoncvs, see http://jakarta.apache.org/site/cvsindex.html).
APACHE_2_0_22 is better that APACHE_2_0_22_dev...

 
 Steffen



Re: problem make webapp module for apache

2001-08-08 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:

 Hi,
 
 jean-frederic clere wrote:
 
 Finding it will not help. Something else is wrong.
 At least 2 things:
 
 1 - What is the result of your configure?
 (There must be something wrong).
 
 no, everything seems to be ok.

Can you send the output?

Pier




Re: problem make webapp module for apache

2001-08-08 Thread Pier P. Fumagalli

Steffen Haase at [EMAIL PROTECTED] wrote:

 Pier P. Fumagalli wrote:
 
 Upgrade to the latest CVS version, run configure and send me the output of
 what comes out of it... (Actually, read the whole README coming with the CVS
 version)
 
 ok, I'll try it. Where can I find the newest apr sources? (cvs-tree)
 
 thanks a lot.

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
(password anoncvs)
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co \
jakarta-tomcat-connectors/webapp

Pier




Re: problem make webapp module for apache

2001-08-08 Thread Steffen Haase

Hi Pier,

thanks for your help.

Pier P. Fumagalli wrote:

  Finding it will not help. Something else is wrong.
  At least 2 things:
 
  1 - What is the result of your configure?
  (There must be something wrong).
 
  no, everything seems to be ok.

 Can you send the output?

I checked out the apr (APACHE_2_0_22) and the jakarta-tomcat-connectors
sources. I can compile the sources but not linking :(

Steffen

 make --
Compiling sources in
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib...
make[1]: Entering directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'
Generating pr_warp_defs.h
make[1]: Leaving directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib'

Compiling sources in
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3...

make[1]: Entering directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'

Compiling Apache 1.3 WebApp module
*Initialization*:1: warning: `LINUX' redefined
*Initialization*:1: warning: this is the location of the previous
definition
Linking Apache 1.3 WebApp Module
/usr/local/install/jakarta/apr/libtool: mod_webapp.lo: command not found

make[1]: *** [mod_webapp.so] Error 127
make[1]: Leaving directory
`/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3'

make: *** [local-all] Error 2
cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp #


- ./configure ---
cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp
#./configure --with-apxs=/usr/local/httpd/bin/apxs
--with-apr=/usr/local/install/jakarta/apr/
loading cache ./config.cache
checking for test... (cached) /usr/bin/test
checking for true... (cached) /bin/true
checking for echo... (cached) /bin/echo
checking for grep... (cached) /usr/bin/grep
checking for cat... (cached) /bin/cat
checking for sed... (cached) /usr/bin/sed
checking for rm... (cached) /bin/rm
checking sources directory...
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp
checking debugging flags... disabled
checking Java support... disabled
checking Tomcat 4.0 directory... not required
checking if apxs is working... ok
setting target module to...
/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3
checking APR directory... /usr/local/install/jakarta/apr

Building APR configure script
  Invoking: ./buildconf
APR buildconf: buildconf: checking installation...
APR buildconf: buildconf: autoconf version 2.13 (ok)
APR buildconf: buildconf: libtool version 1.3.5 (ok)
APR buildconf: Copying libtool helper files ...
APR buildconf: Creating include/arch/unix/apr_private.h.in ...
APR buildconf: Creating configure ...
  Execution of ./buildconf returned 0

Configuring APR
  Invoking: ./configure --enable-static --disable-shared
--disable-threads
APR configure: loading cache ./config.cache
APR configure: checking host system type... i586-pc-linux-gnu
APR configure: checking target system type... i586-pc-linux-gnu
APR configure: checking build system type... i586-pc-linux-gnu
APR configure: Configuring APR library
APR configure: Platform: i586-pc-linux-gnu
APR configure: Applying APR hints file rules for i586-pc-linux-gnu
APR configure: setting CPPFLAGS to -DLINUX=2
APR configure: adding -D_REENTRANT to CPPFLAGS
APR configure: (Default will be unix)
APR configure: checking whether make sets ${MAKE}... (cached) yes
APR configure: checking for gcc... (cached) gcc
APR configure: checking whether the C compiler (gcc  ) works... yes
APR configure: checking whether the C compiler (gcc  ) is a
cross-compiler... no
APR configure: checking whether we are using GNU C... (cached) yes
APR configure: checking whether gcc accepts -g... (cached) yes
APR configure: checking how to run the C preprocessor... (cached)
gcc -E
APR configure: checking for mawk... (cached) gawk
APR configure: checking whether ln -s works... (cached) yes
APR configure: checking for ranlib... (cached) ranlib
APR configure: checking for a BSD compatible install... (cached)
/usr/bin/install -c
APR configure: checking for rm... (cached) rm
APR configure: checking for ar... (cached) ar
APR configure: checking for AIX... no
APR configure: checking for POSIXized ISC... no
APR configure: checking for minix/config.h... (cached) no
APR configure: checking whether system uses EBCDIC... (cached) no
APR configure: performing libtool configuration...
APR configure: checking for ld used by GCC... (cached)
/usr/i486-suse-linux/bin/ld
APR configure: checking if the linker (/usr/i486-suse-linux/bin/ld)
is GNU ld... (cached) yes
APR configure: checking for BSD-compatible nm... (cached)
/usr/bin/nm -B
APR configure: loading cache ./config.cache within ltconfig
APR configure: checking for object suffix... o
APR configure: checking for executable