You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by Greg Ames <gr...@apache.org> on 2003/05/15 23:10:30 UTC

[PATCH] specweb99 for 1.3 fails to compile on Linux

moving to test-dev so others can review/test/comment/commit.

Greg
-------- Original Message --------
Subject: Re: specweb99
Date: Thu, 15 May 2003 11:44:16 -0400 (EDT)
From: <am...@izoard.com>
To: <gr...@apache.org>
References: <3E...@apache.org>

 > ams@izoard.com wrote:
 >
 >> I have a question about the state of specweb99 module. The reason is
 >> that I failed to compile the source I pulled out of CVS on RedHat 7.3
 >> Linux:
 >>
 >> apxs -c -DLINUX -I../../mm-1.1.3 -L../../mm-1.1.3 -lmm mod_specweb99.c
 >> gcc -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI -DEAPI_MM -fpic
 >> -DSHARED_MODULE -I/usr/local/apache/include -I../../mm-1.1.3 -DLINUX
 >> -c
 >

Greg,

Unfortunately, I don't have access to a Solaris box, only Linux. No idea
whether it would build on other platforms. Hopefully, this patch still turns
out useful.

Regards,

-a

--- mod_specweb99.c.orig        Thu May 15 12:52:25 2003
+++ mod_specweb99.c     Thu May 15 12:53:42 2003
@@ -352,7 +352,7 @@
         return 1;
      };

-    if (EQMODTIME(s, _my->up_lastmod)) {
+    if (EQMODTIME(s, _my->up_lastmod.tv_sec)) {
  #ifdef SEMCNTR
         semun semv;
  #if 0
@@ -439,7 +439,7 @@

      /* Store last modified date assuming no errors. */
      if (!e) {
-       _my->up_lastmod = MODTIME(s);
+       _my->up_lastmod.tv_sec = MODTIME(s);
  #ifdef DEBUG
         ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, sv,
                   "checkUPFile: File re-read. Date=%ld", (long) MODTIME(s));
@@ -473,7 +473,7 @@
         return 1;
      };

-    if (EQMODTIME(s, _my->cad_lastmod)) {
+    if (EQMODTIME(s, _my->cad_lastmod.tv_sec)) {
  #ifdef SEMCNTR
         /* also check sem's */
         semun semv;
@@ -566,7 +566,7 @@

      fclose(f);
      if (!e) {
-       _my->cad_lastmod = MODTIME(s);
+       _my->cad_lastmod.tv_sec = MODTIME(s);
  #ifdef DEBUG
         ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, sv,
                  "checkCADFile: File re-read. Date=%ld", (long) MODTIME(s));






Re: [PATCH] specweb99 for 1.3 fails to compile on Linux

Posted by Sander Temme <sc...@covalent.net>.
on 5/15/03 14:10, Greg Ames at gregames@apache.org wrote:

> moving to test-dev so others can review/test/comment/commit.

Yeah, that time stuff is different between linux and Solaris. I vaguely
remember doing some macros at some point to catch this... yup, in
mod_specweb99.h in the same dir... line 69 onwards. Should be able to do
catch the difference within the macro definition.

S.

> Greg
> -------- Original Message --------
> Subject: Re: specweb99
> Date: Thu, 15 May 2003 11:44:16 -0400 (EDT)
> From: <am...@izoard.com>
> To: <gr...@apache.org>
> References: <3E...@apache.org>
> 
>> ams@izoard.com wrote:
>> 
>>> I have a question about the state of specweb99 module. The reason is
>>> that I failed to compile the source I pulled out of CVS on RedHat 7.3
>>> Linux:
>>> 
>>> apxs -c -DLINUX -I../../mm-1.1.3 -L../../mm-1.1.3 -lmm mod_specweb99.c
>>> gcc -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI -DEAPI_MM -fpic
>>> -DSHARED_MODULE -I/usr/local/apache/include -I../../mm-1.1.3 -DLINUX
>>> -c
>> 
> 
> Greg,
> 
> Unfortunately, I don't have access to a Solaris box, only Linux. No idea
> whether it would build on other platforms. Hopefully, this patch still turns
> out useful.
> 
> Regards,
> 
> -a
> 
> --- mod_specweb99.c.orig        Thu May 15 12:52:25 2003
> +++ mod_specweb99.c     Thu May 15 12:53:42 2003
> @@ -352,7 +352,7 @@
>        return 1;
>     };
> 
> -    if (EQMODTIME(s, _my->up_lastmod)) {
> +    if (EQMODTIME(s, _my->up_lastmod.tv_sec)) {
> #ifdef SEMCNTR
>        semun semv;
> #if 0
> @@ -439,7 +439,7 @@
> 
>     /* Store last modified date assuming no errors. */
>     if (!e) {
> -       _my->up_lastmod = MODTIME(s);
> +       _my->up_lastmod.tv_sec = MODTIME(s);
> #ifdef DEBUG
>        ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, sv,
>                  "checkUPFile: File re-read. Date=%ld", (long) MODTIME(s));
> @@ -473,7 +473,7 @@
>        return 1;
>     };
> 
> -    if (EQMODTIME(s, _my->cad_lastmod)) {
> +    if (EQMODTIME(s, _my->cad_lastmod.tv_sec)) {
> #ifdef SEMCNTR
>        /* also check sem's */
>        semun semv;
> @@ -566,7 +566,7 @@
> 
>     fclose(f);
>     if (!e) {
> -       _my->cad_lastmod = MODTIME(s);
> +       _my->cad_lastmod.tv_sec = MODTIME(s);
> #ifdef DEBUG
>        ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, sv,
>                 "checkCADFile: File re-read. Date=%ld", (long) MODTIME(s));
> 
> 
> 
> 
> 
> 
> 


-- 
Covalent Technologies                             sctemme@covalent.net
Engineering group                                Voice: (415) 856 4214
303 Second Street #375 South                       Fax: (415) 856 4210
San Francisco CA 94107

   PGP Fingerprint: 7A8D B189 E871 80CB 9521  9320 C11E 7B47 964F 31D9

=======================================================
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message
=======================================================