Erro ao Compilar Sarg 2.2.3.1 [RESOLVIDO]

1. Erro ao Compilar Sarg 2.2.3.1 [RESOLVIDO]

Adriano Rodrigues Balani
balani

(usa Slackware)

Enviado em 27/09/2007 - 18:17h

Salve galera do VOL!!

Estou tendo um problema em compilar o sarg 2.2.3.1, quando executo o ./configure ele executa sem erros, mais quando executo o make, aparece o seguinte erro:
grepday.o(.text+0x92): In function `I18NgdImageStringFT':
/sistema/sarg-2.2.3.1/grepday.c:65: undefined reference to `gdImageStringFTEx'
grepday.o(.text+0x173): In function `bar':
/sistema/sarg-2.2.3.1/grepday.c:181: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x192):/sistema/sarg-2.2.3.1/grepday.c:182: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1ab):/sistema/sarg-2.2.3.1/grepday.c:183: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1ca):/sistema/sarg-2.2.3.1/grepday.c:184: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x1e9):/sistema/sarg-2.2.3.1/grepday.c:185: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x25e):/sistema/sarg-2.2.3.1/grepday.c:197: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x2a8):/sistema/sarg-2.2.3.1/grepday.c:207: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x2d4):/sistema/sarg-2.2.3.1/grepday.c:209: undefined reference to `gdImageLine'
grepday.o(.text+0x2fe):/sistema/sarg-2.2.3.1/grepday.c:210: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x321):/sistema/sarg-2.2.3.1/grepday.c:211: undefined reference to `gdImageRectangle'
grepday.o(.text+0x3c5):/sistema/sarg-2.2.3.1/grepday.c:225: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x3fc):/sistema/sarg-2.2.3.1/grepday.c:176: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x412):/sistema/sarg-2.2.3.1/grepday.c:177: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x42e):/sistema/sarg-2.2.3.1/grepday.c:178: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x44c):/sistema/sarg-2.2.3.1/grepday.c:171: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x462):/sistema/sarg-2.2.3.1/grepday.c:172: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x47b):/sistema/sarg-2.2.3.1/grepday.c:173: more undefined references to `gdImageColorAllocate' follow
grepday.o(.text+0x691): In function `greport_day':
/sistema/sarg-2.2.3.1/grepday.c:255: undefined reference to `gdImageCreate'
grepday.o(.text+0x6ab):/sistema/sarg-2.2.3.1/grepday.c:257: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x6cd):/sistema/sarg-2.2.3.1/grepday.c:258: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x6ec):/sistema/sarg-2.2.3.1/grepday.c:259: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x70e):/sistema/sarg-2.2.3.1/grepday.c:260: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x724):/sistema/sarg-2.2.3.1/grepday.c:261: undefined reference to `gdImageColorAllocate'
grepday.o(.text+0x740):/sistema/sarg-2.2.3.1/grepday.c:262: more undefined references to `gdImageColorAllocate' follow
grepday.o(.text+0x798): In function `greport_day':
/sistema/sarg-2.2.3.1/grepday.c:266: undefined reference to `gdImageRectangle'
grepday.o(.text+0x7ba):/sistema/sarg-2.2.3.1/grepday.c:267: undefined reference to `gdImageFilledRectangle'
grepday.o(.text+0x825):/sistema/sarg-2.2.3.1/grepday.c:277: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x88d):/sistema/sarg-2.2.3.1/grepday.c:287: undefined reference to `gdImageFilledPolygon'
grepday.o(.text+0x8ac):/sistema/sarg-2.2.3.1/grepday.c:289: undefined reference to `gdImageLine'
grepday.o(.text+0x8d1):/sistema/sarg-2.2.3.1/grepday.c:290: undefined reference to `gdImageLine'
grepday.o(.text+0x8f3):/sistema/sarg-2.2.3.1/grepday.c:291: undefined reference to `gdImageLine'
grepday.o(.text+0x912):/sistema/sarg-2.2.3.1/grepday.c:292: undefined reference to `gdImageLine'
grepday.o(.text+0x937):/sistema/sarg-2.2.3.1/grepday.c:293: undefined reference to `gdImageLine'
grepday.o(.text+0x95f):/sistema/sarg-2.2.3.1/grepday.c:294: more undefined references to `gdImageLine' follow
grepday.o(.text+0x1771): In function `greport_day':
/sistema/sarg-2.2.3.1/grepday.c:449: undefined reference to `gdImagePng'
grepday.o(.text+0x1789):/sistema/sarg-2.2.3.1/grepday.c:451: undefined reference to `gdImageDestroy'
collect2: ld returned 1 exit status
make: ** [sarg] Erro 1

Se alguem puder me ajudar, fico agradecido desde já.


  


2. MELHOR RESPOSTA

Edison
edisonlcp

(usa Slackware)

Enviado em 22/10/2008 - 18:44h

instale o package fontconfig que isso irá parar de ocorrer.
qualquer duvida pode mandar.

3. Instala o GCC ESSENTIALS

Marx
hackingsnake

(usa Slackware)

Enviado em 25/10/2008 - 10:37h

Acho que é a falta do G++, tive esse problema no slackware, e instalei o GCC FULL e funcionou ´perfeito, sei que no Debian, ele apresenta problemas com GD, mais é a falta do GCC (G++), avisa qual a distro que vc tá usando que fica mais fácil de ajudar.

[]´s!

One.!


4. make: *** [sarg] Error 1

Alexandre Pidhorodeckyj
pidhorodeckyj

(usa FreeBSD)

Enviado em 09/12/2008 - 10:25h

cara to com mesmo erro instalei o fontconfig-2.6.0
e na hora de dar o make no sarg da o mesmo erro make: *** [sarg] Error 1
sabe me dizer oque seria.


5. Re: Erro ao Compilar Sarg 2.2.3.1 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 19/12/2008 - 11:22h

Se ta resolvido, amigo... poderia compartilhar com o pessoal como fez pra resolver????

não eh esse o princípio do fórum?

grato, um abraço

André


6. Resolvi dessa maneira.

Adriano Rodrigues Balani
balani

(usa Slackware)

Enviado em 19/12/2008 - 11:42h

Deixei o Sarg de lado por enquanto e segui esse artigo: http://www.vivaolinux.com.br/artigo/Direcionando-log-Squid-para-banco-MySQL/, que demonstra como direcionar o log do squid para o mysql, e estou desenvolvendo uma interface em php para visualizar os registros.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts