Cook: ndoutils 1.5.2 ================================================================================ QA: checking package receipt... Checking build dependencies... Installing (pkg/local): libmysqlclient-5.5.59-i486 Installing (pkg/local): libaio-0.3.111-i486 Installing (pkg/local): mysql-client-5.5.59-i486 Installing (pkg/local): mysql-5.5.59-i486 Installing (pkg/local): libgdbm-1.18.1-i486 Installing (pkg/local): perl-core-5.28.1-i486 Installing (pkg/local): perl-5.28.1-i486 Installing (pkg/local): mysql-test-5.5.59-i486 Installing (pkg/local): mysql-dev-5.5.59-i486 Extracting source archive "ndoutils-1.5.2.tar.gz" Executing: compile_rules CFLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CXXLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CPPFLAGS : -D_GLIBCXX_USE_C99_MATH=1 LDFLAGS : -Wl,-Os,--as-needed Applying patch ndoutils-1.5.2-Makefiles.in.u patching file Makefile.in Hunk #2 succeeded at 35 (offset 3 lines). patching file src/Makefile.in configure: loading site script /etc/slitaz/cook.site checking for a BSD-compatible install... /usr/bin/install -c checking for perl... /usr/bin/perl checking build system type... i486-slitaz-linux-gnu checking host system type... i486-slitaz-linux-gnu checking for i486-slitaz-linux-gcc... i486-slitaz-linux-gcc 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... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i486-slitaz-linux-gcc accepts -g... yes checking for i486-slitaz-linux-gcc option to accept ISO C89... none needed checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... i486-slitaz-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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... yes checking sys/sendfile.h presence... yes checking for sys/sendfile.h... yes 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... no checking tcpd.h presence... no checking for tcpd.h... no checking for unistd.h... (cached) yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes 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... 4 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... no 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/bin/mysql_config checking for mysql_init in -lmysqlclient... no *** MySQL library could not be located... ************************** You chose to compile NDOutils with MySQL support, but I was unable to locate the MySQL library on your system. If the library is installed, use the --with-mysql-lib argument to specify the location of the MySQL library. installed, use the --with-mysql=DIR argument to specify the location of the MySQL library, We assume mysql_config is in DIR/dir NOTE: After you install the necessary libraries on your system: 1. Make sure /etc/ld.so.conf has an entry for the directory in which the MySQL libraries are installed. 2. Run 'ldconfig' to update the run-time linker options. 3. Run 'make devclean' in the NDBXT distribution to clean out any old references to your previous compile. 4. Rerun the configure script. TIP: Try the following.... ./configure --with-mysql=/usr/lib/mysql ******************************************************************** 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 1.5.2 06-08-2012 ***: 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. cd ./src && make make[1]: Entering directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -c -o io.o io.c i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -c -o utils.o utils.c make ndo2db-2x make ndomod-2x.o make[2]: Entering directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' make[2]: Entering directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -c -o io.o io.c i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -c -o db.o db.c i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -c -o utils.o utils.c i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -c -o io.o io.c utils.c: In function 'my_rename': utils.c:130:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(dest_fd,buffer,bytes_read); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ db.c: In function 'ndo2db_db_hello': db.c:297:5: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] if(asprintf(&buf,"SELECT instance_id FROM %s WHERE instance_name='%s'",ndo2db_db_tablenames[NDO2DB_DBTABLE_INSTANCES],idi->instance_name)==-1) ^~~~~~~~ vsprintf utils.c: In function 'my_rename': utils.c:130:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(dest_fd,buffer,bytes_read); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -c -o utils.o utils.c i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -o file2sock file2sock.c io.o utils.o -Wl,-Os,--as-needed -lm i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -o log2ndo log2ndo.c io.o utils.o -Wl,-Os,--as-needed -lm i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -o sockdebug sockdebug.c io.o utils.o -Wl,-Os,--as-needed -lm i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c io.o utils.o -shared -Wl,-Os,--as-needed utils.c: In function 'my_rename': utils.c:130:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(dest_fd,buffer,bytes_read); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dbhandlers.c: In function 'ndo2db_get_object_id': dbhandlers.c:79:6: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] if(asprintf(&buf1,"name1 IS NULL")==-1) ^~~~~~~~ vsprintf ndomod.c: In function 'ndomod_write_to_sink': ndomod.c:689:6: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(&temp_buffer,"ndomod: Successfully reconnected to data sink! %lu items lost, %lu queued items to flush.",sinkbuf.overflow,sinkbuf.items); ^~~~~~~~ vsprintf make[2]: Leaving directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' make ndomod-3x.o make[2]: Entering directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c io.o utils.o -shared -Wl,-Os,--as-needed i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo2db-2x queue.c ndo2db.c dbhandlers-2x.o io.o utils.o db.o -Wl,-Os,--as-needed -lm queue.c: In function 'log_retry': queue.c:80:20: warning: format not a string literal and no format arguments [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:89:21: warning: format not a string literal and no format arguments [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:96:21: warning: format not a string literal and no format arguments [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c: In function 'push_into_queue': queue.c:137:8: warning: implicit declaration of function 'sleep'; did you mean 'strsep'? [-Wimplicit-function-declaration] sleep((unsigned int)delay.tv_sec); ^~~~~ strsep queue.c: In function 'get_msgmni': queue.c:53:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets( buf, sizeof( buf), fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ndomod.c: In function 'ndomod_write_to_sink': ndomod.c:689:6: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(&temp_buffer,"ndomod: Successfully reconnected to data sink! %lu items lost, %lu queued items to flush.",sinkbuf.overflow,sinkbuf.items); ^~~~~~~~ vsprintf ndo2db.c: In function 'ndo2db_daemonize': ndo2db.c:659:4: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(&msg,"Failed to obtain lock on file %s: %s\n", lock_file, strerror(errno)); ^~~~~~~~ vsprintf ndo2db.c:729:3: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate(lockfile,0); ^~~~~~~~~~~~~~~~~~~~~ ndo2db.c:731:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(lockfile,buf,strlen(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' make ndo2db-3x make[2]: Entering directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -c -o dbhandlers-3x.o dbhandlers.c dbhandlers.c: In function 'ndo2db_get_object_id': dbhandlers.c:79:6: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] if(asprintf(&buf1,"name1 IS NULL")==-1) ^~~~~~~~ vsprintf make[2]: Leaving directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' i486-slitaz-linux-gcc -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndo2db-3x queue.c ndo2db.c dbhandlers-3x.o io.o utils.o db.o -Wl,-Os,--as-needed -lm queue.c: In function 'log_retry': queue.c:80:20: warning: format not a string literal and no format arguments [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:89:21: warning: format not a string literal and no format arguments [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c:96:21: warning: format not a string literal and no format arguments [-Wformat-security] syslog(LOG_ERR, logmsg); ^~~~~~ queue.c: In function 'push_into_queue': queue.c:137:8: warning: implicit declaration of function 'sleep'; did you mean 'strsep'? [-Wimplicit-function-declaration] sleep((unsigned int)delay.tv_sec); ^~~~~ strsep queue.c: In function 'get_msgmni': queue.c:53:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets( buf, sizeof( buf), fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ndo2db.c: In function 'ndo2db_daemonize': ndo2db.c:659:4: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(&msg,"Failed to obtain lock on file %s: %s\n", lock_file, strerror(errno)); ^~~~~~~~ vsprintf ndo2db.c:729:3: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate(lockfile,0); ^~~~~~~~~~~~~~~~~~~~~ ndo2db.c:731:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(lockfile,buf,strlen(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' make[1]: Leaving directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' cd ./src && make install make[1]: Entering directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' /usr/bin/install -c -m 775 -d /home/slitaz/wok/ndoutils/install/usr/bin /usr/bin/install -c -m 775 -d /home/slitaz/wok/ndoutils/install/usr/lib/ndoutils /usr/bin/install -c -m 755 ndo2db-3x /home/slitaz/wok/ndoutils/install/usr/bin/ndo2db /usr/bin/install -c -m 755 ndomod-3x.o /home/slitaz/wok/ndoutils/install/usr/lib/ndoutils/ndomod.o /usr/bin/install -c -m 774 file2sock /home/slitaz/wok/ndoutils/install/usr/bin /usr/bin/install -c -m 774 log2ndo /home/slitaz/wok/ndoutils/install/usr/bin /usr/bin/install -c -m 774 sockdebug /home/slitaz/wok/ndoutils/install/usr/bin Hint: NDOUtils Installation against Nagios v3.x completed. 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) make[1]: Leaving directory '/home/slitaz/wok/ndoutils/source/ndoutils-1.5.2/src' Main NDOUtils components installed /usr/bin/install -c -m 775 -d /home/slitaz/wok/ndoutils/install/etc/nagios /usr/bin/install -c -b -m 664 config/ndo2db.cfg-sample /home/slitaz/wok/ndoutils/install/etc/nagios/ndo2db.cfg /usr/bin/install -c -b -m 664 config/ndomod.cfg-sample /home/slitaz/wok/ndoutils/install/etc/nagios/ndomod.cfg *** Config files installed *** Remember, these are *SAMPLE* config files. You'll need to rename the files in order to use them. Please read the documentation to know what they are doing. ================================================================================ Executing strip on all files... Done Time: 0.58s. Size: 245192 B -> 207860 B. Save: 36 KB. ================================================================================ Build dependencies to remove: 9 Removing: libaio libgdbm libmysqlclient mysql mysql-client mysql-dev mysql-test perl perl-core Pack: ndoutils 1.5.2 ================================================================================ Executing: genpkg_rules Copying "receipt"... Done Determining package architecture... i486 Creating the list of files... Done Creating md5sum of files... Done Compressing the FS... Done Creating full cpio archive... Done QA: checking for empty package... Done Removing old package "ndoutils-1.5.2-i486.tazpkg" Done The release checksum has changed. ================================================================================ Package "ndoutils-1.5.2-i486.tazpkg" created Post-check ================================================================================ Checking build... Done Checking 'any' arch... Done Checking libtool in source/ndoutils-1.5.2... Done Checking site script in source/ndoutils-1.5.2... Done Checking ownership in install... Done Checking permissions in install... Failed Problems found: 0775 /etc/nagios/ 0664 /etc/nagios/ndo2db.cfg 0664 /etc/nagios/ndomod.cfg 0775 /usr/bin/ 0774 /usr/bin/file2sock 0774 /usr/bin/log2ndo 0774 /usr/bin/sockdebug 0775 /usr/lib/ndoutils/ Checking broken symlinks in install... Done Querying Repology... Done Updating activity log... Done ================================================================================ Summary for: ndoutils 1.5.2 ================================================================================ Src file : ndoutils-1.5.2.tar.gz Src size : 2.0M Source dir : 4.7M Produced : 260.0K Cook time : 36s Cook date : 2020-07-07 16:11 Target arch : i486 -------------------------------------------------------------------------------- # : Packed : Compressed : Files : Package name -------------------------------------------------------------------------------- 1 : 368.0K : 56.6K : 10 : ndoutils-1.5.2-i486.tazpkg ================================================================================