z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

[Nagios-devel] problem compiling nagios-1.0a6

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.

[Nagios-devel] problem compiling nagios-1.0a6

Postby Guest » Tue Mar 05, 2002 8:57 am

Hello,

I used cvs to download the lastest nagios. I ran configure with the
following options:


./configure --with-mysql-xdata --with-template-objects
--with-mysql-lib=/var/lib/mysql/mysql --with-mysql-inc=/usr/includ
e/mysql --enable-webhelp --enable-embedded-perl --with-perlcache
--with-ping-command=/usr/local/sbin/fping

None of the binaries are getting made. (I downloaded and installed
binutils-2.11-2)
During the make I see ld collect2 errors for nagios and things like cgi.

I see in config.status the following errors:

onfigure:1245: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1241:17: uio.h: No such file or directory
configure: failed program was:
#line 1240 "configure"
#include "confdefs.h"
#include

I did a locate on uio.h and found:

/usr/include/linux/uio.h
/usr/include/bits/uio.h
/usr/include/sys/uio.h
/usr/i386-glibc21-linux/include/bits/uio.h
/usr/i386-glibc21-linux/include/linux/uio.h
/usr/i386-glibc21-linux/include/sys/uio.h

Do I need to set an environment varibable to find uio.h? Which uio.h should
it use?

configure:2437: checking for main in -lmysqlclient
configure:2452: gcc -o conftest -g -O2 -I/usr/include/mysql
-L/var/lib/mysql/mysql conftest.c -lmysqlclient 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 2445 "configure"
#include "confdefs.h"

mysql is on the system. How do I help it find mysqlclient? I see in
/usr/lib/mysql:

libdbug.a
libheap.a
libmerge.a
libmyisam.a
libmyisammrg.a
libmysqlclient.a
libmysqlclient.so -> libmysqlclient.so.10.0.0
libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
libmysqlclient.so.10.0.0
libmystrings.a
libmysys.a
libnisam.a

ldconfig does show:

/usr/lib/mysql:
libmysqlclient.so.10 -> libmysqlclient.so.10.0.0


How can I get around these errors?


David

David E. Shapiro
Senior Unix Admin
BTi - the future of communications







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: David.Edward.Shapiro@btitele.com
Guest
 

Return to Open Source Nagios Projects

Who is online

Users browsing this forum: sdenjuopl148 and 26 guests