[Linux-Biella] ricompilazione SARG

Leonardo Buffa leonardo.buffa a bilug.linux.it
Lun 3 Dic 2012 18:35:10 CET


ciao
a un cliente piace fare statistiche di un anno... quindi il sarg mi 
risponde:

too many different dates blablabla

leggo in giro che si deve ricompilare SARG buttandogli un define 
MAX_DATETIME_DAYS piu' alto che di default non so piu' quant'e'

allora edito il include/conf.h e setto tipo 366

il ./configure va senza problemi ma...
il make esplode come segnero' qui sotto...
lasciando remarcata la riga la compilazione va avanti semza problemi... 
mi sapete dare una mano?

non riesco a capire la riga:

include/conf.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before numeric constant

ho provato a mettere un = prima del 366 ma proprio non gli piace...

allego cmq tutto il log se qualcuno mi sa dare una mano...


root a debian:/opt/sources/sarg-2.3.3# make
gcc -std=gnu99 -c -I.  -DBINDIR=\"/usr/local/bin\" 
-DSYSCONFDIR=\"/usr/local/etc\" 
-DFONTDIR=\"/usr/local/share/sarg/fonts\" 
-DIMAGEDIR=\"/usr/local/share/sarg/images\" 
-DSARGPHPDIR=\"/var/www/html\" -DLOCALEDIR=\"/usr/local/share/locale\" 
-DPACKAGE_NAME=\"sarg\" -DPACKAGE_TARNAME=\"sarg\" 
-DPACKAGE_VERSION=\"2.3.3\" -DPACKAGE_STRING=\"sarg\ 2.3.3\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_DIRENT_H=1 
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_SYS_TIME_H=1 -DHAVE_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 
-DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_CTYPE_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_RESOURCE_H=1 
-DHAVE_SYS_WAIT_H=1 -DHAVE_STDARG_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_MATH_H=1 
-DHAVE_LIBINTL_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_STDBOOL_H=1 
-DHAVE_GETOPT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_GD_H=1 -DHAVE_GDFONTL_H=1 
-DHAVE_GDFONTT_H=1 -DHAVE_GDFONTS_H=1 -DHAVE_GDFONTMB_H=1 
-DHAVE_GDFONTG_H=1 -DHAVE_ICONV=1 -DICONV_CONST= -DHAVE_ICONV_H=1 
-DHAVE_PCRE_H=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 
-D_FILE_OFFSET_BITS=64 -DHAVE_FOPEN64=1 -D_LARGEFILE64_SOURCE=1 
-DHAVE_BZERO=1 -DHAVE_BACKTRACE=1 -DHAVE_SYMLINK=1 -DHAVE_LSTAT=1 
-DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_MKSTEMP=1 
-DSIZEOF_RLIM_T=8 -DRLIM_STRING=\"%lli\" -g -O2 -Wall -Wno-sign-compare 
-Wextra -Wno-unused-parameter -Werror=implicit-function-declaration 
-Werror=format  util.c
In file included from util.c:30:
include/conf.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before numeric constant
util.c: In function ‘getperiod_fromsarglog’:
util.c:793: error: dereferencing pointer to incomplete type
util.c:844: error: dereferencing pointer to incomplete type
util.c:845: error: dereferencing pointer to incomplete type
util.c:846: error: dereferencing pointer to incomplete type
util.c:847: error: dereferencing pointer to incomplete type
util.c:848: error: dereferencing pointer to incomplete type
util.c:849: error: dereferencing pointer to incomplete type
util.c:850: error: dereferencing pointer to incomplete type
util.c:851: error: dereferencing pointer to incomplete type
util.c:852: error: dereferencing pointer to incomplete type
util.c:853: error: dereferencing pointer to incomplete type
util.c: In function ‘getperiod_fromrange’:
util.c:861: error: dereferencing pointer to incomplete type
util.c:861: error: dereferencing pointer to incomplete type
util.c:862: error: dereferencing pointer to incomplete type
util.c:863: error: dereferencing pointer to incomplete type
util.c:864: error: dereferencing pointer to incomplete type
util.c:866: error: dereferencing pointer to incomplete type
util.c:866: error: dereferencing pointer to incomplete type
util.c:867: error: dereferencing pointer to incomplete type
util.c:868: error: dereferencing pointer to incomplete type
util.c:869: error: dereferencing pointer to incomplete type
util.c: In function ‘getperiod_buildtext’:
util.c:879: error: dereferencing pointer to incomplete type
util.c:881: error: dereferencing pointer to incomplete type
util.c:884: error: dereferencing pointer to incomplete type
util.c:888: error: dereferencing pointer to incomplete type
util.c:888: error: dereferencing pointer to incomplete type
util.c:889: error: dereferencing pointer to incomplete type
util.c:889: error: dereferencing pointer to incomplete type
util.c:890: error: dereferencing pointer to incomplete type
util.c:890: error: dereferencing pointer to incomplete type
util.c:893: error: dereferencing pointer to incomplete type
util.c:895: error: dereferencing pointer to incomplete type
util.c:897: error: dereferencing pointer to incomplete type
util.c:903: error: dereferencing pointer to incomplete type
util.c:903: error: dereferencing pointer to incomplete type
util.c:904: error: dereferencing pointer to incomplete type
util.c:904: error: dereferencing pointer to incomplete type
util.c:906: error: dereferencing pointer to incomplete type
util.c:906: error: dereferencing pointer to incomplete type
util.c:907: error: dereferencing pointer to incomplete type
util.c:907: error: dereferencing pointer to incomplete type
util.c: In function ‘vrfydir’:
util.c:990: error: dereferencing pointer to incomplete type
util.c:991: error: dereferencing pointer to incomplete type
util.c:992: error: dereferencing pointer to incomplete type
util.c:993: error: dereferencing pointer to incomplete type
util.c:994: error: dereferencing pointer to incomplete type
util.c:995: error: dereferencing pointer to incomplete type
util.c:1017: error: dereferencing pointer to incomplete type
make: *** [util.o] Error 1

-- 
花は桜木、人は武士


Maggiori informazioni sulla lista Linux