mysql and perl complie error

Tim Wolak Tim.Wolak at computershare.com
Fri Oct 29 18:13:56 CEST 2004


Has anyone else had problems with compiling Nagios 1.2 with mySQL and perl?
I can configure it just fine but can't do a make on it at all.  Please see
compile errors below.

make all
cd ./base && make
make[1]: Entering directory `/usr/local/bin/nagios-1.2/base'
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
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
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
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
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
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
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
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
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
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
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
checks.o: In function `run_service_check':
/usr/local/bin/nagios-1.2/base/checks.c:108: undefined reference to
`PL_thr_key'
/usr/local/bin/nagios-1.2/base/checks.c:262: undefined reference to
`Perl_call_argv'
/usr/local/bin/nagios-1.2/base/checks.c:323: undefined reference to
`Perl_call_pv'
utils.o: In function `my_system':
/usr/local/bin/nagios-1.2/base/utils.c:929: undefined reference to
`PL_thr_key'
/usr/local/bin/nagios-1.2/base/utils.c:976: undefined reference to
`Perl_call_argv'
/usr/local/bin/nagios-1.2/base/utils.c:1054: undefined reference to
`Perl_call_pv'
/tmp/ccw2vSu3.o: In function `xsddb_initialize':
/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:253: undefined reference to
`mysql_init'
/tmp/ccw2vSu3.o: In function `xsddb_connect':
/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:286: undefined reference to
`mysql_real_connect'
/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:288: undefined reference to
`mysql_close'
/tmp/ccw2vSu3.o: In function `xsddb_disconnect':
/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:335: undefined reference to
`mysql_close'
/tmp/ccw2vSu3.o: In function `xsddb_check_connection':
/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:363: undefined reference to
`mysql_errno'
/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:369: undefined reference to
`mysql_close'
/tmp/ccw2vSu3.o: In function `xsddb_query':
/usr/local/bin/nagios-1.2/base/../xdata/xsddb.c:463: undefined reference to
`mysql_query'
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function
`SaveError':
DynaLoader.o(.text+0x19f): undefined reference to `Perl_sv_2pv_flags'
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function
`boot_DynaLoader':
DynaLoader.o(.text+0xb3e): undefined reference to `Perl_sv_2pv_flags'
DynaLoader.o(.text+0xb8f): undefined reference to `Perl_get_sv'
DynaLoader.o(.text+0xbdb): undefined reference to `Perl_get_sv'
DynaLoader.o(.text+0xc05): undefined reference to `Perl_sv_2pv_flags'
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/usr/local/bin/nagios-1.2/base'
make: *** [all] Error 2

Tim Wolak
Server Engineer
Computershare Investor Services
2 N. LaSalle
Chicago, Il 60602
312.588.4992 x4971



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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041029/f70bacab/attachment.html>


More information about the Users mailing list