httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@en.muc.de>
Subject Re: mod_rewrite
Date Wed, 14 Aug 1996 11:07:59 GMT
On 14 Aug 1996 03:12:22 +0200 in en.lists.apache-new-httpd you wrote:

> So I went to go try and commit mod_rewrite. I got the current version from
> http://www.engelschall.com/sw/mod_rewrite/arc/mod_rewrite-SNAP/, figuring
> it'd probably be best. So I get the latest version, install it, and try to
> compile. Hmm: 

> cc -c   -g -DSOLARIS2 -DSTATUS -v mod_rewrite.c
> "mod_rewrite.c", line 1422: syntax error before or at: static
> "mod_rewrite.c", line 1427: undefined symbol: q
> "mod_rewrite.c", line 1427: warning: improper pointer/integer combination:
> op "="
> "mod_rewrite.c", line 1429: undefined symbol: olduri
> "mod_rewrite.c", line 1429: warning: improper pointer/integer combination:
> arg #1
> "mod_rewrite.c", line 1430: cannot dereference non-pointer type
> "mod_rewrite.c", line 1436: warning: function expects to return value:
> apply_rewrite_cond
> "mod_rewrite.c", line 1437: cannot recover from previous errors
> cc: acomp failed for mod_rewrite.c
> *** Error code 2
> make: Fatal error: Command failed for target `mod_rewrite.o'

> This, obviously, is not my idea of a clean compile. And I managed to
> overwrite (accidentally) the version from a few days ago that worked fine.

Just a litte wrong-placed brace! Sorry, I didn't discobered this little typo
bug because I currently work under 1.1.1 sources. If you don't want to
wait until 18:00 GMT today then just apply the above patch:

------------------------------------------
*** ../../apache.11/src/mod_rewrite.c    Tue Aug 13 19:01:23 1996
--- mod_rewrite.c    Wed Aug 14 12:56:05 1996
***************
*** 1391,1398 ****
              strcpy(inputbuf, input);
          }
          rc = (regexec(p->regexp, inputbuf) != 0);
-     }
  #endif
  
      /* if this is a non-matching regexp, just negate the result */ 
      if (p->flags & CONDFLAG_NOTMATCH) 
--- 1391,1398 ----
              strcpy(inputbuf, input);
          }
          rc = (regexec(p->regexp, inputbuf) != 0);
  #endif
+     }
  
      /* if this is a non-matching regexp, just negate the result */ 
      if (p->flags & CONDFLAG_NOTMATCH) 
------------------------------------------

The line numbers are wrong because my working copy is more up-to-date, but
because it is a context diff you should be able to apply it.

Greetings,
                                        Ralf S. Engelschall    
                                        rse@engelschall.com
                                        http://www.engelschall.com/~rse

Mime
View raw message