ongoing issues - Nagios 1.2 - Fedora Core 1

Daniel Henninger daniel at unity.ncsu.edu
Tue Mar 9 22:46:51 CET 2004


> # make all cd ./base && make make[1]: Entering directory
> `/home/tom/source/nagios-1.2/base' gcc -g -O2 -I/opt/mysql/include
> -I/opt/gd/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -DDEBUGGING -fno-strict-aliasing -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
> -I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -DHAVE_CONFIG_H
> -DNSCORE -L/opt/mysql/lib -L/opt/gd/lib -lmysqlclient nagios.c checks.o
> config.o commands.o flapping.o logging.o notifications.o sehandlers.o
> utils.o sretention.o ../xdata/xrddb.c ../common/comments.c
> ../xdata/xcddb.c ../common/objects.c ../xdata/xodtemplate.c
> ../common/statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c
> ../common/downtime.c ../xdata/xdddb.c -rdynamic
> -Wl,-rpath,/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE
> -L/usr/local/lib
> /usr/lib/perl5/5.8.3/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a
> -L/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -lperl -lnsl -ldl
> -lm -lcrypt -lutil -lpthread -lc -lm -o nagios

This is an ordering issue I believe.  (I ran into this as well)  note how
-lmysqlclient is before .. pretty much everything else.  It ought to go at
the end, otherwise things that require it's symbols don't find them.  This
only occured for me under Linux for some reason.. never had this problem
under Solaris.  Solaris put the -lmysqlclient and flags in the correct
location.  Anyway, you'll need to edit some Makefiles.  ;)

Daniel

-- 
/\\\----------------------------------------------------------------------///\
\ \\\      Daniel Henninger           http://www.vorpalcloud.org/        /// /
 \_\\\      North Carolina State University - Systems Programmer        ///_/
    \\\                   Information Technology <IT>                  ///
     """--------------------------------------------------------------"""


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list