[rsyslog-notify] Forum Thread: Odd errors while building from git on RHEL 6.7 - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Thu Jun 2 17:40:40 CEST 2016
User: dpease
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26557#p26557
Message:
----------
I've been trying to build the latest rsyslog on RHEL 6.7. Configure works,
but I'm getting some errors from make.
./configure --enable-gnutls --enable-mail --enable-imfile --enable-imptcp
--disable-liblogging-stdlog --prefix=/usr
...
make[2]: Entering directory `/root/rsyslog/tools'
CC rsyslogd-syslogd.o
CC rsyslogd-rsyslogd.o
In file included from ../runtime/wti.h:28,
from rsyslogd.c:40:
../runtime/batch.h: In function ‘batchFree’:
../runtime/batch.h:114: error: implicit declaration of function ‘free’
../runtime/batch.h:114: warning: incompatible implicit declaration of
built-in function ‘free’
In file included from rsyslogd.c:40:
../runtime/wti.h: In function ‘wtiNewIParam’:
../runtime/wti.h:183: error: implicit declaration of function ‘realloc’
../runtime/wti.h:183: warning: incompatible implicit declaration of
built-in function ‘realloc’
make[2]: *** [rsyslogd-rsyslogd.o] Error 1
make[2]: Leaving directory `/root/rsyslog/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rsyslog'
make: *** [all] Error 2
It doesn't look like the batch.h file has been changed in quite some time.
Am I simply missing a dependency that's not caught by configure?
Full configure output:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... 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 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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... bison -y
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99
object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking host system type... (cached) x86_64-unknown-linux-gnu
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBESTR... yes
checking for JSON_C... yes
./configure: line 13523: lsb_release: command not found
checking for library containing clock_gettime... -lrt
checking for library containing mq_getattr... none required
checking for library containing dlopen... -ldl
checking for sys/types.h... (cached) yes
checking for netinet/in.h... yes
checking for arpa/nameser.h... yes
checking for netdb.h... yes
checking for resolv.h... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for netdb.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/stat.h... (cached) yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for unistd.h... (cached) yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for mode_t... yes
checking for uid_t in sys/types.h... yes
checking for uint8_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking for struct sockaddr.sa_len... no
checking for unistd.h... (cached) yes
checking for working chown... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc -std=gnu99 needs -traditional... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing
slash... yes
checking whether stat accepts an empty string... no
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for vprintf... yes
checking for _doprnt... no
checking for flock... yes
checking for inotify_init... yes
checking for recvmmsg... yes
checking for basename... yes
checking for alarm... yes
checking for clock_gettime... no
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for localtime_r... yes
checking for memset... yes
checking for mkdir... yes
checking for regcomp... yes
checking for select... yes
checking for setsid... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strndup... yes
checking for strnlen... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for uname... yes
checking for ttyname_r... yes
checking for getline... yes
checking for malloc_trim... yes
checking for prctl... yes
checking for epoll_create... yes
checking for epoll_create1... yes
checking for fdatasync... yes
checking for syscall... yes
checking for lseek64... yes
checking for off64_t... yes
checking for library containing getifaddrs... none required
checking whether SCM_CREDENTIALS is declared... yes
checking whether SO_TIMESTAMP is declared... yes
checking whether SYS_gettid is declared... yes
checking for struct sysinfo.uptime... yes
checking whether GLOB_NOMAGIC is declared... yes
checking for MAXHOSTNAMELEN... yes
checking for __builtin_expect()... yes
checking whether the compiler provides atomic builtins... yes
checking whether the compiler provides atomic builtins for 64 bit data
types... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for ZLIB... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for pthread_rwlockattr_setkind_np in -lpthread... yes
checking for pthread_setname_np in -lpthread... yes
checking for pthread_setschedparam... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for library containing sched_get_priority_max... none required
checking for sched_get_priority_max... yes
checking for LIBUUID... yes
checking for GNUTLS... yes
checking for gnutls_certificate_set_retrieve_function... no
checking for gnutls_certificate_type_set_priority... yes
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for gcry_cipher_open in -lgcrypt... yes
checking for valgrind... no
configure: testbench will use valgrind
checking hdfs.h usability... no
checking hdfs.h presence... no
checking for hdfs.h... no
checking hadoop/hdfs.h usability... no
checking hadoop/hdfs.h presence... no
checking for hadoop/hdfs.h... no
configure: checking if required man pages already exist...
configure: Running from git source
checking for rst2man... rst2man
configure: creating ./config.status
config.status: creating Makefile
config.status: creating runtime/Makefile
config.status: creating compat/Makefile
config.status: creating grammar/Makefile
config.status: creating tools/Makefile
config.status: creating plugins/imudp/Makefile
config.status: creating plugins/imtcp/Makefile
config.status: creating plugins/im3195/Makefile
config.status: creating plugins/imgssapi/Makefile
config.status: creating plugins/imuxsock/Makefile
config.status: creating plugins/imjournal/Makefile
config.status: creating plugins/immark/Makefile
config.status: creating plugins/imklog/Makefile
config.status: creating plugins/omhdfs/Makefile
config.status: creating plugins/omkafka/Makefile
config.status: creating plugins/omprog/Makefile
config.status: creating plugins/mmexternal/Makefile
config.status: creating plugins/omstdout/Makefile
config.status: creating plugins/omjournal/Makefile
config.status: creating plugins/pmciscoios/Makefile
config.status: creating plugins/omruleset/Makefile
config.status: creating plugins/omuxsock/Makefile
config.status: creating plugins/imfile/Makefile
config.status: creating plugins/imsolaris/Makefile
config.status: creating plugins/imptcp/Makefile
config.status: creating plugins/impstats/Makefile
config.status: creating plugins/imrelp/Makefile
config.status: creating plugins/imdiag/Makefile
config.status: creating plugins/omtesting/Makefile
config.status: creating plugins/omgssapi/Makefile
config.status: creating plugins/ommysql/Makefile
config.status: creating plugins/ompgsql/Makefile
config.status: creating plugins/omrelp/Makefile
config.status: creating plugins/omlibdbi/Makefile
config.status: creating plugins/ommail/Makefile
config.status: creating plugins/omsnmp/Makefile
config.status: creating plugins/omudpspoof/Makefile
config.status: creating plugins/ommongodb/Makefile
config.status: creating plugins/mmnormalize/Makefile
config.status: creating plugins/mmjsonparse/Makefile
config.status: creating plugins/mmaudit/Makefile
config.status: creating plugins/mmanon/Makefile
config.status: creating plugins/mmutf8fix/Makefile
config.status: creating plugins/mmfields/Makefile
config.status: creating plugins/mmpstrucdata/Makefile
config.status: creating plugins/omelasticsearch/Makefile
config.status: creating plugins/mmsnmptrapd/Makefile
config.status: creating plugins/pmlastmsg/Makefile
config.status: creating contrib/pmsnare/Makefile
config.status: creating contrib/pmpanngfw/Makefile
config.status: creating contrib/pmaixforwardedfrom/Makefile
config.status: creating contrib/omhiredis/Makefile
config.status: creating contrib/omrabbitmq/Makefile
config.status: creating contrib/imkmsg/Makefile
config.status: creating contrib/mmgrok/Makefile
config.status: creating contrib/mmcount/Makefile
config.status: creating contrib/omzmq3/Makefile
config.status: creating contrib/omczmq/Makefile
config.status: creating contrib/imzmq3/Makefile
config.status: creating contrib/imczmq/Makefile
config.status: creating contrib/mmsequence/Makefile
config.status: creating contrib/mmrfc5424addhmac/Makefile
config.status: creating contrib/pmcisconames/Makefile
config.status: creating contrib/omhttpfs/Makefile
config.status: creating contrib/omamqp1/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
****************************************************
rsyslog will be compiled with the following settings:
Large file support enabled: yes
Networking support enabled: yes
Regular expressions support enabled: yes
rsyslog runtime will be built: yes
rsyslogd will be built: yes
have to generate man pages: yes
Unlimited select() support enabled: no
uuid support enabled: yes
Log file signing support: no
Log file signing support via KSI: no
Log file encryption support: yes
anonymization support enabled: no
message counting support enabled: no
mmfields enabled: no
liblogging-stdlog support enabled: no
---{ input plugins }---
Klog functionality enabled: yes (linux)
/dev/kmsg functionality enabled: no
plain tcp input module enabled: yes
imdiag enabled: no
file input module enabled: yes
Solaris input module enabled: no
periodic statistics module enabled: no
imzmq3 input module enabled: no
imczmq input module enabled: no
imjournal input module enabled: no
---{ output plugins }---
Mail support enabled: yes
omkafka module will be compiled: no
omprog module will be compiled: no
omstdout module will be compiled: no
omjournal module will be compiled: no
omhdfs module will be compiled: no
omelasticsearch module will be compiled: no
omruleset module will be compiled: no
omudpspoof module will be compiled: no
omuxsock module will be compiled: no
omzmq3 module will be compiled: no
omczmq module will be compiled: no
omrabbitmq module will be compiled: no
omhttpfs module will be compiled: no
omamqp1 module will be compiled: no
---{ parser modules }---
pmlastmsg module will be compiled: no
pmcisconames module will be compiled: no
pmciscoios module will be compiled: no
pmaixforwardedfrom module w.be compiled: no
pmsnare module will be compiled: no
pmpanngfw module will be compiled: no
---{ message modification modules }---
mmnormalize module will be compiled: no
mmjsonparse module will be compiled: no
mmgrok module will be compiled: no
mmjaduit module will be compiled: no
mmsnmptrapd module will be compiled: no
mmutf8fix enabled: no
mmrfc5424addhmac enabled: no
mmpstrucdata enabled: no
mmsequence enabled: no
---{ database support }---
MySql support enabled: no
libdbi support enabled: no
PostgreSQL support enabled: no
mongodb support enabled: no
hiredis support enabled: no
---{ protocol support }---
GnuTLS network stream driver enabled: yes
GSSAPI Kerberos 5 support enabled: no
RELP support enabled: no
SNMP support enabled: no
---{ debugging support }---
Testbench enabled: no
Extended Testbench enabled: no
MySQL Tests enabled: no
Kafka Tests enabled: no
Debug mode enabled: no
Runtime Instrumentation enabled: no
(total) debugless mode enabled: no
Diagnostic tools enabled: no
End-User tools enabled: no
Enhanced memory checking enabled: no
Valgrind support settings enabled: no
More information about the rsyslog-notify
mailing list