Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Ivan Bogomolov                       2:5080/800.77  28 Dec 2001  20:39:40
 To : All
 Subject : hc-cron
 -------------------------------------------------------------------------------- 
 
 
 Пытаюсь себе собрать сабж. Вылетает с ошибкой:
 [ivan@amd hc-cron-0.14]$ make all
 gcc  -I. -DPOSIX    -c -o misc.o misc.c
 misc.c: In function `log_it':
 misc.c:543: warning: initialization makes pointer from integer without a cast
 misc.c:578: dereferencing pointer to incomplete type
 misc.c:578: dereferencing pointer to incomplete type
 misc.c:578: dereferencing pointer to incomplete type
 misc.c:578: dereferencing pointer to incomplete type
 misc.c:578: dereferencing pointer to incomplete type
 make: *** [misc.o] Ошибка 1
 [ivan@amd hc-cron-0.14]$
 
 Вот кусок misc.c (строка, начинающаяся с t->tm_mon+1 -- 578):
   snprintf(msg, msg_size, "%s (%02d/%02d-%02d:%02d:%02d-%d) %s (%s)\n",     
 username,      t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec, pid,
 event, detail);
 
 В Си не разбираюсь, поэтому прошу помочь. Можно ли его откомпилить на РХ7.2?
 
                                         Еще спишемся, All!
 
 ... XMMS playing: track07
 --- GoldED+ 1.1.4/LNX, Linux 2.4.13-lnz-6 (i586)
  * Origin: Registered Linux User #206985 (2:5080/800.77)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 hc-cron   Ivan Bogomolov   28 Dec 2001 20:39:40 
Архивное /ru.linux/175283c2c8564.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional