You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by NormW <no...@bocnet.com.au> on 2005/02/12 21:20:27 UTC
Jk_map.c build 'problem'?
Greetings All,
Just zipping the compiler over the recent updates to mod_jk and get the
error noted below....
Nice to see the 'spirit' of JK2 lives on anyway...
Regards,
Norm
Compiling ../common/jk_lb_worker.c
Compiling ../common/jk_map.c
### mwccnlm Compiler:
# File: ..\common\jk_map.c
# ---------------------------
# 413: jk_shm_set_workers_time(statbuf.st_mtime);
# Error: ^
# illegal implicit conversion from 'struct timespec' to
# 'long'
Errors caused tool to abort.
make: *** [Release.o/jk_map.o] Error 1
C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0>
EOT
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by NormW <no...@bocnet.com.au>.
Good evening,
OK will watch for an update and retry.
Regards,
Norm
Mladen Turk wrote:
> NormW wrote:
>
>> Greetings and thanks for the feedback...
>> With:
>>
>> DEFINES = -DNETWARE -D_POSIX_SOURCE
>>
>> in NWGNUenvironment.inc, I get the following (there was a lot more of
>> it but this is the first few lines)...
>>
>> ### mwccnlm Compiler:
>> # File: ..\common\jk_shm.c
>> # ---------------------------
>> # 49: CRITICAL_SECTION cs;
>
>
> This is my bad :(.
> It should be JK_CRIT_SECT instead.
> I'll change that.
>
>
> Mladen.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by Mladen Turk <mt...@apache.org>.
NormW wrote:
> Greetings and thanks for the feedback...
> With:
>
> DEFINES = -DNETWARE -D_POSIX_SOURCE
>
> in NWGNUenvironment.inc, I get the following (there was a lot more of it
> but this is the first few lines)...
>
> ### mwccnlm Compiler:
> # File: ..\common\jk_shm.c
> # ---------------------------
> # 49: CRITICAL_SECTION cs;
This is my bad :(.
It should be JK_CRIT_SECT instead.
I'll change that.
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by NormW <no...@bocnet.com.au>.
Greetings and thanks for the feedback...
With:
DEFINES = -DNETWARE -D_POSIX_SOURCE
in NWGNUenvironment.inc, I get the following (there was a lot more of it
but this is the first few lines)...
### mwccnlm Compiler:
# File: ..\common\jk_shm.c
# ---------------------------
# 49: CRITICAL_SECTION cs;
# Error: ^^^^^^^^^^^^^^^^
# declaration syntax error
### mwccnlm Compiler:
# 50: };
# Error: ^
# declaration syntax error
### mwccnlm Compiler:
# 55: static jk_shm_t jk_shmem = { 0, NULL, -1, 0, NULL};
# Error: ^
# illegal use of incomplete struct/union/class 'struct jk_shm'
### mwccnlm Compiler:
# 64: if (jk_shmem.hdr) {
# Error: ^
# illegal use of incomplete struct/union/class 'struct jk_shm'
Restoring the DEFINES to its original setting reproduces the error noted
previously/below. This was a build attempted against Apache2.1 trunk and
JTC CVS.
Will cast a fuzzy eye at a 1.3 JTC against AP 1.3 trunk...
FTM,
Norm
Günter Knauf wrote:
> Hi Norm,
> that's a netware-own problem;
> please add -D_POSIX_SOURCE to the compiler flags and see if that fixes teh problem;
> if so then please also check if we get no other strange behaviours - then we have to go other ways.
>
> Guenter.
>
>
>>Just zipping the compiler over the recent updates to mod_jk and get the
>>error noted below....
>
>
>>Nice to see the 'spirit' of JK2 lives on anyway...
>>Regards,
>>Norm
>
>
>>Compiling ../common/jk_lb_worker.c
>>Compiling ../common/jk_map.c
>>### mwccnlm Compiler:
>># File: ..\common\jk_map.c
>># ---------------------------
>># 413: jk_shm_set_workers_time(statbuf.st_mtime);
>># Error: ^
>># illegal implicit conversion from 'struct timespec' to
>># 'long'
>
>
>>Errors caused tool to abort.
>>make: *** [Release.o/jk_map.o] Error 1
>
>
>>C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0>
>
>
>>EOT
>
>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by Günter Knauf <fu...@apache.org>.
Hi Norm,
that's a netware-own problem;
please add -D_POSIX_SOURCE to the compiler flags and see if that fixes teh problem;
if so then please also check if we get no other strange behaviours - then we have to go other ways.
Guenter.
> Just zipping the compiler over the recent updates to mod_jk and get the
> error noted below....
> Nice to see the 'spirit' of JK2 lives on anyway...
> Regards,
> Norm
> Compiling ../common/jk_lb_worker.c
> Compiling ../common/jk_map.c
> ### mwccnlm Compiler:
> # File: ..\common\jk_map.c
> # ---------------------------
> # 413: jk_shm_set_workers_time(statbuf.st_mtime);
> # Error: ^
> # illegal implicit conversion from 'struct timespec' to
> # 'long'
> Errors caused tool to abort.
> make: *** [Release.o/jk_map.o] Error 1
> C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0>
> EOT
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by Mladen Turk <mt...@apache.org>.
NormW wrote:
> ### mwccnlm Compiler:
> # File: ..\common\jk_connect.c
> # -------------------------------
> # 105: NetDBgethostbyname( &nwSocketCtx, (host) )
> # Error: ^
> # illegal implicit conversion from 'const char *' to
> # 'char *'
This is bad ;).
gethostbyname as well as setsockopt should accept cont char*,
or cont void * parameters.
I would not like to change all those params to char* again,
just because netware defines those incorrectly.
Not sure how APR can compile that where exact params are used,
meaning 'const char*'.
If there is no way to fix those compiler warnings then I
would suggest to create two macros:
#if defined(_NETWARE)
#define JK_GETHOSTBYNAME(h) gethostbyname((char *)(h))
#else
#define JK_GETHOSTBYNAME(h) gethostbyname((h))
#endif
But that is really weird!
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by NormW <no...@bocnet.com.au>.
Still morning and the sky is a little lighter...
Günter Knauf wrote:
> Hi,
>
>> OK - will be off and delve into Apache 1.3 a little closer. No idea
>> when Guenter might be through this way, but for now seems AP 1.3 is
>> a NetWare issue and AP 2.0 will get another try when Guenter comes
>> or I come by in the morning... if there is an update. :-)
There have been many updates this morning from MT but not a fix for the
problem that I noted last night (unless put in with something else) but
will see what happens. I notice one is an update to the NWGNUmakefile,
so perhaps I didn't try your -D_POSIX_SOURCE in the right place?
> I take a look as soon as time permits; and sure the AP13 makefile can
> be adapted _now_; but when I created the makefile for Apache 1.3 we
> were building Apache self with the CodeWarrior project file, and
> mod_jk with Ant. So I created a simple makefile on my own to avoid
> the Ant hassle, and that worked fine. Only with recent Apache 1.3.31
> I think Novell moved to the NWGUNUMakefile build system; and changing
> the mod_jk makefile to the new build system is already on my TODO
> list; however since the old makefile still works fine I didnt see
> high priority yet...
Agree completely... work on your priorities not mod_jk's!
>
> Guenter.
FTM,
Norm
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by Günter Knauf <fu...@apache.org>.
Hi,
> OK - will be off and delve into Apache 1.3 a little closer. No idea when
> Guenter might be through this way, but for now seems AP 1.3 is a NetWare
> issue and AP 2.0 will get another try when Guenter comes or I come by in
> the morning... if there is an update. :-)
I take a look as soon as time permits;
and sure the AP13 makefile can be adapted _now_; but when I created the makefile for Apache 1.3 we were building Apache self with the CodeWarrior project file, and mod_jk with Ant. So I created a simple makefile on my own to avoid the Ant hassle, and that worked fine. Only with recent Apache 1.3.31 I think Novell moved to the NWGUNUMakefile build system; and changing the mod_jk makefile to the new build system is already on my TODO list; however since the old makefile still works fine I didnt see high priority yet...
Guenter.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by NormW <no...@bocnet.com.au>.
Good evening,
OK - will be off and delve into Apache 1.3 a little closer. No idea when
Guenter might be through this way, but for now seems AP 1.3 is a NetWare
issue and AP 2.0 will get another try when Guenter comes or I come by in
the morning... if there is an update. :-)
Norm
Mladen Turk wrote:
> NormW wrote:
>
>> Good evening Mladen, Guenter can verify, but the Build units are
>> the same, ie CodeWarror, but Apache 1.3 uses an 'older' library set
>> called Clib, whereas Apache2 gets a newer library set called LibC.
>> The only other change is that the Makefile 'standard' changed to
>> the NWGNU format. AFAIK there would not be a problem changing the
>> build file for mod_jk on Apache 1.3 over to the NWGNU form, however
>> there would be no change to the library set used, so the
>> getsocketbyname() issue would remain... unless Guenter can see
>> where I've made an error in the build setup...
>>
>
> In the case we will need the macros to supress the compile time
> warnings. Perhaps there is some #pragma or compile time option that
> will at least not mark those warnings as errors?
>
> Those are not errors, just wrongly defined funtion proto, and can be
> ignored.
>
> Mladen.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by Mladen Turk <mt...@apache.org>.
NormW wrote:
> Good evening Mladen,
> Guenter can verify, but the Build units are the same, ie CodeWarror, but
> Apache 1.3 uses an 'older' library set called Clib, whereas Apache2 gets
> a newer library set called LibC. The only other change is that the
> Makefile 'standard' changed to the NWGNU format. AFAIK there would not
> be a problem changing the build file for mod_jk on Apache 1.3 over to
> the NWGNU form, however there would be no change to the library set
> used, so the getsocketbyname() issue would remain... unless Guenter can
> see where I've made an error in the build setup...
>
In the case we will need the macros to supress the compile time
warnings. Perhaps there is some #pragma or compile time option
that will at least not mark those warnings as errors?
Those are not errors, just wrongly defined funtion proto,
and can be ignored.
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by NormW <no...@bocnet.com.au>.
Good evening Mladen,
Guenter can verify, but the Build units are the same, ie CodeWarror, but
Apache 1.3 uses an 'older' library set called Clib, whereas Apache2 gets
a newer library set called LibC. The only other change is that the
Makefile 'standard' changed to the NWGNU format. AFAIK there would not
be a problem changing the build file for mod_jk on Apache 1.3 over to
the NWGNU form, however there would be no change to the library set
used, so the getsocketbyname() issue would remain... unless Guenter can
see where I've made an error in the build setup...
Norm
Mladen Turk wrote:
> NormW wrote:
>
>> Greetings All, Get the following errors when attempting a mod_jk
>> build for Apache 1.3 against the 1.3.33 source tree...
>>
>
> Also, can you see if it will be possible to create NWGNUmakefile for
> Apache1. Looking at this file for Apache2 seems that it's quite
> portable, and can be transformed to Apache1.
>
> Since Günter created both, perhaps he could help?
>
> It look to me that we have two different build systems and compilers
> for Netware.
>
> Regards, Mladen.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by Mladen Turk <mt...@apache.org>.
NormW wrote:
> Greetings All,
> Get the following errors when attempting a mod_jk build for Apache 1.3
> against the 1.3.33 source tree...
>
Also, can you see if it will be possible to create
NWGNUmakefile for Apache1.
Looking at this file for Apache2 seems that it's
quite portable, and can be transformed to Apache1.
Since Günter created both, perhaps he could help?
It look to me that we have two different build systems
and compilers for Netware.
Regards,
Mladen.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by NormW <no...@bocnet.com.au>.
Greetings All,
Get the following errors when attempting a mod_jk build for Apache 1.3
against the 1.3.33 source tree...
Compiling ../common/jk_ajp_common.c
Compiling ../common/jk_connect.c
### mwccnlm Compiler:
# File: ..\common\jk_connect.c
# -------------------------------
# 105: NetDBgethostbyname( &nwSocketCtx, (host) )
# Error: ^
# illegal implicit conversion from 'const char *' to
# 'char *'
### mwccnlm Compiler:
# 195: sizeof(set));
# Error: ^
# illegal implicit conversion from 'const char *' to
# 'char *'
### mwccnlm Compiler:
# 203: sizeof(keep));
# Error: ^
# illegal implicit conversion from 'const char *' to
# 'char *'
### mwccnlm Compiler:
# 209: sizeof(len))) {
# Error: ^
# illegal implicit conversion from 'const char *' to
# 'char *'
### mwccnlm Compiler:
# 219: sizeof(len))) {
# Error: ^
# illegal implicit conversion from 'const char *' to
# 'char *'
Errors caused tool to abort.
make: *** [release/jk_connect.o] Error 1
I guess this doesn't 'help' (kind of...)
FTM,
Norm
Günter Knauf wrote:
> Hi Norm,
> can you please also do a build for Apache 1.3.x?
> I guess there this problem doesnt occure because of the clib headers; its only with Apache2 with libc headers.
>
> that's a netware-own problem;
> please add -D_POSIX_SOURCE to the compiler flags and see if that fixes teh problem;
> if so then please also check if we get no other strange behaviours - then we have to go other ways.
>
> Guenter.
>
>
>>Just zipping the compiler over the recent updates to mod_jk and get the
>>error noted below....
>
>
>>Nice to see the 'spirit' of JK2 lives on anyway...
>>Regards,
>>Norm
>
>
>>Compiling ../common/jk_lb_worker.c
>>Compiling ../common/jk_map.c
>>### mwccnlm Compiler:
>># File: ..\common\jk_map.c
>># ---------------------------
>># 413: jk_shm_set_workers_time(statbuf.st_mtime);
>># Error: ^
>># illegal implicit conversion from 'struct timespec' to
>># 'long'
>
>
>>Errors caused tool to abort.
>>make: *** [Release.o/jk_map.o] Error 1
>
>
>>C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0>
>
>
>>EOT
>
>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Jk_map.c build 'problem'?
Posted by Günter Knauf <fu...@apache.org>.
Hi Norm,
can you please also do a build for Apache 1.3.x?
I guess there this problem doesnt occure because of the clib headers; its only with Apache2 with libc headers.
that's a netware-own problem;
please add -D_POSIX_SOURCE to the compiler flags and see if that fixes teh problem;
if so then please also check if we get no other strange behaviours - then we have to go other ways.
Guenter.
> Just zipping the compiler over the recent updates to mod_jk and get the
> error noted below....
> Nice to see the 'spirit' of JK2 lives on anyway...
> Regards,
> Norm
> Compiling ../common/jk_lb_worker.c
> Compiling ../common/jk_map.c
> ### mwccnlm Compiler:
> # File: ..\common\jk_map.c
> # ---------------------------
> # 413: jk_shm_set_workers_time(statbuf.st_mtime);
> # Error: ^
> # illegal implicit conversion from 'struct timespec' to
> # 'long'
> Errors caused tool to abort.
> make: *** [Release.o/jk_map.o] Error 1
> C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0>
> EOT
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org