[Nagiosplug-help] check_mysql skipped on RHEL 4.1
Jason Bodnar
jason at shakabuku.org
Fri Sep 16 15:06:11 CEST 2005
One of my co-workers found a solution/hack for this. Changing every instance
of /usr/lib/mysql to /usr/lib64/mysql and NOT specifying anything for
--with-mysql in the configure command works. check_mysql configures and builds
just fine.
I'll see if I can come up with a patch for configure that correctly detects this.
On Thu, 15 Sep 2005 17:13:06 -0500, Jason Bodnar wrote
> Hi,
>
> I'm trying to compile nagios-plugins-1.4.1 on RHEL 4.1 for x86_64. I
> have all the mysql packages installed:
>
> mysql-4.1.10a-2.RHEL4.1
> mysql-4.1.10a-2.RHEL4.1
> mysql-devel-4.1.10a-2.RHEL4.1
> mysql-server-4.1.10a-2.RHEL4.1
> mysqlclient10-devel-3.23.58-4.RHEL4.1
> mysqlclient10-3.23.58-4.RHEL4.1
> mysqlclient10-3.23.58-4.RHEL4.1
>
> (There are duplicates because both the 64-bit and 32-bit versions
> get installed.)
>
> I've tried the following configure command:
>
> LD_OPTIONS="$LD_OPTIONS -L/usr/lib64/mysql -
> L/usr/lib64/mysql3/mysql" CFLAGS="$CFLAGS -I/usr/include/mysql" ./configure
> --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu
> --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
> --libexecdir=/usr/lib64/nagios/plugins --localstatedir=/var
> --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
> --with-cgiurl=/nagios/cgi-bin --with-nagios-user=nagios
> --with-nagios-group=nagios --with-mysql=/usr/lib64/mysql
>
> and end up with this in config.log:
>
> configure:9398: gcc -o conftest -I/usr/include/mysql
> -I/usr/lib64/mysql/include -L. conftest.c -lmysqlclient
> -L/usr/lib64/mysql/lib/mysql -lz >&5
> /usr/bin/ld: cannot find -lmysqlclient
>
> I'm not sure why the last -L is getting hosed but I think that's the
> problem. Is this a bug in the configure script?
>
> Also, building on x86_64 for RHEL isn't just a problem for me. The
> DAG Repository rpm
> (http://dag.wieers.com/packages/nagios-plugins/nagios-plugins-1.4.1-
> 1.2.el4.rf.x86_64.rpm) is missing the check_mysql plugin and it you
> try to build the src.rpm
> (http://dag.wieers.com/packages/nagios-plugins/nagios-plugins-1.4.1-
> 1.rf.src.rpm) the check_mysql plugin gets skipped.
>
> Thanks,
>
> Jason
>
> --
> Jason Bodnar
> jason at shakabuku.org
> http://www.shakabuku.org
>
> "You want free speech? Let's see you acknowledge a man whose words make
> your blood boil who is standing center stage advocating at the top of
> his lungs that which you would spend a lifetime opposing at the top
> of yours." -- President Andrew Shephard, "The American President"
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or
> your very own Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any
> issue. ::: Messages without supporting info will risk being sent to /dev/null
>
> ** CRM114 Whitelisted by: nagios **
--
Jason Bodnar
jason at shakabuku.org
http://www.shakabuku.org
"You want free speech? Let's see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours." -- President Andrew Shephard, "The American President"
More information about the Help
mailing list