Hi all.
I have trouble with install sarg.
when I install v2.3.7 on FreeBSD 8.0
venus# make
gcc -std=gnu99 -c -I. -I/usr/local/include -DBINDIR=\"/usr/local/bin\" -DSYSCONFDIR=\"/usr/local/sarg\" -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.7\" -DPACKAGE_STRING=\"sarg\ 2.3.7\" -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_SYS_DIRENT_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_MATH_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_GETOPT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_ICONV_H=1 -DHAVE_PCRE_H=1 -DHAVE_ICONV=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DHAVE_BZERO=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 log.c
log.c: In function 'main':
log.c:197: error: expected expression before ')' token
log.c:201: error: expected expression before ')' token
*** Error code 1
Stop in /usr/ports/www/sarg/sarg-2.3.7.
- When I install v2.3.2 on FreeBSD 8.0
- venus# make install clean
- ===> Building for sarg-2.3.2_5
- cc -L/usr/local/lib util.o log.o report.o topuser.o email.o sort.o html.o index.o getconf.o usage.o decomp.o ip2name.o useragent.o exclude.o convlog.o totday.o repday.o datafile.o indexonly.o splitlog.o lastlog.o topsites.o siteuser.o css.o smartfilter.o denied.o authfail.o charset.o redirector.o auth.o download.o grepday.o dansguardian_log.o dansguardian_report.o realtime.o btree_cache.o usertab.o userinfo.o longline.o url.o -o sarg -lldap /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -lm -lintl
- grepday.o(.text+0x7): In function `greport_cleanup':
-
- undefined reference to `gdFontCacheShutdown'
- grepday.o(.text+0x21e): In function `Sarg_gdImageStringFT':
-
- undefined reference to `gdImageStringFTEx'
- grepday.o(.text+0x2da): In function `Sarg_gdImageStringFT':
-
- undefined reference to `gdImageStringFTEx'
- grepday.o(.text+0x476): In function `greport_plot':
-
- undefined reference to `gdImageCreate'
- grepday.o(.text+0x5ed): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x619): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x645): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x671): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x69d): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x6c9): more undefined references to `gdImageColorAllocate' follow
- grepday.o(.text+0x7f4): In function `greport_plot':
-
- undefined reference to `gdImageRectangle'
- grepday.o(.text+0x832): In function `greport_plot':
-
- undefined reference to `gdImageFilledRectangle'
- grepday.o(.text+0x898): In function `greport_plot':
-
- undefined reference to `gdImageFilledPolygon'
- grepday.o(.text+0x8f8): In function `greport_plot':
-
- undefined reference to `gdImageFilledPolygon'
- grepday.o(.text+0x935): In function `greport_plot':
-
- undefined reference to `gdImageLine'
- grepday.o(.text+0x970): In function `greport_plot':
-
- undefined reference to `gdImageLine'
- grepday.o(.text+0x9ac): In function `greport_plot':
-
- undefined reference to `gdImageLine'
- grepday.o(.text+0x9e8): In function `greport_plot':
-
- undefined reference to `gdImageLine'
- grepday.o(.text+0xa20): In function `greport_plot':
-
- undefined reference to `gdImageLine'
- grepday.o(.text+0xa5a): more undefined references to `gdImageLine' follow
- grepday.o(.text+0xd34): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0xd60): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0xd8c): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0xe79): In function `greport_plot':
-
- undefined reference to `gdImageLine'
- grepday.o(.text+0x1336): In function `greport_plot':
-
- undefined reference to `gdImageFilledPolygon'
- grepday.o(.text+0x136a): In function `greport_plot':
-
- undefined reference to `gdImageLine'
- grepday.o(.text+0x13bf): In function `greport_plot':
-
- undefined reference to `gdImageFilledRectangle'
- grepday.o(.text+0x13f9): In function `greport_plot':
-
- undefined reference to `gdImageRectangle'
- grepday.o(.text+0x1645): In function `greport_plot':
-
- undefined reference to `gdImageFilledPolygon'
- grepday.o(.text+0x168a): In function `greport_plot':
-
- undefined reference to `gdImageFilledRectangle'
- grepday.o(.text+0x1710): In function `greport_plot':
-
- undefined reference to `gdImagePng'
- grepday.o(.text+0x1726): In function `greport_plot':
-
- undefined reference to `gdImageDestroy'
- grepday.o(.text+0x1801): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x182d): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x1859): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x19a2): In function `greport_plot':
-
- undefined reference to `gdImageColorAllocate'
- grepday.o(.text+0x19ce): In function `greport_plot':
- undefined reference to
gdImageColorAllocate'
grepday.o(.text+0x19fa): more undefined references togdImageColorAllocate' follow
gmake: *** [sarg] 1
*** Error code 1
Stop in /usr/ports/www/sarg.
*** Error code 1
Stop in /usr/ports/www/sarg.
Please help us understand
Thx.
Sarg 2.3.7 seems to have a problem with the PACKAGE_NAME constant when it is used with gettext functions. It must be related with gettext functions definition on FreeBSD but google doesn't help here. If you don't need National Language Support, configure sarg with --disable-nls. It should circumvent the problem.
Sarg 2.3.2 requires libgd development package unless you configure sarg with --without-gd. The configuration script should have detected that libgd is not available. So it may be partially installed or is incompatible with sarg (wrong architecture perhaps?).