[mod_python] compile errors on solaris

Daniel Plagge Daniel.Plagge at tu-clausthal.de
Fri Jul 28 14:26:27 EST 2000


Hello,

on Solaris the Sun-C-compiler complaints about some syntax errors,
mainly because C++ syntax is used. I append a trivial patch which
should solve the problem, so later versions of mod_python could
compile out of the box. :)

Bye,
Daniel





*** mod_python.c.orig	Fri Jul 28 12:32:52 2000
--- mod_python.c	Fri Jul 28 12:52:50 2000
***************
*** 600,606 ****
  static int tablelength(tableobject *self) 
  { 
      return ap_table_elts(self->table)->nelts;
! };
  
  /**
   ** tablesetitem
--- 600,606 ----
  static int tablelength(tableobject *self) 
  { 
      return ap_table_elts(self->table)->nelts;
! }
  
  /**
   ** tablesetitem
***************
*** 638,644 ****
  	ap_table_set(self->table, k, PyString_AsString(val));
      }
      return 0;
! };
  
  /**
   ** tb_setitem
--- 638,644 ----
  	ap_table_set(self->table, k, PyString_AsString(val));
      }
      return 0;
! }
  
  /**
   ** tb_setitem
***************
*** 2253,2260 ****
  	    char *module = elts[i].key;
  	    char *dir = elts[i].val;
  
! 	    // XXXXXX PythonInterpreter!!!
! 	    // This needs to be addressed in config_merge?
  	    interpreter = dir;
  
  #ifdef WITH_THREAD  
--- 2253,2260 ----
  	    char *module = elts[i].key;
  	    char *dir = elts[i].val;
  
! 	    /* XXXXXX PythonInterpreter!!! */
! 	    /* This needs to be addressed in config_merge? */
  	    interpreter = dir;
  
  #ifdef WITH_THREAD  
***************
*** 2355,2361 ****
      return python_handler(req, "PythonLogHandler");
  }
  static void PythonChildExitHandler(server_rec *srv, pool *p) {
!     // printf("In ExitHandler\n");
  }
  
  
--- 2355,2361 ----
      return python_handler(req, "PythonLogHandler");
  }
  static void PythonChildExitHandler(server_rec *srv, pool *p) {
!   /* printf("In ExitHandler\n"); */
  }
  
  



More information about the Mod_python mailing list