[FUG-BR] Erro ao compilar o sarg

Luciano Bissoli luciano.bissoli em bsd.com.br
Sexta Agosto 10 08:45:09 BRT 2012


Bom dia pessoal, esses dias reparei que meu sarg não estava gerando
relatorios, fui ver o que estava acontecendo e ele não estava executando,
dava um erro que agora não me recordo pois para falar a verdade nem prestei
atenção nele.

Enfim, fui no ports e mandei desinstalar o coitado (maldita hora que fui
fazer isso), mais ja era tarde. fui tentar recompila-lo novamente e esta
dando o seguinte erro.

url.c: In function 'read_hostalias':
url.c:105: warning: 'ReplaceE' may be used uninitialized in this function
url.c:105: note: 'ReplaceE' was declared here
url.c:103: warning: 'NameEndE' may be used uninitialized in this function
url.c:103: note: 'NameEndE' was declared here
url.c:345: warning: 'ReplaceE' may be used uninitialized in this function
url.c:345: note: 'ReplaceE' was declared here
url.c:263: warning: 'ReplaceE' may be used uninitialized in this function
url.c:263: note: 'ReplaceE' was declared here
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+0x5): In function `greport_cleanup':
: undefined reference to `gdFontCacheShutdown'
grepday.o(.text+0x229): In function `Sarg_gdImageStringFT':
: undefined reference to `gdImageStringFTEx'
grepday.o(.text+0x2d3): In function `Sarg_gdImageStringFT':
: undefined reference to `gdImageStringFTEx'
grepday.o(.text+0x46a): In function `greport_plot':
: undefined reference to `gdImageCreate'
grepday.o(.text+0x5d3): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x5f6): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x619): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x633): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x656): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x673): more undefined references to `gdImageColorAllocate'
follow
grepday.o(.text+0x771): In function `greport_plot':
: undefined reference to `gdImageRectangle'
grepday.o(.text+0x7a1): In function `greport_plot':
: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x825): In function `greport_plot':
: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x8a2): In function `greport_plot':
: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x8d2): In function `greport_plot':
: undefined reference to `gdImageLine'
grepday.o(.text+0x900): In function `greport_plot':
: undefined reference to `gdImageLine'
grepday.o(.text+0x92e): In function `greport_plot':
: undefined reference to `gdImageLine'
grepday.o(.text+0x95c): In function `greport_plot':
: undefined reference to `gdImageLine'
grepday.o(.text+0x987): In function `greport_plot':
: undefined reference to `gdImageLine'
grepday.o(.text+0x9b4): more undefined references to `gdImageLine' follow
grepday.o(.text+0xbfd): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0xc20): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0xc43): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0xd06): In function `greport_plot':
: undefined reference to `gdImageLine'
grepday.o(.text+0x10fd): In function `greport_plot':
: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x111e): In function `greport_plot':
: undefined reference to `gdImageLine'
grepday.o(.text+0x113f): In function `greport_plot':
: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x1160): In function `greport_plot':
: undefined reference to `gdImageRectangle'
grepday.o(.text+0x1394): In function `greport_plot':
: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x13c5): In function `greport_plot':
: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x1437): In function `greport_plot':
: undefined reference to `gdImagePng'
grepday.o(.text+0x144c): In function `greport_plot':
: undefined reference to `gdImageDestroy'
grepday.o(.text+0x149d): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x14c0): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x14e3): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1611): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1634): In function `greport_plot':
: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1657): more undefined references to
`gdImageColorAllocate' follow
gmake: *** [sarg] Error 1
*** Error code 1

Stop in /usr/ports/www/sarg.
*** Error code 1

Stop in /usr/ports/www/sarg.


Pelo que percebi é um erro no gcc ou gmake, eles estão instalados

gcc-4.6.3           GNU Compiler Collection 4.6
gd-2.0.35_7,1       A graphics library for fast creation of images
gdbm-1.8.3_3        The GNU database manager
gettext-0.18.1.1    GNU gettext package
gio-fam-backend-2.28.8 FAM backend for GLib\'s GIO library
glib-1.2.10_13      Some useful routines of C programming (previous stable
vers
glib-2.28.8         Some useful routines of C programming (current stable
versi
glproto-1.4.15      GLX extension headers
gmake-3.82          GNU version of 'make' utility


Não sei o que fiz de cáca para dar esse erro......



-- 
Luciano O. Bissoli
Analista de Informática


Mais detalhes sobre a lista de discussão freebsd