URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 77453
[ Назад ]

Исходное сообщение
"Сборка mod_uid"

Отправлено nordicdyno , 21-Ноя-07 14:01 
Пытаюсь собрать mod_uid для 2-го апача.

$ /usr/local/apache2/bin/apxs -c mod_uid2

/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include -I/usr/local/include  -c -o mod_uid2.lo mod_uid2.c && touch mod_uid2.slo
mod_uid2.c: In function 'make_cookie':
mod_uid2.c:171: warning: assignment makes pointer from integer without a cast
mod_uid2.c:177: error: dereferencing pointer to incomplete type
mod_uid2.c:178: error: dereferencing pointer to incomplete type
mod_uid2.c:178: error: dereferencing pointer to incomplete type
mod_uid2.c:179: error: dereferencing pointer to incomplete type
mod_uid2.c:180: error: dereferencing pointer to incomplete type
mod_uid2.c:180: error: dereferencing pointer to incomplete type
mod_uid2.c:180: error: dereferencing pointer to incomplete type
mod_uid2.c:185: error: dereferencing pointer to incomplete type
mod_uid2.c:186: error: dereferencing pointer to incomplete type
mod_uid2.c:186: error: dereferencing pointer to incomplete type
mod_uid2.c:187: error: dereferencing pointer to incomplete type
mod_uid2.c:188: error: dereferencing pointer to incomplete type
mod_uid2.c:188: error: dereferencing pointer to incomplete type
mod_uid2.c:188: error: dereferencing pointer to incomplete type
apxs:Error: Command failed with rc=65536


Похоже ему не нравятсы вызовы:

new_cookie
        = apr_psprintf(r->pool,
              "%s=%s; path=%s; expires=%s, %.2d-%s-%.2d %.2d:%.2d:%.2d GMT",
              cname, cookbuf, cpath,apr_day_snames[tms->tm_wday],
              tms->tm_mday, apr_month_snames[tms->tm_mon],
              tms->tm_year % 100,
              tms->tm_hour, tms->tm_min, tms->tm_sec);

точнее то что tms->tm_hour без приведения типа.

Не хочется ковырять сырец, ибо в С плохо шарю. Подскажите лучше какие ключи apxs-у (точнее gcc который н вызывает) нужно указать, чтобы он не делал эту проверку типов?


Содержание

Сообщения в этом обсуждении
"Сборка mod_uid"
Отправлено nordicdyno , 21-Ноя-07 15:02 
отвечу сам себе (мало ли кто с тем же столкнется)
оказалось компилер не видел структуры tm, так что достаточно подключить <time.h> и все собралось!