O VOL já esta repleto de artigos sobre a instalação do
MSN-PROXY (excelente solução open-source de monitoramento de MSN). Ex:
Caso precise de um manual para instalação, cada um dos artigos acima vai contribuir de forma diferente. Portanto, não vou cobrir esta parte de instalação.
Minha idéia aqui é compartilhar os erros com os quais topei para instalar este recurso e as soluções aplicadas.
Fiz esta instalação utilizando a versão msn-proxy-0.6.tar.gz e Slackware 10.2 e Slackware 12.
Se, ao rodar o comando make após você extrair o MSN Proxy topar com:
ERRO (1)
In file included from ns-data.h:25,
from user.h:32,
from ns.h:25,
from msn-proxy.c:27:
client.h:28:19: error: event.h: No such file or directory
In file included from ns-data.h:25,
from user.h:32,
from ns.h:25,
from msn-proxy.c:27:
client.h:36: error: field 'read' has incomplete type
client.h:37: error: field 'write' has incomplete type
client.h:38: error: field 'listen' has incomplete type
In file included from ns-data.h:26,
from user.h:32,
from ns.h:25,
from msn-proxy.c:27:
server.h:37: error: field 'read' has incomplete type
server.h:38: error: field 'write' has incomplete type
In file included from user.h:33,
from ns.h:25,
from msn-proxy.c:27:
sb-data.h:45: error: field 'listen' has incomplete type
In file included from msn-proxy.c:29:
ctl.h:34: error: field 'read' has incomplete type
msn-proxy.c: In function 'main':
msn-proxy.c:204: warning: implicit declaration of function 'event_init'
msn-proxy.c:211: warning: implicit declaration of function 'event_set'
msn-proxy.c:211: error: 'EV_READ' undeclared (first use in this function)
msn-proxy.c:211: error: (Each undeclared identifier is reported only once
msn-proxy.c:211: error: for each function it appears in.)
msn-proxy.c:211: error: 'EV_PERSIST' undeclared (first use in this function)
msn-proxy.c:212: warning: implicit declaration of function 'event_add'
msn-proxy.c:217: warning: implicit declaration of function 'event_dispatch'
make: *** [msn-proxy.o] Error 1
1) Certifique-se de que a libevent esta instalada ( utilizei libevent-1.4.4-stable.tar.gz ).
2) ldconfig sempre e uma boa idéia após instalar uma lib.
Rode o make. Se não resolver, você provavelmente vai topar com:
ERRO (2)
mysql.c: In function `db_init':
mysql.c:279: error: `MYSQL_OPT_RECONNECT' undeclared (first use in this function)
mysql.c:279: error: (Each undeclared identifier is reported only once
mysql.c:279: error: for each function it appears in.)
make: *** [mysql.o] Error 1
1) Edite o arquivo Makefile e certifique-se de que as variáveis MYSQLINC e MYSQLLIB possuem caminhos válidos (para confirmar, dentro do PATH informado em MYSQLINC deve existir um arquivo mysql.h e dentro do MYSQLLIB devem existir as referências para o libmysql... ).
2) Edite o arquivo mysql.h e localize a linha:
#include <mysql/mysql.h>
Remova o PATH mysql/, deixando:
#include <mysql.h>
Rode o make que isso deve resolver.
;)