From owner-freebsd-ports@FreeBSD.ORG Thu May 22 18:46:50 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DBF0C3B for ; Thu, 22 May 2014 18:46:50 +0000 (UTC) Received: from mail.bsdhell.com (mail.bsdhell.com [188.165.205.148]) by mx1.freebsd.org (Postfix) with ESMTP id 2D4242F3A for ; Thu, 22 May 2014 18:46:49 +0000 (UTC) Received: from ns1.bsdhell.com (localhost [127.0.0.1]) by mail.bsdhell.com (Postfix) with ESMTP id C1195AC98 for ; Thu, 22 May 2014 20:37:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at bsdhell.com Received: from mail.bsdhell.com ([127.0.0.1]) by ns1.bsdhell.com (mail.bsdhell.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VferwuBDaEDJ for ; Thu, 22 May 2014 20:37:31 +0200 (CEST) Received: from [192.168.1.2] (50.Red-81-43-162.staticIP.rima-tde.net [81.43.162.50]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: david) by mail.bsdhell.com (Postfix) with ESMTPSA id 4A18BAC8F for ; Thu, 22 May 2014 20:37:31 +0200 (CEST) From: David Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: NDOUtils 2.0 compiles OK in FreeBSD 10 (o use with Nagios 4) Message-Id: <48A9BA2F-48CD-4352-9B2E-A03B9902A195@bsdhell.com> Date: Thu, 22 May 2014 20:37:29 +0200 To: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) X-Mailer: Apple Mail (2.1878.2) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2014 18:46:50 -0000 FYI. Hi all! I succeeded in compile NDOUtils 2.0 in FreeBSD 10 in the following way: I needed NDOUtils 2.0 in order to work with Nagios 4 and after to = install Centreon. # uname -rsmp FreeBSD 10.0-RELEASE-p1 amd64 amd64 # fetch = http://sourceforge.net/projects/nagios/files/ndoutils-2.x/ndoutils-2.0.0/n= doutils-2.0.0.tar.gz # tar -zxf ndoutils-2.0.0.tar.gz # cd ndoutils-2.0.0/ # vi include/config.h #include #include # ./configure CFLAGS=3D-fPIC # make # make install /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin /usr/bin/install -c -m 755 -o nagios -g nagios ndo2db-4x = /usr/local/nagios/bin/ndo2db /usr/bin/install -c -m 755 -o nagios -g nagios ndomod-4x.o = /usr/local/nagios/bin/ndomod.o /usr/bin/install -c -m 774 -o nagios -g nagios file2sock = /usr/local/nagios/bin /usr/bin/install -c -m 774 -o nagios -g nagios log2ndo = /usr/local/nagios/bin /usr/bin/install -c -m 774 -o nagios -g nagios sockdebug = /usr/local/nagios/bin Hint: NDOUtils Installation against Nagios v4.x completed. If you want to install NDOUtils for Nagios v3.x please type 'make install-3x If you want to install NDOUtils for Nagios v2.x please type 'make install-2x Next step should be the database initialization/upgrade cd into the db/ directory and either: ./installdb (for a new installation) or: ./upgradedb (for an existing one) =97=97=97=97=97=97=97 Before these changes i was not able to compile NDOUtils 2.0: root@ns1:~/ndoutils-2.0.0 # ./configure checking for a BSD-compatible install... /usr/bin/install -c checking for perl... /usr/bin/perl checking build system type... x86_64-unknown-freebsd10.0 checking host system type... x86_64-unknown-freebsd10.0 checking for gcc... no checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables...=20 checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking for inttypes.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking ltdl.h usability... no checking ltdl.h presence... no checking for ltdl.h... no checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking socket.h usability... no checking socket.h presence... no checking for socket.h... no checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for stdint.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/msg.h usability... yes checking sys/msg.h presence... yes checking for sys/msg.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/sendfile.h usability... no checking sys/sendfile.h presence... no checking for sys/sendfile.h... no checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking for sys/types.h... (cached) yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking for sys/wait.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking tcpd.h usability... yes checking tcpd.h presence... yes checking for tcpd.h... yes checking for unistd.h... (cached) yes checking values.h usability... no checking values.h presence... no checking for values.h... no checking for an ANSI C-conforming const... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for mode_t... yes checking for pid_t... yes checking for size_t... yes checking return type of signal handlers... void checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking size of int... 4 checking size of short... 2 checking size of long... 8 checking for uint32_t... yes checking for u_int32_t... yes checking for int32_t... yes checking for getopt_long... yes checking for main in -lnsl... no checking for socket in -lsocket... no checking for main in -lwrap... yes checking for strdup... yes checking for strstr... yes checking for strtoul... yes checking for initgroups... yes checking for strtof... yes checking for type of socket size... size_t checking for linker flags for loadable modules... -shared checking for mysql_config... /usr/local/bin/mysql_config checking for mysql_init in -lmysqlclient... yes MySQL library and include file(s) were found! configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating docs/docbook/en-en/Makefile config.status: creating subst config.status: creating include/config.h *** Configuration summary for ndoutils 2.0.0 02-28-2014 ***: General Options: ------------------------- NDO2DB user: nagios NDO2DB group: nagios Review the options above for accuracy. If they look okay, type 'make' to compile the NDO utilities. root@ns1:~/ndoutils-2.0.0 # make cd ./src && make cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -c -o io.o io.c In file included from io.c:11: ./../include/config.h:261:10: fatal error: 'mysql/mysql.h' file not = found #include ^ 1 error generated. *** Error code 1 Stop. make[1]: stopped in /root/ndoutils-2.0.0/src *** Error code 1 Stop. make: stopped in /root/ndoutils-2.0.0 After modify in include/config.h: #include #include root@ns1:~/ndoutils-2.0.0 # make cd ./src && make cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -c -o io.o io.c cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -c -o utils.o = utils.c cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -o file2sock = file2sock.c io.o utils.o -lm =20 cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -o log2ndo = log2ndo.c io.o utils.o -lm =20 make ndo2db-2x cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X = -c -o dbhandlers-2x.o dbhandlers.c dbhandlers.c:3465:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3494:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3523:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3622:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3914:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3943:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4048:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4297:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4326:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4441:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4470:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4635:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4812:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4852:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4893:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4996:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:5051:7: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:5062:7: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ 18 warnings generated. cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X = -o ndo2db-2x queue.c ndo2db.c dbhandlers-2x.o io.o utils.o db.o = -L/usr/local/lib/mysql -lmysqlclient -pthread -lm -lm=20 queue.c:41:1: warning: control reaches end of non-void function = [-Wreturn-type] } ^ queue.c:80:20: warning: format string is not a string literal = (potentially insecure) [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:100:20: warning: format string is not a string literal = (potentially insecure) [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:137:8: warning: implicit declaration of function 'sleep' is = invalid in C99 [-Wimplicit-function-declaration] sleep((unsigned = int)delay.tv_sec); ^ 4 warnings generated. make ndo2db-3x cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X = -c -o dbhandlers-3x.o dbhandlers.c dbhandlers.c:3465:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3494:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3523:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3622:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3914:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3943:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4048:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4297:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4326:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4441:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4470:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4635:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4812:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4852:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4893:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4996:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:5051:7: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:5062:7: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ 18 warnings generated. cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X = -o ndo2db-3x queue.c ndo2db.c dbhandlers-3x.o io.o utils.o db.o = -L/usr/local/lib/mysql -lmysqlclient -pthread -lm -lm=20 queue.c:41:1: warning: control reaches end of non-void function = [-Wreturn-type] } ^ queue.c:80:20: warning: format string is not a string literal = (potentially insecure) [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:100:20: warning: format string is not a string literal = (potentially insecure) [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:137:8: warning: implicit declaration of function 'sleep' is = invalid in C99 [-Wimplicit-function-declaration] sleep((unsigned = int)delay.tv_sec); ^ 4 warnings generated. make ndo2db-4x cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -I = ../include/nagios-4x -D BUILD_NAGIOS_4X -c -o dbhandlers-4x.o = dbhandlers.c dbhandlers.c:3465:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3494:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3523:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3622:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3887:5: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] idi->dbinfo.instance_id, service_id, = member_id) =3D=3D -1) { ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3914:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:3943:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4048:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4297:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4326:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4441:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4470:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4635:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4812:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4852:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4893:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:4996:9: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:5051:7: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c:5062:7: warning: format specifies type 'int' but the = argument has type 'unsigned long' [-Wformat] ,idi->dbinfo.instance_id ^~~~~~~~~~~~~~~~~~~~~~~ 19 warnings generated. cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_4X = -o ndo2db-4x queue.c ndo2db.c dbhandlers-4x.o io.o utils.o db.o = -L/usr/local/lib/mysql -lmysqlclient -pthread -lm -lm=20 queue.c:41:1: warning: control reaches end of non-void function = [-Wreturn-type] } ^ queue.c:80:20: warning: format string is not a string literal = (potentially insecure) [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:100:20: warning: format string is not a string literal = (potentially insecure) [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:137:8: warning: implicit declaration of function 'sleep' is = invalid in C99 [-Wimplicit-function-declaration] sleep((unsigned = int)delay.tv_sec); ^ 4 warnings generated. make ndomod-2x.o cc -g -O2 -I/usr/local/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X = -o ndomod-2x.o ndomod.c io.o utils.o -shared =20 /usr/bin/ld: /tmp/ndomod-TDyehe.o: relocation R_X86_64_32 against `a = local symbol' can not be used when making a shared object; recompile = with -fPIC /tmp/ndomod-TDyehe.o: could not read symbols: Bad value cc: error: linker command failed with exit code 1 (use -v to see = invocation) *** Error code 1 Stop. make[2]: stopped in /root/ndoutils-2.0.0/src *** Error code 1 Stop. make[1]: stopped in /root/ndoutils-2.0.0/src *** Error code 1 Stop. make: stopped in /root/ndoutils-2.0.0 root@ns1:~/ndoutils-2.0.0 #=20 Best regards.