cvs commit: modperl INSTALL.apaci Changes

2001-11-15 Thread stas

stas01/11/15 00:23:40

  Modified:.INSTALL.apaci Changes
  Log:
  - explain how perl has to be built in order to use DSO without problems
  (copied from the guide) based on email from Doug.
  
  Revision  ChangesPath
  1.8   +36 -0 modperl/INSTALL.apaci
  
  Index: INSTALL.apaci
  ===
  RCS file: /home/cvs/modperl/INSTALL.apaci,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- INSTALL.apaci 1999/04/19 20:29:17 1.7
  +++ INSTALL.apaci 2001/11/15 08:23:40 1.8
  @@ -200,6 +200,42 @@
   Objects (DSO).  So there is support for DSO in mod_perl now, too.  IBUT THIS
   IS STILL EXPERIMENTAL, SO BE WARNED!
   
  +=head2 When DSO can be used
  +
  +If you want to build Cmod_perl as DSO you must make sure that Perl
  +was built with system's native malloc(). If Perl was built with its
  +own malloc() and C-Dbincompat5005, it pollutes the main Chttpd
  +program with Ifree and Imalloc symbols.  When Chttpd restarts
  +(happens at startup too), any references in the main program to
  +Ifree and Imalloc become invalid, and this causes memory leaks and
  +segfaults.
  +
  +Notice that mod_perl's build system warns about this problem.
  +
  +With Perl 5.6.0+ this pollution can be prevented with
  +C-Ubincompat5005.  or C-Uusemymalloc for any version of Perl, but
  +there's a chance that might hurt performance depending on platform, so
  +C-Ubincompat5005 is likely a better choice.
  +
  +If you get the following reports with Perl version 5.6.0+:
  +
  +  % perl -V:usemymalloc
  +  usemymalloc='y';
  +  % perl -V:bincompat5005
  +  bincompat5005='define';
  +
  +rebuild Perl with C-Ubincompat5005.
  +
  +For Perl versions pre-5.6.x, if you get:
  +
  +  % perl -V:usemymalloc
  +  usemymalloc='y';
  +
  +rebuild Perl with C-Uusemymalloc.
  +
  +now rebuild mod_perl.
  +
  +
   =head2 Build mod_perl as DSO inside Apache source tree via APACI
   
   We already said that the new mod_perl build environment is a hybrid one. What
  
  
  
  1.623 +4 -0  modperl/Changes
  
  Index: Changes
  ===
  RCS file: /home/cvs/modperl/Changes,v
  retrieving revision 1.622
  retrieving revision 1.623
  diff -u -r1.622 -r1.623
  --- Changes   2001/09/09 21:56:46 1.622
  +++ Changes   2001/11/15 08:23:40 1.623
  @@ -10,6 +10,10 @@
   
   =item 1.26_01-dev
   
  +INSTALL.apaci: added an explanation of how perl has to be built in
  +order to use DSO without problems (copied from the guide) based on
  +email from Doug.  [Stas Bekman [EMAIL PROTECTED]]
  +
   warn if Perl is configured with -Duseshrplib and a libperl.so is found
   in a place where it should not be, example: /lib /usr/lib or /usr/local/lib
   
  
  
  



cvs commit: modperl-2.0/xs/tables/current/ModPerl FunctionTable.pm

2001-11-15 Thread dougm

dougm   01/11/15 09:52:00

  Modified:xs/tables/current/Apache ConstantsTable.pm FunctionTable.pm
StructureTable.pm
   xs/tables/current/ModPerl FunctionTable.pm
  Log:
  sync
  
  Revision  ChangesPath
  1.17  +1 -1  modperl-2.0/xs/tables/current/Apache/ConstantsTable.pm
  
  Index: ConstantsTable.pm
  ===
  RCS file: /home/cvs/modperl-2.0/xs/tables/current/Apache/ConstantsTable.pm,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ConstantsTable.pm 2001/11/12 22:17:02 1.16
  +++ ConstantsTable.pm 2001/11/15 17:52:00 1.17
  @@ -2,7 +2,7 @@
   
   # !!
   # ! WARNING: generated by Apache::ParseSource/0.02
  -# !  Mon Nov 12 14:22:14 2001
  +# !  Thu Nov 15 09:53:52 2001
   # !  do NOT edit, any changes will be lost !
   # !!
   
  
  
  
  1.26  +119 -1modperl-2.0/xs/tables/current/Apache/FunctionTable.pm
  
  Index: FunctionTable.pm
  ===
  RCS file: /home/cvs/modperl-2.0/xs/tables/current/Apache/FunctionTable.pm,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- FunctionTable.pm  2001/11/12 22:17:02 1.25
  +++ FunctionTable.pm  2001/11/15 17:52:00 1.26
  @@ -2,7 +2,7 @@
   
   # !!
   # ! WARNING: generated by Apache::ParseSource/0.02
  -# !  Mon Nov 12 14:22:23 2001
  +# !  Thu Nov 15 09:45:53 2001
   # !  do NOT edit, any changes will be lost !
   # !!
   
  @@ -1463,6 +1463,28 @@
 },
 {
   'return_type' = 'void',
  +'name' = 'ap_hook_create_connection',
  +'args' = [
  +  {
  +'type' = 'ap_HOOK_create_connection_t *',
  +'name' = 'pf'
  +  },
  +  {
  +'type' = 'const char * const *',
  +'name' = 'aszPre'
  +  },
  +  {
  +'type' = 'const char * const *',
  +'name' = 'aszSucc'
  +  },
  +  {
  +'type' = 'int',
  +'name' = 'nOrder'
  +  }
  +]
  +  },
  +  {
  +'return_type' = 'void',
   'name' = 'ap_hook_create_request',
   'args' = [
 {
  @@ -1571,6 +1593,11 @@
 },
 {
   'return_type' = 'apr_array_header_t *',
  +'name' = 'ap_hook_get_create_connection',
  +'args' = []
  +  },
  +  {
  +'return_type' = 'apr_array_header_t *',
   'name' = 'ap_hook_get_create_request',
   'args' = []
 },
  @@ -2323,6 +2350,11 @@
   ]
 },
 {
  +'return_type' = 'void',
  +'name' = 'ap_listen_pre_config',
  +'args' = []
  +  },
  +  {
   'return_type' = 'int',
   'name' = 'ap_location_walk',
   'args' = [
  @@ -3789,6 +3821,28 @@
   ]
 },
 {
  +'return_type' = 'conn_rec *',
  +'name' = 'ap_run_create_connection',
  +'args' = [
  +  {
  +'type' = 'apr_pool_t *',
  +'name' = 'p'
  +  },
  +  {
  +'type' = 'server_rec *',
  +'name' = 'server'
  +  },
  +  {
  +'type' = 'apr_socket_t *',
  +'name' = 'csd'
  +  },
  +  {
  +'type' = 'int',
  +'name' = 'conn_id'
  +  }
  +]
  +  },
  +  {
   'return_type' = 'int',
   'name' = 'ap_run_create_request',
   'args' = [
  @@ -4449,6 +4503,42 @@
 },
 {
   'return_type' = 'const char *',
  +'name' = 'ap_set_listenbacklog',
  +'args' = [
  +  {
  +'type' = 'cmd_parms *',
  +'name' = 'cmd'
  +  },
  +  {
  +'type' = 'void *',
  +'name' = 'dummy'
  +  },
  +  {
  +'type' = 'const char *',
  +'name' = 'arg'
  +  }
  +]
  +  },
  +  {
  +'return_type' = 'const char *',
  +'name' = 'ap_set_listener',
  +'args' = [
  +  {
  +'type' = 'cmd_parms *',
  +'name' = 'cmd'
  +  },
  +  {
  +'type' = 'void *',
  +'name' = 'dummy'
  +  },
  +  {
  +'type' = 'const char *',
  +'name' = 'ips'
  +  }
  +]
  +  },
  +  {
  +'return_type' = 'const char *',
   'name' = 'ap_set_name_virtual_host',
   'args' = [
 {
  @@ -4467,6 +4557,24 @@
 },
 {
   'return_type' = 'const char *',
  +'name' = 'ap_set_send_buffer_size',
  +'args' = [
  +  {
  +'type' = 'cmd_parms *',
  +'name' = 'cmd'
  +  },
  +  {
  +'type' = 'void *',
  +'name' = 'dummy'
  +  },
  +  {
  +'type' = 'const char *',
  +'name' = 'arg'
  +  }
  +]
  +  },
  +  {
  +'return_type' = 'const char *',
   'name' = 'ap_set_string_slot',
   'args' = [
 {
  @@ -4526,6 +4634,16 @@