httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@decus.org (Rodent of Unusual Size)
Subject Compiling HEAD (NT, 1.3) on OSF/1
Date Mon, 16 Jun 1997 10:44:35 GMT
    The compile of Ben's fixed stuff looks mostly good, except for the
    following:

cc -c   -O0 -g2 -DOSF1 -DSTATUS -DMAXIMUM_DNS  mod_rewrite.c
/usr/lib/cmplrs/cc/cfe: Warning: mod_rewrite.c, line 2264: Incompatible pointer
type assignment
         if (!spawn_child_err(p, rewritelog_child, (void *)(conf->rewritelogfile
+1),
 --------------------------------^
/usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 2283: redeclaration of 'rewri
telog_child'; previous declaration at line 352 in file './mod_rewrite.h'
 static int rewritelog_child(void *cmd)
 -----------^
/usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 2283: Incompatible function r
eturn type for this function
 static int rewritelog_child(void *cmd)
 ---------------------------^
/usr/lib/cmplrs/cc/cfe: Warning: mod_rewrite.c, line 2423: Incompatible pointer
type assignment
         rc = spawn_child_err(p, rewritemap_program_child, (void *)map->datafile
, kill_after_timeout, &fpin, &fpout,0L);
 --------------------------------^
/usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 2436: redeclaration of 'rewri
temap_program_child'; previous declaration at line 358 in file './mod_rewrite.h'
 static int rewritemap_program_child(void *cmd)
 -----------^
/usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 2436: Incompatible function r
eturn type for this function
 static int rewritemap_program_child(void *cmd)
 -----------------------------------^
*** Exit 1
Stop.

    Looks like mod_rewrite.h needs a little correcting:

Index: mod_rewrite.h
===================================================================
RCS file: /export/home/cvs/apache/src/mod_rewrite.h,v
retrieving revision 1.23
diff -c -r1.23 mod_rewrite.h
*** mod_rewrite.h	1997/06/15 19:22:32	1.23
--- mod_rewrite.h	1997/06/16 10:51:41
***************
*** 349,361 ****
  
      /* rewriting logfile support */
  static void  open_rewritelog(server_rec *s, pool *p);
! static void  rewritelog_child(void *cmd);
  static void  rewritelog(request_rec *r, int level, const char *text, ...);
  static char *current_logtime(request_rec *r);
  
      /* program map support */
  static void  run_rewritemap_programs(server_rec *s, pool *p);
! static void  rewritemap_program_child(void *cmd);
  
      /* env variable support */
  static void  expand_variables_inbuffer(request_rec *r, char *buf, int buf_len);
--- 349,361 ----
  
      /* rewriting logfile support */
  static void  open_rewritelog(server_rec *s, pool *p);
! static int   rewritelog_child(void *cmd);
  static void  rewritelog(request_rec *r, int level, const char *text, ...);
  static char *current_logtime(request_rec *r);
  
      /* program map support */
  static void  run_rewritemap_programs(server_rec *s, pool *p);
! static int   rewritemap_program_child(void *cmd);
  
      /* env variable support */
  static void  expand_variables_inbuffer(request_rec *r, char *buf, int buf_len);

    That fixes it for me..  I haven't tried actually *running* the
    result yet, but it at least compiles cleanly on Digital UNIX V3.2
    with the bundled cc.

    #ken    :-)}

Mime
View raw message