ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА














     АРХИВ :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-talk] mod_accel-1.0.32 compile error



On Thu, 9 Dec 2004, Dmitriy Yermakov wrote:

> ===> src/modules/accel
> gcc -c -I/usr/local/include -I../../os/unix -I../../include   -funsigned-char -DRUSSIAN_APACHE -DMOD_ACCEL  -DMOD_ACCEL_CACHEMGR -DEAPI -DEAPI_MM -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_accel.c
> mod_accel.c: In function `accel_translate':
> mod_accel.c:163: syntax error before `*'
> mod_accel.c:168: `conf' undeclared (first use in this function)
> mod_accel.c:168: (Each undeclared identifier is reported only once
> mod_accel.c:168: for each function it appears in.)
> mod_accel.c:171: `uri_len' undeclared (first use in this function)
>
> $ gcc -v
> Using builtin specs.
> gcc version 2.95.4 20020320 [FreeBSD]
>
> 158-
> 159-    if (a = ap_ctx_get(r->ctx, "mod_accel")) {
> 160-        return DECLINED;
> 161-    }
> 162-
> 163:    accel_server_conf *conf = (accel_server_conf *)
> 164-                ap_get_module_config(r->server->module_config, &accel_module);
> 165-
>
> Закоментаривание строк 159-161 приводит к успешной сборке
> (в коде mod_accel-1.0.31 этих строк нет)

Нужен вот такой патчик (никак не собирусь сделать 1.0.33):

===================================================================
--- src/mod_accel/mod_accel.c   26 Jun 2003 12:25:59 -0000
+++ src/mod_accel/mod_accel.c   9 Dec 2004 16:18:35 -0000
@@ -151,16 +151,21 @@

 static int accel_translate(request_rec *r)
 {
-    int                i, j;
+    int                i, j, uri_len;
     accel_rec         *a;
     accel_pass        *pass;
     accel_no_pass     *no_pass;
+    accel_server_conf *conf;

-    accel_server_conf *conf = (accel_server_conf *)
+    if (a = ap_ctx_get(r->ctx, "mod_accel")) {
+        return DECLINED;
+    }
+
+    conf = (accel_server_conf *)
                 ap_get_module_config(r->server->module_config, &accel_module);

     /* AccelPass */
-    int uri_len = strlen(r->uri);
+    uri_len = strlen(r->uri);
     pass = (accel_pass *) conf->pass->elts;

     for (i = 0; i < conf->pass->nelts; i++) {
===================================================================


Игорь Сысоев
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.