Re: Ajuda com LibMySQL

Augusto Ferronato <[email protected]>
Newsgroups gmane.network.nagios.user.brazil
Message-ID <[email protected]>
Pedro,
 Consegui resolver o problema, era pq o mysql que tava instalado, tava
todo fora do padrão ;), linkei os headers e funcionou!


Abs[]

On Tue, Jan 27, 2009 at 8:24 PM, pedro luiz nunes pinholato
<[email protected]> wrote:
> Cara, vc já confirmou se todas as dependencias do nagios e o mysql estão
> instaladas?
>
> 2009/1/26 Augusto Ferronato <[email protected]>
>
>> Pessoal,
>>  Estou instalando o nagios-plugins aqui no meu servidor, só que ele tá
>> dando este erro
>>
>>        then mv -f ".deps/check_mysql-check_mysql.Tpo"
>> ".deps/check_mysql-check_mysql.Po"; else rm -f
>> ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
>> check_mysql.c:48:19: error: mysql.h: No such file or directory
>> check_mysql.c:49:20: error: errmsg.h: No such file or directory
>> check_mysql.c:56: error: âMYSQL_PORTâ undeclared here (not in a function)
>> check_mysql.c: In function âmainâ:
>> check_mysql.c:71: error: âMYSQLâ undeclared (first use in this function)
>> check_mysql.c:71: error: (Each undeclared identifier is reported only once
>> check_mysql.c:71: error: for each function it appears in.)
>> check_mysql.c:71: error: expected â;â before âmysqlâ
>> check_mysql.c:72: error: âMYSQL_RESâ undeclared (first use in this
>> function)
>> check_mysql.c:72: error: âresâ undeclared (first use in this function)
>> check_mysql.c:73: error: âMYSQL_ROWâ undeclared (first use in this
>> function)
>> check_mysql.c:73: error: expected â;â before ârowâ
>> check_mysql.c:92: error: âmysqlâ undeclared (first use in this function)
>> check_mysql.c:94: error: âMYSQL_READ_DEFAULT_GROUPâ undeclared (first
>> use in this function)
>> check_mysql.c:98: error: âCR_UNKNOWN_HOSTâ undeclared (first use in
>> this function)
>> check_mysql.c:100: error: âCR_VERSION_ERRORâ undeclared (first use in
>> this function)
>> check_mysql.c:102: error: âCR_OUT_OF_MEMORYâ undeclared (first use in
>> this function)
>> check_mysql.c:104: error: âCR_IPSOCK_ERRORâ undeclared (first use in
>> this function)
>> check_mysql.c:106: error: âCR_SOCKET_CREATE_ERRORâ undeclared (first
>> use in this function)
>> check_mysql.c:113: warning: cast to pointer from integer of different size
>> check_mysql.c:113: warning: cast to pointer from integer of different size
>> check_mysql.c:113: warning: cast to pointer from integer of different size
>> check_mysql.c:113: warning: passing argument 1 of âstrlenâ makes
>> pointer from integer without a cast
>> check_mysql.c:113: warning: passing argument 2 of âmemcpyâ makes
>> pointer from integer without a cast
>> check_mysql.c:113: warning: passing argument 1 of â__strdupâ makes
>> pointer from integer without a cast
>> check_mysql.c:117: error: âCR_SERVER_GONE_ERRORâ undeclared (first use
>> in this function)
>> check_mysql.c:119: error: âCR_SERVER_LOSTâ undeclared (first use in
>> this function)
>> check_mysql.c:121: error: âCR_UNKNOWN_ERRORâ undeclared (first use in
>> this function)
>> check_mysql.c:128: warning: cast to pointer from integer of different size
>> check_mysql.c:128: warning: cast to pointer from integer of different size
>> check_mysql.c:128: warning: cast to pointer from integer of different size
>> check_mysql.c:128: warning: passing argument 1 of âstrlenâ makes
>> pointer from integer without a cast
>> check_mysql.c:128: warning: passing argument 2 of âmemcpyâ makes
>> pointer from integer without a cast
>> check_mysql.c:128: warning: passing argument 1 of â__strdupâ makes
>> pointer from integer without a cast
>> check_mysql.c:135: warning: cast to pointer from integer of different size
>> check_mysql.c:135: warning: cast to pointer from integer of different size
>> check_mysql.c:135: warning: cast to pointer from integer of different size
>> check_mysql.c:135: warning: passing argument 1 of âstrlenâ makes
>> pointer from integer without a cast
>> check_mysql.c:135: warning: passing argument 2 of âmemcpyâ makes
>> pointer from integer without a cast
>> check_mysql.c:135: warning: passing argument 1 of â__strdupâ makes
>> pointer from integer without a cast
>> check_mysql.c:147: error: ârowâ undeclared (first use in this function)
>> check_mysql.c:148: warning: cast to pointer from integer of different size
>> check_mysql.c:148: warning: cast to pointer from integer of different size
>> check_mysql.c:148: warning: cast to pointer from integer of different size
>> check_mysql.c:148: warning: passing argument 1 of âstrlenâ makes
>> pointer from integer without a cast
>> check_mysql.c:148: warning: passing argument 2 of âmemcpyâ makes
>> pointer from integer without a cast
>> check_mysql.c:148: warning: passing argument 1 of â__strdupâ makes
>> pointer from integer without a cast
>> check_mysql.c:166: error: âMYSQL_FIELDâ undeclared (first use in this
>> function)
>> check_mysql.c:166: error: âfieldsâ undeclared (first use in this function)
>> make[2]: *** [check_mysql-check_mysql.o] Error 1
>> make[2]: Leaving directory `/tmp/nagios-plugins-1.4.12/plugins'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/tmp/nagios-plugins-1.4.12'
>> make: *** [all] Error 2
>>
>>
>> O estranho que eu tenho as libs DEV do MySQL instalada
>>
>>   libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
>>   libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
>>   libmysqlpp.so.2 -> libmysqlpp.so.2.0.7
>>
>> Os headers
>>
>> /usr/local/mysql/include/mysql/mysql.h
>>
>> Quando dou um configure
>>
>>            --with-apt-get-command: /usr/bin/apt-get
>>              --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
>>               --with-ping-command: /bin/ping -n -U -w %d -c %d %s
>>                       --with-ipv6: yes
>>                      --with-mysql: /usr/local/bin/mysql_config
>>                    --with-openssl: yes
>>                     --with-gnutls: no
>>               --enable-extra-opts: no
>>                       --with-perl: /usr/bin/perl
>>             --enable-perl-modules: no
>>                     --with-cgiurl: /nagios/cgi-bin
>>               --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
>>
>>
>>
>> Alguém sabe o que possa ser, já pesquisei no Google e tudo, todos
>> levam ao problema (libmysqldev), eu já reinstalei, dei make clean,
>> tentei de novo, e  o mesmo erro.
>>
>> Vlws
>>
>>
>>
>>
>> --
>> ------------------------------
>> http://www.augustoferronato.net/blog
>>
>> FreeBSD: The Freedom to Perform!
>> http://www.spreadbsd.org/aff/40/1
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> --
>> [email protected] mailing list
>> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
>> Wiki: http://nagios-br.sf.net/wiki
>>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> --
> [email protected] mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>



-- 
------------------------------
http://www.augustoferronato.net/blog

FreeBSD: The Freedom to Perform!
http://www.spreadbsd.org/aff/40/1

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
-- 
[email protected] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.