<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>mysql and perl complie error</TITLE>
</HEAD>
<BODY>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">Has anyone else had problems with compiling Nagios 1.2 with mySQL and perl? </FONT> <FONT SIZE=2 FACE="Arial">I can configure it</FONT> <FONT SIZE=2 FACE="Arial">just</FONT><FONT SIZE=2 FACE="Arial"> fine but can</FONT><FONT SIZE=2 FACE="Arial">'</FONT><FONT SIZE=2 FACE="Arial">t do a make on it at all. </FONT> <FONT SIZE=2 FACE="Arial">Please see compile errors below.</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">make all</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">cd ./base && make</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">make[1]: Entering directory `/usr/local/bin/nagios-1.2/base'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o checks.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o config.o config.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o commands.o commands.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o flapping.o flapping.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o logging.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o notifications.o notifications.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o sehandlers.o sehandlers.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o sretention.o sretention.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE   -c -o perfdata.o perfdata.c</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">gcc -g -O2 -I/opt/mysql/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -DHAVE_CONFIG_H -DNSCORE -L/opt/mysql/lib -lmysqlclient  nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddefault.c ../common/comments.c ../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c   -Wl,-E  -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -lm -o nagios</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">checks.o: In function `run_service_check':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/checks.c:108: undefined reference to `PL_thr_key'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/checks.c:262: undefined reference to `Perl_call_argv'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/checks.c:323: undefined reference to `Perl_call_pv'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">utils.o: In function `my_system':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/utils.c:929: undefined reference to `PL_thr_key'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/utils.c:976: undefined reference to `Perl_call_argv'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/utils.c:1054: undefined reference to `Perl_call_pv'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/tmp/ccw2vSu3.o: In function `xsddb_initialize':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:253: undefined reference to `mysql_init'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/tmp/ccw2vSu3.o: In function `xsddb_connect':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:286: undefined reference to `mysql_real_connect'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:288: undefined reference to `mysql_close'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/tmp/ccw2vSu3.o: In function `xsddb_disconnect':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:335: undefined reference to `mysql_close'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/tmp/ccw2vSu3.o: In function `xsddb_check_connection':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:363: undefined reference to `mysql_errno'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:369: undefined reference to `mysql_close'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/tmp/ccw2vSu3.o: In function `xsddb_query':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:463: undefined reference to `mysql_query'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function `SaveError':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">DynaLoader.o(.text+0x19f): undefined reference to `Perl_sv_2pv_flags'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function `boot_DynaLoader':</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">DynaLoader.o(.text+0xb3e): undefined reference to `Perl_sv_2pv_flags'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">DynaLoader.o(.text+0xb8f): undefined reference to `Perl_get_sv'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">DynaLoader.o(.text+0xbdb): undefined reference to `Perl_get_sv'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">DynaLoader.o(.text+0xc05): undefined reference to `Perl_sv_2pv_flags'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">collect2: ld returned 1 exit status</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">make[1]: *** [nagios] Error 1</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">make[1]: Leaving directory `/usr/local/bin/nagios-1.2/base'</FONT></P>

<P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">make: *** [all] Error 2</FONT></P>

<P ALIGN=LEFT><A NAME="_MailAutoSig"><FONT SIZE=2 FACE="Arial">Tim Wolak</FONT></A></P>

<P ALIGN=LEFT><B><FONT SIZE=2 FACE="Arial">Server Engineer</FONT></B></P>

<P ALIGN=LEFT><B><FONT COLOR="#800080" SIZE=2 FACE="Arial">Computershare Investor Services</FONT></B><B></B><B></B></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Arial">2 N. LaSalle</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Arial">Chicago, Il 60602</FONT></P>

<P ALIGN=LEFT><FONT COLOR="#000000" SIZE=2 FACE="Arial">312.588.4992 x4971</FONT></P>

<P ALIGN=LEFT></P>

<FONT SIZE=3><BR>
<BR>
**********************************************************************<BR>
 <BR>
This message is intended for the sole use of the intended recipient. The message and any files transmitted with it <BR>
may contain material that is confidential and/or legally <BR>
privileged. Any review, reliance or distribution by others or <BR>
forwarding without express permission is strictly prohibited. <BR>
If you are not the intended recipient, please contact the <BR>
sender and delete all copies. <BR>
***********************************************************************<BR>
</FONT>
</BODY>
</HTML>