[Nagiosplug-help] MySQL check
Subhendu Ghosh
sghosh at sghosh.org
Wed Mar 12 18:19:26 CET 2003
Where is mysql installed? what/if any configure options?
-sg
On Wed, 12 Mar 2003, Loving, J. Travis (GEI, GEFA) wrote:
> I am attempting to compile the Nagios Plugins v1.3 for Nagios 1.0 on Solaris
> 8 with MySQL distribution 3.23.55.
>
> When configure attempts to check for mysql, the following shows up in the
> config.log. What am I missing?
>
> -Travis Loving
>
> int main() {
> main()
> ; return 0; }
> configure:2976: checking for mysql_init in -lmysqlclient
> configure:2995: gcc -o conftest -g -O2 -I/usr/local/mysql/include -L.
> conftest.c -lmysqlclient -L/usr/local/mysql/lib/mysql -lz -lkvm -lelf 1>&5
> Undefined first referenced
> symbol in file
> socket
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> getpeername
> /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> gethostbyname_r
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> setsockopt
> /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> getservbyname
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> floor
> /usr/local/mysql/lib/libmysqlclient.a(password.o)
> getsockopt
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> inet_addr
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> inet_ntoa
> /usr/local/mysql/lib/libmysqlclient.a(my_net.o)
> shutdown
> /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> connect
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 2984 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error. */
> /* We use char because int might match the return type of a gcc2
> builtin and then its argument prototype would still apply. */
> char mysql_init();
>
> int main() {
> mysql_init()
> ; return 0; }
> configure:3016: checking for mysql_close in -lmysqlclient
> configure:3035: gcc -o conftest -g -O2 -I/usr/local/mysql/include -L.
> conftest.c -lmysqlclient -lkvm -lelf 1>&5
> Undefined first referenced
> symbol in file
> socket
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> getpeername
> /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> gethostbyname_r
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> setsockopt
> /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> getservbyname
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> floor
> /usr/local/mysql/lib/libmysqlclient.a(password.o)
> getsockopt
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> inet_addr
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> inet_ntoa
> /usr/local/mysql/lib/libmysqlclient.a(my_net.o)
> shutdown
> /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> connect
> /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 3024 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error. */
> /* We use char because int might match the return type of a gcc2
> builtin and then its argument prototype would still apply. */
> char mysql_close();
>
> int main() {
> mysql_close()
> ; return 0; }
>
--
More information about the Help
mailing list