Skip to content

Instantly share code, notes, and snippets.

@sonots
Last active December 30, 2020 14:33
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonots/9225542 to your computer and use it in GitHub Desktop.
Save sonots/9225542 to your computer and use it in GitHub Desktop.
td-agent/make-rpm.sh Found '/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64' in installed files; aborting

Prepared clean environment using vagrant

$ vagrant box add cenos-6.4 https://github.com/2creatives/vagrant-centos/releases/download/v0.1.0/centos64-x86_64-20131030.box
$ vagrant init centos-6.4
$ vagrant up
$ vagrant ssh

build as below:

$ sudo yum install -y git
$ sudo rpm -ivh http://packages.treasure-data.com/redhat/x86_64/td-libyaml-0.1.4-1.x86_64.rpm
$ git clone https://github.com/treasure-data/td-agent.git
$ cd td-agent
$ sudo ./make-rpm.sh

FAILURE

I got it worked by below (see hirose31's comments for more details. Thanks!!):

$ git clone https://github.com/treasure-data/td-agent.git
$ cd td-agent
$ echo '%__arch_install_post %{nil}' > ~/.rpmmacros
$ touch redhat/td-agent.conf.custom
$ sudo ./make-rpm.sh

SUCCESS

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* epel: ftp.tsukuba.wide.ad.jp
* extras: www.ftp.ne.jp
* updates: www.ftp.ne.jp
Setting up Install Process
Package wget-1.12-1.11.el6_5.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
No package rpmbuild available.
Package gcc-4.4.7-4.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-4.el6.x86_64 already installed and latest version
Package readline-devel-6.0-4.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-16.el6_5.4.x86_64 already installed and latest version
Package libxml2-devel-2.7.6-14.el6.x86_64 already installed and latest version
Package libxslt-devel-1.1.26-2.el6_3.1.x86_64 already installed and latest version
Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package libtool-2.2.6-15.5.el6.x86_64 already installed and latest version
No package auto-buildrequires available.
Package openssl-devel-1.0.1e-16.el6_5.4.x86_64 already installed and latest version
Nothing to do
Initialized empty Git repository in /root/td-agent/fluentd/.git/
‾/td-agent/rpmbuild ‾/td-agent
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Nh3NpW
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.l5gui7
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `ac'.
libtoolize: copying file `ac/ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt‾obsolete.m4'
libtoolize: Remember to add `LT_INIT' to configure.in.
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
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 x86_64-redhat-linux-gnu-gcc... no
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... none
checking for deflate in -lz... yes
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 openssl/sha.h usability... yes
checking openssl/sha.h presence... yes
checking for openssl/sha.h... yes
checking for SHA1 in -lcrypto... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
checking for xsltproc... /usr/bin/xsltproc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 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 size of void *... 8
checking size of int... 4
checking size of long... 8
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether __asm__ syntax is compilable... yes
checking whether __attribute__ syntax is compilable... yes
checking whether compiler supports -fvisibility=hidden... yes
checking whether mremap(...MREMAP_FIXED...) is compilable... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for ld... /usr/bin/ld
checking for autoconf... /usr/bin/autoconf
checking configured backtracing method... N/A
checking STATIC_PAGE_SHIFT... 12
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for TLS... yes
checking for ffsl... yes
checking whether Darwin OSAtomic*() is compilable... no
checking whether Darwin OSSpin*() is compilable... no
checking for memalign... yes
checking for valloc... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/html.xsl
config.status: creating doc/manpages.xsl
config.status: creating doc/jemalloc.xml
config.status: creating include/jemalloc/jemalloc.h
config.status: creating include/jemalloc/internal/jemalloc_internal.h
config.status: creating test/jemalloc_test.h
config.status: creating config.stamp
config.status: creating include/jemalloc/jemalloc_defs.h
===============================================================================
jemalloc version : 2.2.5-0-gfc1bb70e5f0d9a58b39efa39cc549b5af5104760
CC : gcc
CPPFLAGS : -D_GNU_SOURCE -D_REENTRANT
CFLAGS : -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden
LDFLAGS :
LIBS : -lpthread -ldl
RPATH_EXTRA :
XSLTPROC : /usr/bin/xsltproc
XSLROOT : /usr/share/xml/docbook/stylesheet/docbook-xsl
PREFIX : /usr/lib64/fluent/jemalloc
BINDIR : /usr/lib64/fluent/jemalloc/bin
INCLUDEDIR : /usr/lib64/fluent/jemalloc/include
LIBDIR : /usr/lib64/fluent/jemalloc/lib
DATADIR : /usr/lib64/fluent/jemalloc/share
MANDIR : /usr/lib64/fluent/jemalloc/share/man
srcroot :
abs_srcroot : /root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/jemalloc/
objroot :
abs_objroot : /root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/jemalloc/
JEMALLOC_PREFIX :
JEMALLOC_PRIVATE_NAMESPACE
:
install_suffix :
autogen : 0
cc-silence : 0
debug : 0
stats : 0
prof : 0
prof-libunwind : 0
prof-libgcc : 0
prof-gcc : 0
tiny : 1
tcache : 1
fill : 0
xmalloc : 0
sysv : 0
swap : 0
dss : 0
dynamic_page_shift : 0
lazy_lock : 1
tls : 1
===============================================================================
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
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 whether gcc needs -traditional... no
checking whether the linker is GNU ld... yes
checking whether gcc -E accepts -o... yes
checking for ranlib... ranlib
checking for ar... ar
checking for as... as
checking for objdump... objdump
checking for objcopy... objcopy
checking for nm... nm
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for dot... no
checking for doxygen... doxygen
checking for pkg-config... pkg-config
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 cd using physical directory... cd -P
checking whether -Wno-unused-parameter is accepted... yes
checking whether -Wno-parentheses is accepted... yes
checking whether -Wno-long-long is accepted... yes
checking whether -Wno-missing-field-initializers is accepted... yes
checking whether -Wpointer-arith is accepted... yes
checking whether -Wwrite-strings is accepted... yes
checking whether -Wdeclaration-after-statement is accepted... yes
checking whether -Wshorten-64-to-32 is accepted... no
checking whether -Wimplicit-function-declaration is accepted... yes
checking whether -Wall -Wextra is accepted... yes
checking whether -ggdb is accepted... yes
checking whether -fvisibility=hidden is accepted... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking whether char is unsigned... no
checking for inline... inline
checking for working volatile... yes
checking for long long... yes
checking for off_t... yes
checking char bit... 8
checking size of int... 4
checking size of short... 2
checking size of long... 8
checking size of long long... 8
checking size of __int64... 0
checking size of off_t... 8
checking size of void*... 8
checking size of float... 4
checking size of double... 8
checking size of time_t... 8
checking for printf prefix for long long... ll
checking for pid_t... yes
checking for convertible type of pid_t... INT
checking for uid_t... yes
checking for convertible type of uid_t... UINT
checking for gid_t... yes
checking for convertible type of gid_t... UINT
checking for time_t... yes
checking for convertible type of time_t... LONG
checking for dev_t... yes
checking for convertible type of dev_t... ULONG
checking for mode_t... yes
checking for convertible type of mode_t... UINT
checking for rlim_t... yes
checking for convertible type of rlim_t... ULONG
checking for prototypes... yes
checking token paste string... ansi
checking stringization... #expr
checking string literal concatenation... yes
checking for variable length prototypes and stdarg.h... yes
checking for variable length macro... yes
checking for noreturn function attribute... __attribute__ ((noreturn)) x
checking for deprecated function attribute... __attribute__ ((deprecated)) x
checking for noinline function attribute... __attribute__ ((noinline)) x
checking for stdcall function attribute... x
checking for cdecl function attribute... x
checking for fastcall function attribute... x
checking for function alias... alias
checking for atomic builtins... yes
checking for exported function attribute... __attribute__ ((visibility("default")))
checking whether sys_nerr is declared... yes
checking for crypt in -lcrypt... yes
checking for dlopen in -ldl... yes
checking for shl_load in -ldld... no
checking for socketpair in -lsocket... no
checking for clock_gettime in -lrt... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... 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/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking a.out.h usability... yes
checking a.out.h presence... yes
checking for a.out.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking xti.h usability... no
checking xti.h presence... no
checking for xti.h... no
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for net/socket.h... (cached) no
checking for sys/socket.h... (cached) yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking atomic.h usability... no
checking atomic.h presence... no
checking for atomic.h... no
checking for size_t... yes
checking size of size_t... 8
checking size of ptrdiff_t... 8
checking for printf prefix for size_t... z
checking for printf prefix for ptrdiff_t... t
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking size of struct stat.st_size... SIZEOF_LONG
checking size of struct stat.st_blocks... SIZEOF_LONG
checking for struct stat.st_atim... yes
checking for struct stat.st_atimespec... no
checking for struct stat.st_atimensec... no
checking for struct stat.st_mtim... yes
checking for struct stat.st_mtimespec... no
checking for struct stat.st_mtimensec... no
checking for struct stat.st_ctim... yes
checking for struct stat.st_ctimespec... no
checking for struct stat.st_ctimensec... no
checking for struct timeval... yes
checking for struct timespec... yes
checking for struct timezone... yes
checking for clockid_t... yes
checking for fd_mask... yes
checking for int8_t... yes
checking size of int8_t... 1
checking for uint8_t... yes
checking size of uint8_t... 1
checking for int16_t... yes
checking size of int16_t... 2
checking for uint16_t... yes
checking size of uint16_t... 2
checking for int32_t... yes
checking size of int32_t... 4
checking for uint32_t... yes
checking size of uint32_t... 4
checking for int64_t... yes
checking size of int64_t... 8
checking for uint64_t... yes
checking size of uint64_t... 8
checking for int128_t... no
checking for uint128_t... no
checking for intptr_t... yes
checking size of intptr_t... 8
checking for uintptr_t... yes
checking size of uintptr_t... 8
checking for ssize_t... yes
checking size of ssize_t... 8
checking for stack end address... __libc_stack_end
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... gid_t
checking return type of signal handlers... void
checking for working alloca.h... yes
checking for alloca... yes
checking for dynamic size alloca... ok
checking for working memcmp... yes
checking for broken erfc of glibc-2.3.6 on IA64... no
checking for dup2... yes
checking for memmove... yes
checking for strerror... yes
checking for strchr... yes
checking for strstr... yes
checking for crypt... yes
checking for flock... yes
checking for isnan... yes
checking for finite... yes
checking for isinf... yes
checking for hypot... yes
checking for acosh... yes
checking for erf... yes
checking for tgamma... yes
checking for lgamma_r... yes
checking for cbrt... yes
checking for strlcpy... no
checking for strlcat... no
checking for ffs... yes
checking for setproctitle... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking for signbit... yes
checking for fmod... yes
checking for killpg... yes
checking for wait4... yes
checking for waitpid... yes
checking for fork... yes
checking for spawnv... no
checking for syscall... yes
checking for __syscall... no
checking for chroot... yes
checking for getcwd... yes
checking for eaccess... yes
checking for truncate... yes
checking for ftruncate... yes
checking for ftello... yes
checking for chsize... no
checking for times... yes
checking for utimes... yes
checking for utimensat... yes
checking for fcntl... yes
checking for lockf... yes
checking for lstat... yes
checking for truncate64... yes
checking for ftruncate64... yes
checking for ftello64... yes
checking for fseeko... yes
checking for fseeko64... yes
checking for link... yes
checking for symlink... yes
checking for readlink... yes
checking for readdir_r... yes
checking for fsync... yes
checking for fdatasync... yes
checking for fchown... yes
checking for posix_fadvise... yes
checking for setitimer... yes
checking for setruid... no
checking for seteuid... yes
checking for setreuid... yes
checking for setresuid... yes
checking for socketpair... yes
checking for setrgid... no
checking for setegid... yes
checking for setregid... yes
checking for setresgid... yes
checking for issetugid... no
checking for pause... yes
checking for lchown... yes
checking for lchmod... no
checking for getpgrp... yes
checking for setpgrp... yes
checking for getpgid... yes
checking for setpgid... yes
checking for initgroups... yes
checking for getgroups... yes
checking for setgroups... yes
checking for getpriority... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for sysconf... yes
checking for close... yes
checking for getgrnam_r... yes
checking for dlopen... yes
checking for sigprocmask... yes
checking for sigaction... yes
checking for sigsetjmp... no
checking for _setjmp... yes
checking for _longjmp... yes
checking for setsid... yes
checking for telldir... yes
checking for seekdir... yes
checking for fchmod... yes
checking for cosh... yes
checking for sinh... yes
checking for tanh... yes
checking for log2... yes
checking for round... yes
checking for setuid... yes
checking for setgid... yes
checking for daemon... (cached) no
checking for select_large_fdset... no
checking for setenv... yes
checking for unsetenv... yes
checking for mktime... yes
checking for timegm... yes
checking for gmtime_r... yes
checking for clock_gettime... yes
checking for gettimeofday... yes
checking for poll... yes
checking for ppoll... yes
checking for pread... yes
checking for sendfile... yes
checking for shutdown... yes
checking for sigaltstack... yes
checking for dl_iterate_phdr... yes
checking for unsetenv returns a value... yes
checking for __builtin_setjmp... no
checking for setjmp type... _setjmp
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for struct tm.tm_gmtoff... yes
checking for external int daylight... yes
checking for external timezone... long
checking for external altzone... no
checking for timezone... yes
checking whether timezone requires zero arguments... yes
checking for negative time_t for gmtime(3)... yes
checking for localtime(3) overflow correctly... yes
checking whether right shift preserve sign bit... yes
checking read count field in FILE structures... not found (OK if using GNU libc)
checking read buffer ptr field in FILE structures... _IO_read_ptr
checking read buffer end field in FILE structures... _IO_read_end
checking size of struct stat.st_ino... SIZEOF_LONG
checking whether _SC_CLK_TCK is supported... yes
checking stack growing direction on x86_64... -1
checking for pthread_kill in -lthr... no
checking for pthread_kill in -lpthread... yes
checking for pthread_np.h... no
checking for sched_yield... yes
checking for pthread_attr_setinheritsched... yes
checking for pthread_getattr_np... yes
checking for pthread_attr_get_np... no
checking for pthread_attr_getstack... yes
checking for pthread_get_stackaddr_np... no
checking for pthread_get_stacksize_np... no
checking for thr_stksegment... no
checking for pthread_stackseg_np... no
checking for pthread_getthrds_np... no
checking for pthread_condattr_setclock... yes
checking for pthread_sigmask... yes
checking for getcontext... yes
checking for setcontext... yes
checking if fork works with pthread... yes
checking for backtrace... yes
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking whether ELF binaries are produced... yes
checking whether OS depend dynamic link works... yes
checking for strip... strip
checking for prefix of external symbols... NONE
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for if make is GNU make... yes
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 1.9.1
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-1.9.pc
mkdir -p "./plugins/"
for gem in td-client-0.8.56.gem td-0.10.96.gem fluent-plugin-td-0.10.17.gem thrift-0.8.0.gem fluent-plugin-scribe-0.10.10.gem fluent-plugin-flume-0.1.1.gem bson-1.8.6.gem bson_ext-1.8.6.gem mongo-1.8.6.gem fluent-plugin-mongo-0.7.1.gem nokogiri-1.5.10.gem aws-sdk-1.8.3.1.gem fluent-plugin-s3-0.3.5.gem webhdfs-0.5.3.gem fluent-plugin-webhdfs-0.2.1.gem fluent-plugin-rewrite-tag-filter-1.3.1.gem fluent-plugin-td-monitoring-0.1.0.gem; do ¥
if [ ! -f "./plugins/$gem" ]; then ¥
wget "http://rubygems.org/downloads/$gem" -O "./plugins/$gem"; ¥
fi; ¥
done
Making all in deps/jemalloc
make[1]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/jemalloc'
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/jemalloc.pic.o src/jemalloc.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/arena.pic.o src/arena.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/atomic.pic.o src/atomic.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/base.pic.o src/base.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/bitmap.pic.o src/bitmap.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk.pic.o src/chunk.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_dss.pic.o src/chunk_dss.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_mmap.pic.o src/chunk_mmap.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_swap.pic.o src/chunk_swap.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ckh.pic.o src/ckh.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ctl.pic.o src/ctl.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/extent.pic.o src/extent.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/hash.pic.o src/hash.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/huge.pic.o src/huge.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mb.pic.o src/mb.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mutex.pic.o src/mutex.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/prof.pic.o src/prof.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/rtree.pic.o src/rtree.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/stats.pic.o src/stats.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -fPIC -DPIC -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tcache.pic.o src/tcache.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/jemalloc.o src/jemalloc.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/arena.o src/arena.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/atomic.o src/atomic.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/base.o src/base.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/bitmap.o src/bitmap.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk.o src/chunk.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_dss.o src/chunk_dss.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_mmap.o src/chunk_mmap.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_swap.o src/chunk_swap.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ckh.o src/ckh.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ctl.o src/ctl.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/extent.o src/extent.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/hash.o src/hash.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/huge.o src/huge.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mb.o src/mb.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mutex.o src/mutex.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/prof.o src/prof.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/rtree.o src/rtree.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/stats.o src/stats.c
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tcache.o src/tcache.c
gcc -shared -Wl,-soname,libjemalloc.so.1 -o lib/libjemalloc.so.1 src/jemalloc.pic.o src/arena.pic.o src/atomic.pic.o src/base.pic.o src/bitmap.pic.o src/chunk.pic.o src/chunk_dss.pic.o src/chunk_mmap.pic.o src/chunk_swap.pic.o src/ckh.pic.o src/ctl.pic.o src/extent.pic.o src/hash.pic.o src/huge.pic.o src/mb.pic.o src/mutex.pic.o src/prof.pic.o src/rtree.pic.o src/stats.pic.o src/tcache.pic.o -lpthread -ldl
ar crus lib/libjemalloc_pic.a src/jemalloc.pic.o src/arena.pic.o src/atomic.pic.o src/base.pic.o src/bitmap.pic.o src/chunk.pic.o src/chunk_dss.pic.o src/chunk_mmap.pic.o src/chunk_swap.pic.o src/ckh.pic.o src/ctl.pic.o src/extent.pic.o src/hash.pic.o src/huge.pic.o src/mb.pic.o src/mutex.pic.o src/prof.pic.o src/rtree.pic.o src/stats.pic.o src/tcache.pic.o
ln -sf libjemalloc.so.1 lib/libjemalloc.so
ar crus lib/libjemalloc.a src/jemalloc.o src/arena.o src/atomic.o src/base.o src/bitmap.o src/chunk.o src/chunk_dss.o src/chunk_mmap.o src/chunk_swap.o src/ckh.o src/ctl.o src/extent.o src/hash.o src/huge.o src/mb.o src/mutex.o src/prof.o src/rtree.o src/stats.o src/tcache.o
make[1]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/jemalloc'
Making all in deps/ruby
make[1]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -m64
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -m64
SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling miniprelude.c
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling enumerator.c
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
compiling hash.c
compiling inits.c
compiling io.c
compiling marshal.c
compiling math.c
compiling node.c
compiling numeric.c
compiling object.c
compiling pack.c
compiling parse.c
compiling process.c
compiling random.c
compiling range.c
compiling rational.c
compiling re.c
compiling regcomp.c
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
compiling regsyntax.c
compiling ruby.c
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling time.c
compiling transcode.c
compiling util.c
compiling variable.c
compiling compile.c
compiling debug.c
compiling iseq.c
compiling vm.c
compiling vm_dump.c
compiling thread.c
compiling cont.c
compiling ./enc/ascii.c
compiling ./enc/us_ascii.c
compiling ./enc/unicode.c
compiling ./enc/utf_8.c
compiling newline.c
compiling ./missing/strlcpy.c
compiling ./missing/strlcat.c
compiling ./missing/setproctitle.c
compiling addr2line.c
compiling dmyext.c
compiling dln.c
compiling encoding.c
compiling dmyversion.c
linking miniruby
generating encdb.h
rbconfig.rb updated
generating enc.mk
generating prelude.c
compiling prelude.c
encdb.h unchanged
making srcs under enc
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Nothing to be done for `srcs'.
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
generating transdb.h
linking static-library libruby-static.a
making enc
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
compiling ./enc/encdb.c
compiling ./enc/big5.c
compiling ./enc/cp949.c
compiling ./enc/emacs_mule.c
compiling ./enc/euc_jp.c
compiling ./enc/euc_kr.c
compiling ./enc/euc_tw.c
compiling ./enc/gb2312.c
transdb.h unchanged
compiling ./enc/gb18030.c
compiling ./enc/gbk.c
compiling ./enc/iso_8859_1.c
compiling ./enc/iso_8859_2.c
compiling ./enc/iso_8859_3.c
compiling ./enc/iso_8859_4.c
compiling ./enc/iso_8859_5.c
compiling ./enc/iso_8859_6.c
compiling ./enc/iso_8859_7.c
compiling ./enc/iso_8859_8.c
compiling ./enc/iso_8859_9.c
compiling ./enc/iso_8859_10.c
compiling ./enc/iso_8859_11.c
making trans
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
compiling ./enc/trans/transdb.c
compiling ./enc/iso_8859_13.c
compiling ./enc/iso_8859_14.c
compiling ./enc/iso_8859_15.c
compiling ./enc/iso_8859_16.c
compiling ./enc/trans/big5.c
compiling ./enc/trans/chinese.c
compiling ./enc/koi8_r.c
compiling ./enc/koi8_u.c
compiling ./enc/shift_jis.c
compiling ./enc/utf_16be.c
compiling ./enc/utf_16le.c
compiling ./enc/utf_32be.c
compiling ./enc/utf_32le.c
compiling ./enc/windows_1251.c
configuring -test-/array/resize
configuring -test-/bug-3571
configuring -test-/bug-3662
configuring -test-/funcall
linking encoding encdb.so
configuring -test-/load/dot.dot
configuring -test-/old_thread_select
configuring -test-/st/numhash
configuring -test-/string
configuring -test-/wait_for_single_fd
configuring -test-/win32/dln
Failed to configure -test-/win32/dln. It will not be installed.
configuring -test-/win32/fd_setsize
Failed to configure -test-/win32/fd_setsize. It will not be installed.
configuring bigdecimal
linking encoding big5.so
linking encoding cp949.so
linking encoding emacs_mule.so
linking encoding euc_jp.so
linking encoding euc_kr.so
linking encoding euc_tw.so
linking encoding gb2312.so
linking encoding gb18030.so
linking encoding gbk.so
configuring continuation
configuring coverage
configuring curses
linking encoding iso_8859_1.so
linking encoding iso_8859_2.so
linking encoding iso_8859_3.so
compiling ./enc/trans/emoji.c
linking encoding iso_8859_4.so
linking encoding iso_8859_5.so
linking encoding iso_8859_6.so
linking encoding iso_8859_7.so
linking encoding iso_8859_8.so
compiling ./enc/trans/emoji_iso2022_kddi.c
linking encoding iso_8859_9.so
linking encoding iso_8859_10.so
linking encoding iso_8859_11.so
linking encoding iso_8859_13.so
linking encoding iso_8859_14.so
linking encoding iso_8859_15.so
linking encoding iso_8859_16.so
linking encoding koi8_r.so
linking encoding koi8_u.so
linking encoding shift_jis.so
linking encoding utf_16be.so
linking encoding utf_16le.so
linking encoding utf_32be.so
linking encoding utf_32le.so
compiling ./enc/trans/emoji_sjis_docomo.c
linking encoding windows_1251.so
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
compiling ./enc/trans/emoji_sjis_kddi.c
compiling ./enc/trans/emoji_sjis_softbank.c
compiling ./enc/trans/escape.c
compiling ./enc/trans/gb18030.c
compiling ./enc/trans/gbk.c
compiling ./enc/trans/iso2022.c
compiling ./enc/trans/japanese.c
compiling ./enc/trans/japanese_euc.c
compiling ./enc/trans/japanese_sjis.c
compiling ./enc/trans/korean.c
compiling ./enc/trans/single_byte.c
compiling ./enc/trans/utf8_mac.c
compiling ./enc/trans/utf_16_32.c
linking transcoder transdb.so
linking transcoder big5.so
linking transcoder chinese.so
linking transcoder emoji.so
linking transcoder emoji_iso2022_kddi.so
linking transcoder emoji_sjis_docomo.so
linking transcoder emoji_sjis_kddi.so
linking transcoder emoji_sjis_softbank.so
linking transcoder escape.so
linking transcoder gb18030.so
linking transcoder gbk.so
linking transcoder iso2022.so
linking transcoder japanese.so
linking transcoder japanese_euc.so
linking transcoder japanese_sjis.so
linking transcoder korean.so
linking transcoder single_byte.so
linking transcoder utf8_mac.so
linking transcoder utf_16_32.so
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
making encs
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
configuring date
configuring dbm
Failed to configure dbm. It will not be installed.
configuring digest
configuring digest/bubblebabble
configuring digest/md5
configuring digest/rmd160
configuring digest/sha1
configuring digest/sha2
configuring dl
configuring dl/callback
configuring dl/win32
Failed to configure dl/win32. It will not be installed.
configuring etc
configuring fcntl
configuring fiber
configuring fiddle
configuring gdbm
Failed to configure gdbm. It will not be installed.
configuring iconv
configuring io/console
configuring io/nonblock
configuring io/wait
configuring json
configuring json/generator
configuring json/parser
configuring mathn/complex
configuring mathn/rational
configuring nkf
configuring objspace
configuring openssl
configuring pathname
configuring psych
configuring pty
configuring racc/cparse
configuring readline
configuring ripper
configuring sdbm
configuring socket
configuring stringio
configuring strscan
configuring syck
configuring syslog
configuring tk/tkutil
Failed to configure tk/tkutil. It will not be installed.
configuring win32ole
Failed to configure win32ole. It will not be installed.
configuring zlib
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/array/resize'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3662'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3571'
compiling bug.c
compiling resize.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/funcall'
compiling bug.c
compiling passing_block.c
installing default resize libraries
linking shared-object -test-/array/resize.so
installing default bug libraries
linking shared-object -test-/bug-3662/bug.so
installing default bug libraries
linking shared-object -test-/bug-3571/bug.so
installing default funcall libraries
linking shared-object -test-/funcall/funcall.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3662'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/load/dot.dot'
compiling dot.dot.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/array/resize'
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3571'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/old_thread_select'
installing default dot.dot libraries
compiling old_thread_select.c
linking shared-object -test-/load/dot.dot/dot.dot.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/funcall'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/st/numhash'
compiling numhash.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/string'
compiling init.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/load/dot.dot'
installing default numhash libraries
installing default old_thread_select libraries
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/wait_for_single_fd'
compiling wait_for_single_fd.c
compiling ellipsize.c
linking shared-object -test-/old_thread_select/old_thread_select.so
linking shared-object -test-/st/numhash.so
installing default wait_for_single_fd libraries
linking shared-object -test-/wait_for_single_fd/wait_for_single_fd.so
compiling enc_associate.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/old_thread_select'
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/st/numhash'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/dln'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/dln'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/fd_setsize'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/fd_setsize'
compiling cstr.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/bigdecimal'
compiling bigdecimal.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/wait_for_single_fd'
compiling modify.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/continuation'
compiling continuation.c
compiling set_len.c
installing default continuation libraries
linking shared-object continuation.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/continuation'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/coverage'
compiling coverage.c
installing default string libraries
linking shared-object -test-/string/string.so
installing default bigdecimal libraries
installing default coverage libraries
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/curses'
compiling curses.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/string'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/date'
compiling date_core.c
linking shared-object coverage.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/coverage'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dbm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dbm'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest'
compiling digest.c
linking shared-object digest.so
installing digest libraries
installing default digest libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/bubblebabble'
compiling bubblebabble.c
installing default bubblebabble libraries
linking shared-object digest/bubblebabble.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/bubblebabble'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/md5'
compiling md5init.c
compiling md5ossl.c
installing default md5 libraries
linking shared-object digest/md5.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/md5'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/rmd160'
compiling rmd160init.c
compiling rmd160ossl.c
installing default rmd160 libraries
linking shared-object digest/rmd160.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/rmd160'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha1'
compiling sha1init.c
compiling sha1ossl.c
installing default curses libraries
linking shared-object curses.so
installing default sha1 libraries
linking shared-object digest/sha1.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/curses'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha2'
compiling sha2init.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha1'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl'
compiling cfunc.c
compiling sha2ossl.c
linking shared-object digest/sha2.so
installing default sha2 libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha2'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/callback'
generating callback.c
installing default callback libraries
compiling callback.c
compiling callback-0.c
linking shared-object bigdecimal.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/bigdecimal'
compiling date_parse.c
compiling cptr.c
compiling handle.c
compiling dl.c
linking shared-object dl.so
installing dl libraries
installing default dl libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/win32'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/win32'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/etc'
compiling etc.c
installing default etc libraries
linking shared-object etc.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/etc'
compiling callback-1.c
compiling callback-2.c
compiling callback-3.c
compiling date_strptime.c
compiling callback-4.c
compiling date_strftime.c
linking shared-object date_core.so
installing default date_core libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/date'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fcntl'
compiling fcntl.c
installing default fcntl libraries
linking shared-object fcntl.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fcntl'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiber'
compiling fiber.c
compiling callback-5.c
installing default fiber libraries
linking shared-object fiber.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiber'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiddle'
compiling fiddle.c
compiling function.c
compiling conversions.c
compiling closure.c
linking shared-object fiddle.so
installing default fiddle libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiddle'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/gdbm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/gdbm'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/iconv'
compiling iconv.c
compiling callback-6.c
installing default iconv libraries
linking shared-object iconv.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/iconv'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/console'
compiling console.c
linking shared-object io/console.so
installing default console libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/console'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/nonblock'
compiling nonblock.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/wait'
compiling wait.c
installing default nonblock libraries
linking shared-object io/nonblock.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/nonblock'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json'
installing default libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json'
installing default wait libraries
linking shared-object io/wait.so
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/generator'
compiling generator.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/wait'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/parser'
compiling parser.c
installing default generator libraries
linking shared-object json/ext/generator.so
installing default parser libraries
linking shared-object json/ext/parser.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/generator'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/complex'
compiling complex.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/parser'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/rational'
compiling rational.c
installing default complex libraries
linking shared-object mathn/complex.so
installing default rational libraries
linking shared-object mathn/rational.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/complex'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/nkf'
compiling nkf.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/rational'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/objspace'
compiling objspace.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/openssl'
compiling ossl_pkey_ec.c
installing default objspace libraries
linking shared-object objspace.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/objspace'
compiling ossl_x509cert.c
compiling callback-7.c
installing default nkf libraries
compiling ossl_bio.c
compiling ossl_engine.c
compiling ossl_config.c
compiling ossl_pkcs5.c
compiling ossl_x509.c
compiling openssl_missing.c
compiling ossl_x509ext.c
compiling ossl_pkey_dh.c
compiling ossl_ocsp.c
compiling ossl_pkcs12.c
linking shared-object nkf.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/nkf'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pathname'
compiling pathname.c
compiling ossl_ssl_session.c
compiling ossl_asn1.c
compiling ossl_digest.c
linking shared-object pathname.so
installing default pathname libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pathname'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/psych'
compiling psych.c
compiling emitter.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pty'
compiling pty.c
compiling yaml_tree.c
compiling parser.c
linking shared-object pty.so
installing default pty libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pty'
compiling to_ruby.c
compiling ossl_bn.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/racc/cparse'
compiling cparse.c
compiling callback-8.c
linking shared-object psych.so
installing default psych libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/psych'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/readline'
compiling readline.c
installing default cparse libraries
linking shared-object racc/cparse.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/racc/cparse'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/ripper'
compiling ripper.c
compiling ossl_pkcs7.c
installing default readline libraries
linking shared-object readline.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/readline'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/sdbm'
compiling init.c
compiling ossl_pkey_rsa.c
compiling _sdbm.c
installing default sdbm libraries
linking shared-object sdbm.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/sdbm'
compiling ossl_ns_spki.c
compiling ossl_x509req.c
compiling ossl_ssl.c
compiling ossl_x509attr.c
compiling ossl_pkey_dsa.c
linking shared-object dl/callback.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/callback'
compiling ossl_x509revoked.c
compiling ossl_rand.c
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
compiling ossl_x509crl.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/socket'
generating constant definitions
generating constant definitions
compiling basicsocket.c
compiling ossl_hmac.c
compiling socket.c
compiling ossl_pkey.c
compiling ossl_x509name.c
compiling ossl.c
compiling ossl_x509store.c
compiling ipsocket.c
compiling tcpsocket.c
compiling ossl_cipher.c
compiling tcpserver.c
compiling sockssocket.c
installing default ripper libraries
compiling udpsocket.c
compiling unixsocket.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/stringio'
compiling stringio.c
linking shared-object openssl.so
compiling unixserver.c
installing default openssl libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/openssl'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/strscan'
compiling strscan.c
compiling option.c
installing default stringio libraries
linking shared-object stringio.so
compiling ancdata.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/stringio'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syck'
compiling handler.c
installing default strscan libraries
linking shared-object strscan.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/strscan'
compiling yaml2byte.c
compiling emitter.c
compiling node.c
compiling gram.c
compiling raddrinfo.c
compiling bytecode.c
compiling token.c
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syslog'
compiling syslog.c
installing default syslog libraries
linking shared-object syslog.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syslog'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/tk/tkutil'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/tk/tkutil'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/win32ole'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/win32ole'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/zlib'
compiling zlib.c
linking shared-object ripper.so
compiling init.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/ripper'
installing default zlib libraries
compiling syck.c
compiling rubyext.c
compiling constants.c
compiling implicit.c
installing default syck libraries
installing default socket libraries
linking shared-object zlib.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/zlib'
linking shared-object syck.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syck'
linking shared-object socket.so
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/socket'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
linking ruby
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[1]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[1]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18'
mkdir -p "./plugins/"
for gem in td-client-0.8.56.gem td-0.10.96.gem fluent-plugin-td-0.10.17.gem thrift-0.8.0.gem fluent-plugin-scribe-0.10.10.gem fluent-plugin-flume-0.1.1.gem bson-1.8.6.gem bson_ext-1.8.6.gem mongo-1.8.6.gem fluent-plugin-mongo-0.7.1.gem nokogiri-1.5.10.gem aws-sdk-1.8.3.1.gem fluent-plugin-s3-0.3.5.gem webhdfs-0.5.3.gem fluent-plugin-webhdfs-0.2.1.gem fluent-plugin-rewrite-tag-filter-1.3.1.gem fluent-plugin-td-monitoring-0.1.0.gem; do ¥
if [ ! -f "./plugins/$gem" ]; then ¥
wget "http://rubygems.org/downloads/$gem" -O "./plugins/$gem"; ¥
fi; ¥
done
echo '#!/bin/sh' > td
echo '#!/usr/lib64/fluent/ruby/bin/ruby' > td-agent
echo 'export GEM_HOME="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td
echo 'ENV["GEM_HOME"]="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td-agent
echo 'export GEM_PATH="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td
echo 'ENV["GEM_PATH"]="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td-agent
echo '/usr/lib64/fluent/ruby/bin/td "$@"' >> td
echo 'ENV["FLUENT_CONF"]="/etc/td-agent/td-agent.conf"' >> td-agent
chmod 755 td
echo 'ENV["FLUENT_PLUGIN"]="/etc/td-agent/plugin"' >> td-agent
echo 'ENV["FLUENT_SOCKET"]="/var/run/td-agent/td-agent.sock"' >> td-agent
echo 'load "/usr/lib64/fluent/ruby/bin/fluentd"' >> td-agent
chmod 755 td-agent
make[1]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18'
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.BZWfwR
Making install in deps/jemalloc
make[1]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/jemalloc'
install -d /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/bin
install -m 755 bin/pprof /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/bin
install -d /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/include/jemalloc
install -m 644 include/jemalloc/jemalloc.h /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/include/jemalloc
install -m 644 include/jemalloc/jemalloc_defs.h /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/include/jemalloc
install -d /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/lib
install -m 755 lib/libjemalloc.so.1 /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/lib
ln -sf libjemalloc.so.1 /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/lib/libjemalloc.so
install -m 755 lib/libjemalloc_pic.a /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/lib
install -m 755 lib/libjemalloc.a /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/lib
install -d /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/share/doc/jemalloc
install -m 644 doc/jemalloc.html /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/share/doc/jemalloc
install -d /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/share/man/man3
install -m 644 doc/jemalloc.3 /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/jemalloc/share/man/man3
make[1]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/jemalloc'
Making install in deps/ruby
make[1]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -m64
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -m64
SOLIBS =
generating encdb.h
encdb.h unchanged
making enc
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Nothing to be done for `enc'.
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
making srcs under enc
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Nothing to be done for `srcs'.
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
generating transdb.h
transdb.h unchanged
making trans
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Nothing to be done for `./enc/trans'.
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
making encs
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/array/resize'
installing default resize libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/array/resize'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3571'
installing default bug libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3571'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3662'
installing default bug libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/bug-3662'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/funcall'
installing default funcall libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/funcall'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/load/dot.dot'
installing default dot.dot libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/load/dot.dot'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/old_thread_select'
installing default old_thread_select libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/old_thread_select'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/st/numhash'
installing default numhash libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/st/numhash'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/string'
installing default string libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/string'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/wait_for_single_fd'
installing default wait_for_single_fd libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/wait_for_single_fd'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/dln'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/dln'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/fd_setsize'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/-test-/win32/fd_setsize'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/bigdecimal'
installing default bigdecimal libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/bigdecimal'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/continuation'
installing default continuation libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/continuation'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/coverage'
installing default coverage libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/coverage'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/curses'
installing default curses libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/curses'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/date'
installing default date_core libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/date'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dbm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dbm'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest'
installing digest libraries
installing default digest libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/bubblebabble'
installing default bubblebabble libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/bubblebabble'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/md5'
installing default md5 libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/md5'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/rmd160'
installing default rmd160 libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/rmd160'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha1'
installing default sha1 libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha1'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha2'
installing default sha2 libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/digest/sha2'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl'
installing dl libraries
installing default dl libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/callback'
installing default callback libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/callback'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/win32'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/dl/win32'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/etc'
installing default etc libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/etc'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fcntl'
installing default fcntl libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fcntl'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiber'
installing default fiber libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiber'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiddle'
installing default fiddle libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/fiddle'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/gdbm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/gdbm'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/iconv'
installing default iconv libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/iconv'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/console'
installing default console libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/console'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/nonblock'
installing default nonblock libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/nonblock'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/wait'
installing default wait libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/io/wait'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json'
installing default libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/generator'
installing default generator libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/generator'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/parser'
installing default parser libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/json/parser'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/complex'
installing default complex libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/complex'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/rational'
installing default rational libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/mathn/rational'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/nkf'
installing default nkf libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/nkf'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/objspace'
installing default objspace libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/objspace'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/openssl'
installing default openssl libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/openssl'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pathname'
installing default pathname libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pathname'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/psych'
installing default psych libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/psych'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pty'
installing default pty libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/pty'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/racc/cparse'
installing default cparse libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/racc/cparse'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/readline'
installing default readline libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/readline'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/ripper'
installing default ripper libraries
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/ripper'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/sdbm'
installing default sdbm libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/sdbm'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/socket'
installing default socket libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/socket'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/stringio'
installing default stringio libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/stringio'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/strscan'
installing default strscan libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/strscan'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syck'
installing default syck libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syck'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syslog'
installing default syslog libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/syslog'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/tk/tkutil'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/tk/tkutil'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/win32ole'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/win32ole'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/zlib'
installing default zlib libraries
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby/ext/zlib'
make[3]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[3]: `ruby' is up to date.
make[3]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
./miniruby -I./lib -I. -I.ext/common ./tool/rbinstall.rb --make="make" --dest-dir="/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64" --extout=".ext" --mflags="-w" --make-flags="w -- DESTDIR=/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64 INSTALL=install¥ -p" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
installing binary commands: /usr/lib64/fluent/ruby/bin
installing base libraries: /usr/lib64/fluent/ruby/lib
installing arch files: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/x86_64-linux
installing pkgconfig data: /usr/lib64/fluent/ruby/lib/pkgconfig
installing command scripts: /usr/lib64/fluent/ruby/bin
installing library scripts: /usr/lib64/fluent/ruby/lib/ruby/1.9.1
installing common headers: /usr/lib64/fluent/ruby/include/ruby-1.9.1
installing manpages: /usr/lib64/fluent/ruby/share/man/man1
installing extension objects: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/x86_64-linux
installing extension objects: /usr/lib64/fluent/ruby/lib/ruby/site_ruby/1.9.1/x86_64-linux
installing extension objects: /usr/lib64/fluent/ruby/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
installing extension headers: /usr/lib64/fluent/ruby/include/ruby-1.9.1/x86_64-linux
installing extension scripts: /usr/lib64/fluent/ruby/lib/ruby/1.9.1
installing extension scripts: /usr/lib64/fluent/ruby/lib/ruby/site_ruby/1.9.1
installing extension scripts: /usr/lib64/fluent/ruby/lib/ruby/vendor_ruby/1.9.1
installing extension headers: /usr/lib64/fluent/ruby/include/ruby-1.9.1/ruby
installing default gems: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1 (cache, doc, gems, specifications)
rake 0.9.2.2
rdoc 3.9.5
minitest 2.5.1
json 1.5.5
io-console 0.3
bigdecimal 1.1.0
make[1]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18/deps/ruby'
make[1]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18'
mkdir -p "./plugins/"
for gem in td-client-0.8.56.gem td-0.10.96.gem fluent-plugin-td-0.10.17.gem thrift-0.8.0.gem fluent-plugin-scribe-0.10.10.gem fluent-plugin-flume-0.1.1.gem bson-1.8.6.gem bson_ext-1.8.6.gem mongo-1.8.6.gem fluent-plugin-mongo-0.7.1.gem nokogiri-1.5.10.gem aws-sdk-1.8.3.1.gem fluent-plugin-s3-0.3.5.gem webhdfs-0.5.3.gem fluent-plugin-webhdfs-0.2.1.gem fluent-plugin-rewrite-tag-filter-1.3.1.gem fluent-plugin-td-monitoring-0.1.0.gem; do ¥
if [ ! -f "./plugins/$gem" ]; then ¥
wget "http://rubygems.org/downloads/$gem" -O "./plugins/$gem"; ¥
fi; ¥
done
echo '#!/bin/sh' > td
echo 'export GEM_HOME="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td
echo 'export GEM_PATH="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td
echo '/usr/lib64/fluent/ruby/bin/td "$@"' >> td
chmod 755 td
echo '#!/usr/lib64/fluent/ruby/bin/ruby' > td-agent
echo 'ENV["GEM_HOME"]="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td-agent
echo 'ENV["GEM_PATH"]="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td-agent
echo 'ENV["FLUENT_CONF"]="/etc/td-agent/td-agent.conf"' >> td-agent
echo 'ENV["FLUENT_PLUGIN"]="/etc/td-agent/plugin"' >> td-agent
echo 'ENV["FLUENT_SOCKET"]="/var/run/td-agent/td-agent.sock"' >> td-agent
echo 'load "/usr/lib64/fluent/ruby/bin/fluentd"' >> td-agent
chmod 755 td-agent
make[2]: Entering directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18'
mkdir -p "./plugins/"
for gem in td-client-0.8.56.gem td-0.10.96.gem fluent-plugin-td-0.10.17.gem thrift-0.8.0.gem fluent-plugin-scribe-0.10.10.gem fluent-plugin-flume-0.1.1.gem bson-1.8.6.gem bson_ext-1.8.6.gem mongo-1.8.6.gem fluent-plugin-mongo-0.7.1.gem nokogiri-1.5.10.gem aws-sdk-1.8.3.1.gem fluent-plugin-s3-0.3.5.gem webhdfs-0.5.3.gem fluent-plugin-webhdfs-0.2.1.gem fluent-plugin-rewrite-tag-filter-1.3.1.gem fluent-plugin-td-monitoring-0.1.0.gem; do ¥
if [ ! -f "./plugins/$gem" ]; then ¥
wget "http://rubygems.org/downloads/$gem" -O "./plugins/$gem"; ¥
fi; ¥
done
echo '#!/bin/sh' > td
echo 'export GEM_HOME="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td
echo 'export GEM_PATH="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td
echo '/usr/lib64/fluent/ruby/bin/td "$@"' >> td
chmod 755 td
test -z "/usr/bin" || /bin/mkdir -p "/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/bin"
install -p td '/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/bin'
echo '#!/usr/lib64/fluent/ruby/bin/ruby' > td-agent
echo 'ENV["GEM_HOME"]="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td-agent
echo 'ENV["GEM_PATH"]="/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/"' >> td-agent
echo 'ENV["FLUENT_CONF"]="/etc/td-agent/td-agent.conf"' >> td-agent
echo 'ENV["FLUENT_PLUGIN"]="/etc/td-agent/plugin"' >> td-agent
echo 'ENV["FLUENT_SOCKET"]="/var/run/td-agent/td-agent.sock"' >> td-agent
echo 'load "/usr/lib64/fluent/ruby/bin/fluentd"' >> td-agent
chmod 755 td-agent
test -z "/usr/sbin" || /bin/mkdir -p "/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/sbin"
install -p td-agent '/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/sbin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18'
make[1]: Leaving directory `/root/td-agent/rpmbuild/BUILD/td-agent-1.1.18'
for gem in ./deps/*.gem; do ¥
RUBYLIB="/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1:/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1/x86_64-linux" ¥
/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/bin/ruby -rrubygems -rrubygems/gem_runner -rrubygems/exceptions -rrubygems/installer -e 'class Gem::Installer; def shebang(bin_file_name) "#¥!/usr/lib64/fluent/ruby/bin/ruby" end; end; Gem::GemRunner.new.run ARGV' install --no-rdoc --no-ri "$gem"; ¥
done
Successfully installed bundler-1.2.5
1 gem installed
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed iobuffer-1.1.2
Successfully installed cool.io-1.1.1
2 gems installed
Building native extensions. This could take a while...
Successfully installed http_parser.rb-0.5.1
1 gem installed
Building native extensions. This could take a while...
Successfully installed iobuffer-1.1.2
1 gem installed
Successfully installed git-1.2.6
Successfully installed jeweler-1.6.2
2 gems installed
Building native extensions. This could take a while...
Successfully installed json-1.7.7
1 gem installed
Building native extensions. This could take a while...
Successfully installed msgpack-0.4.7
1 gem installed
Building native extensions. This could take a while...
Successfully installed yajl-ruby-1.1.0
1 gem installed
cd "." && ¥
RUBYLIB="/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1:/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1/x86_64-linux" ¥
/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/bin/ruby /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/bin/gem build fluentd.gemspec; ¥
mkdir -p ./pkg; ¥
cp -f fluentd-*.gem ./pkg
Successfully built RubyGem
Name: fluentd
Version: 0.10.44
File: fluentd-0.10.44.gem
for gem in ./pkg/*.gem; do ¥
RUBYLIB="/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1:/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1/x86_64-linux" ¥
/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/bin/ruby -rrubygems -rrubygems/gem_runner -rrubygems/exceptions -rrubygems/installer -e 'class Gem::Installer; def shebang(bin_file_name) "#¥!/usr/lib64/fluent/ruby/bin/ruby" end; end; Gem::GemRunner.new.run ARGV' install --no-rdoc --no-ri "$gem"; ¥
done
Successfully installed sigdump-0.2.2
Successfully installed fluentd-0.10.44
2 gems installed
for gemname in td-client-0.8.56.gem td-0.10.96.gem fluent-plugin-td-0.10.17.gem thrift-0.8.0.gem fluent-plugin-scribe-0.10.10.gem fluent-plugin-flume-0.1.1.gem bson-1.8.6.gem bson_ext-1.8.6.gem mongo-1.8.6.gem fluent-plugin-mongo-0.7.1.gem nokogiri-1.5.10.gem aws-sdk-1.8.3.1.gem fluent-plugin-s3-0.3.5.gem webhdfs-0.5.3.gem fluent-plugin-webhdfs-0.2.1.gem fluent-plugin-rewrite-tag-filter-1.3.1.gem fluent-plugin-td-monitoring-0.1.0.gem; do ¥
RUBYLIB="/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1:/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1/x86_64-linux" ¥
/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/bin/ruby -rrubygems -rrubygems/gem_runner -rrubygems/exceptions -rrubygems/installer -e 'class Gem::Installer; def shebang(bin_file_name) "#¥!/usr/lib64/fluent/ruby/bin/ruby" end; end; Gem::GemRunner.new.run ARGV' install --no-rdoc --no-ri "./plugins/$gemname"; ¥
done
Successfully installed httpclient-2.3.4.1
Successfully installed td-client-0.8.56
2 gems installed
Successfully installed hirb-0.7.1
Successfully installed parallel-0.6.5
Successfully installed fluent-logger-0.4.7
Successfully installed td-logger-0.3.23
Successfully installed rubyzip-0.9.9
Successfully installed td-0.10.96
6 gems installed
Successfully installed fluent-plugin-td-0.10.17
1 gem installed
Building native extensions. This could take a while...
Successfully installed thrift-0.8.0
1 gem installed
Successfully installed fluent-plugin-scribe-0.10.10
1 gem installed
Successfully installed fluent-plugin-flume-0.1.1
1 gem installed
Successfully installed bson-1.8.6
1 gem installed
Building native extensions. This could take a while...
Successfully installed bson_ext-1.8.6
1 gem installed
Successfully installed mongo-1.8.6
1 gem installed
Successfully installed fluent-plugin-mongo-0.7.1
1 gem installed
Building native extensions. This could take a while...
Successfully installed nokogiri-1.5.10
1 gem installed
Successfully installed uuidtools-2.1.4
Successfully installed aws-sdk-1.8.3.1
Successfully installed mini_portile-0.5.2
3 gems installed
Successfully installed fluent-mixin-config-placeholders-0.2.4
Successfully installed fluent-plugin-s3-0.3.5
2 gems installed
Successfully installed webhdfs-0.5.3
1 gem installed
Successfully installed ltsv-0.1.0
Successfully installed fluent-mixin-plaintextformatter-0.2.5
Successfully installed fluent-plugin-webhdfs-0.2.1
3 gems installed
Successfully installed fluent-plugin-rewrite-tag-filter-1.3.1
1 gem installed
Successfully installed systemu-2.6.3
Successfully installed mixlib-cli-1.4.0
Successfully installed mixlib-config-2.1.0
Successfully installed mixlib-log-1.6.0
Successfully installed mixlib-shellout-1.3.0
Successfully installed ipaddress-0.8.0
Successfully installed ohai-6.18.0
Successfully installed fluent-plugin-td-monitoring-0.1.0
8 gems installed
for gem in ./plugins/*.gem; do ¥
RUBYLIB="/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1:/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/1.9.1/x86_64-linux" ¥
/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/bin/ruby -rrubygems -rrubygems/gem_runner -rrubygems/exceptions -rrubygems/installer -e 'class Gem::Installer; def shebang(bin_file_name) "#¥!/usr/lib64/fluent/ruby/bin/ruby" end; end; Gem::GemRunner.new.run ARGV' install --no-rdoc --no-ri "$gem"; ¥
done
Successfully installed aws-sdk-1.8.3.1
1 gem installed
Successfully installed bson-1.8.6
1 gem installed
Building native extensions. This could take a while...
Successfully installed bson_ext-1.8.6
1 gem installed
Successfully installed fluent-plugin-flume-0.1.1
1 gem installed
Successfully installed fluent-plugin-mongo-0.7.1
1 gem installed
Successfully installed fluent-plugin-rewrite-tag-filter-1.3.1
1 gem installed
Successfully installed fluent-plugin-s3-0.3.5
1 gem installed
Successfully installed fluent-plugin-scribe-0.10.10
1 gem installed
Successfully installed fluent-plugin-td-0.10.17
1 gem installed
Successfully installed fluent-plugin-td-monitoring-0.1.0
1 gem installed
Successfully installed fluent-plugin-webhdfs-0.2.1
1 gem installed
Successfully installed mongo-1.8.6
1 gem installed
Building native extensions. This could take a while...
Successfully installed nokogiri-1.5.10
1 gem installed
Successfully installed td-0.10.96
1 gem installed
Successfully installed td-client-0.8.56
1 gem installed
Building native extensions. This could take a while...
Successfully installed thrift-0.8.0
1 gem installed
Successfully installed webhdfs-0.5.3
1 gem installed
rm -fR /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/bson-*/bin/b2json
rm -fR /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/bson-*/bin/j2bson
rm -fR /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/td-*/dist/resources/pkg/td
mkdir -p /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent
cp -f ./td-agent.conf /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf.tmpl
if [ -f "./td-agent.conf.custom" ]; then ¥
cp -f ./td-agent.conf.custom /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf; ¥
fi
mkdir -p /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/prelink.conf.d
cp -f ./td-agent.prelink.conf /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/prelink.conf.d/td-agent.conf
mkdir -p /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/logrotate.d
cp -f ./td-agent.logrotate /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/logrotate.d/td-agent.logrotate
mkdir -p /root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/plugin
/tmp/cbr.aK5pnl
Found '/root/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64' in installed files; aborting
RPM build errors:
‾/td-agent
@sonots
Copy link
Author

sonots commented Feb 26, 2014

/var/tmp/rpm-tmp.f882PI

#!/bin/sh

  RPM_SOURCE_DIR="/home/vagrant/td-agent/rpmbuild//SOURCES"
  RPM_BUILD_DIR="/home/vagrant/td-agent/rpmbuild//BUILD"
  RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
  RPM_ARCH="x86_64"
  RPM_OS="linux"
  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  RPM_DOC_DIR="/usr/share/doc"
  export RPM_DOC_DIR
  RPM_PACKAGE_NAME="td-agent"
  RPM_PACKAGE_VERSION="1.1.18"
  RPM_PACKAGE_RELEASE="0.el6"
  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
  LANG=C
  export LANG
  unset CDPATH DISPLAY ||:
  RPM_BUILD_ROOT="/home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64"
  export RPM_BUILD_ROOT

  PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
  export PKG_CONFIG_PATH

  set -x
  umask 022
  cd "/home/vagrant/td-agent/rpmbuild//BUILD"
    [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"
    mkdir -p `dirname "$RPM_BUILD_ROOT"`
    mkdir "$RPM_BUILD_ROOT"

cd 'td-agent-1.1.18'
LANG=C
export LANG
unset DISPLAY

# cleanup first
rm -rf $RPM_BUILD_ROOT
# install programs
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
# install init.d script
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
install -m 755 /home/vagrant/td-agent/rpmbuild/SOURCES/td-agent.init $RPM_BUILD_ROOT/etc/init.d/td-agent
# create log dir
mkdir -p $RPM_BUILD_ROOT/var/log/td-agent



    /usr/lib/rpm/check-buildroot

    /usr/lib/rpm/redhat/brp-compress 
    /usr/lib/rpm/redhat/brp-strip /bin/true 
    /usr/lib/rpm/redhat/brp-strip-static-archive /bin/true 
    /usr/lib/rpm/redhat/brp-strip-comment-note /bin/true /usr/bin/objdump 
    /usr/lib/rpm/brp-python-bytecompile 
    /usr/lib/rpm/redhat/brp-python-hardlink 
    /usr/lib/rpm/redhat/brp-java-repack-jars 

@sonots
Copy link
Author

sonots commented Feb 26, 2014

Found that failing at /usr/lib/rpm/check-buildroot

#! /bin/sh

# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA


test -z "$QA_SKIP_BUILD_ROOT" || exit 0

if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
        exit 0
fi

tmp=$(mktemp /tmp/cbr.XXXXXX)
trap "rm -f $tmp" EXIT

find "$RPM_BUILD_ROOT" \! \( \
    -name '*.pyo' -o -name '*.pyc' -o -name '*.elc' -o -name '.packlist' \
    \) -type f -print0 | \
    LANG=C xargs -0r grep -F "$RPM_BUILD_ROOT" >$tmp

test -s "$tmp" && {
    cat "$tmp"
    echo "Found '$RPM_BUILD_ROOT' in installed files; aborting"
    exit 1
} || :

It was rejecting because files under /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64
are having contents matching with /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64

@sonots
Copy link
Author

sonots commented Feb 26, 2014

yoshi_ken-san also had the same issue.

https://gist.github.com/y-ken/b15d050e468306d9dae4

it seems that he avoided by adding below under %install in spec file so that he can avoid the check-buildroot.

# Grep reports BUILDROOT inside our object files; disable that test.
export QA_SKIP_BUILD_ROOT=1

Well, but this is just a workaround. I need a correct way.

@sonots
Copy link
Author

sonots commented Feb 27, 2014

QA_SKIP_BUILD_ROOT=1 試してみたけどエラーでた

Successfully installed td-client-0.8.56
1 gem installed
Building native extensions.  This could take a while...
Successfully installed thrift-0.8.0
1 gem installed
Successfully installed webhdfs-0.5.3
1 gem installed
rm -fR /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/bson-*/bin/b2json
rm -fR /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/bson-*/bin/j2bson
rm -fR /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/td-*/dist/resources/pkg/td
mkdir -p /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent
cp -f ./td-agent.conf /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf.tmpl
if [ -f "./td-agent.conf.custom" ]; then \
        cp -f ./td-agent.conf.custom /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf; \
    fi
mkdir -p /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/prelink.conf.d
cp -f ./td-agent.prelink.conf /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/prelink.conf.d/td-agent.conf
mkdir -p /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/logrotate.d
cp -f ./td-agent.logrotate /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/logrotate.d/td-agent.logrotate
mkdir -p /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/plugin
+ mkdir -p /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/init.d/
+ install -m 755 /home/vagrant/td-agent/rpmbuild/SOURCES/td-agent.init /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/init.d/td-agent
+ mkdir -p /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/var/log/td-agent
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /bin/true
+ /usr/lib/rpm/redhat/brp-strip-static-archive /bin/true
+ /usr/lib/rpm/redhat/brp-strip-comment-note /bin/true /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: td-agent-1.1.18-0.el6.x86_64
エラー: ファイルが見つかりません: /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf
    ファイルが見つかりません: /home/vagrant/td-agent/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf


RPM ビルドエラー:
/home/vagrant/td-agent

@hirose31
Copy link

まとめ 

原因

  • specファイルの%installの後に実行される /usr/lib/rpm/check-buildroot がコケてる
    • gem installしたファイルの中に、rpmのビルドディレクトリのパスを含んでいるのがある (Makefileとか*.soとか)
    • check-buildroot はrpmのビルドディレクトリのパスが含まれていないか確認するものなので、コケるのは正常な動作

そもそもgemの*.soになんでビルドのパスが埋め込まれてるか、動作に影響がないのか(gemが使われるときにはそんなパスは存在しないので)はおぢさんわかりません。Rubyのエライ人にきいてください。

make-rpm.shが成功する環境と失敗する環境の違いは?

違いは /usr/lib/rpm/check-buildroot を実行してるかどうか。

/usr/lib/rpm/check-buildroot の実行は %install の後に、マクロ %__arch_install_post によって挿入される。

■ 成功する環境
$ rpm --showrc | grep __arch_install_post
-14: __arch_install_post        %{nil}

■ 失敗する環境
$ rpm --showrc | grep __arch_install_post
-14: __arch_install_post        /usr/lib/rpm/check-buildroot

CentOS 6.4の場合

%__arch_install_post は /usr/lib/rpm/macros で %{nil} にセットされているが、/usr/lib/rpm/redhat/macros で /usr/lib/rpm/check-buildroot に上書きセットされている。

/usr/lib/rpm/redhat/macros はパッケージ redhat-rpm-config に含まれる。

yum install rpm-build しただけでは redhat-rpm-config はインストールされなかった。

つまり、

  • rpm-build だけがインストールされてる
    • ビルド成功する
  • rpm-build に加え redhat-rpm-config もインストールされてる
    • ビルド失敗する

ということになる。

CentOS 5 の場合

CentOS 5 では /usr/lib/rpm/macros でも /usr/lib/rpm/redhat/macros でも %__arch_install_post%{nil} にセットされているので、

  • rpm-build に加え redhat-rpm-config がインストールされていてもいなくても
    • ビルド成功する

ということになる。

対処

1. check-buildroot を実行しないようにする

%__arch_install_post%{nil} をセットすればよい。

/usr/lib/rpm/redhat/macros を書き換えるのは行儀が悪いので、~/.rpmmacros に書くのがよいと思う。

$ cat ~/.rpmmacros
%__arch_install_post %{nil}

2. check-buildroot を実行するけど無効化する

環境変数 QA_SKIP_BUILD_ROOT がセットされていれば check-buildroot はなにもせずに exit 0するので、これを利用する。

でも、td-agent.conf がないってエラーが出てビルド完了しない

こんなん。

...
Processing files: td-agent-1.1.18-0.el6.x86_64
error: File not found: /oreno/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf

RPM build errors:
    File not found: /oreno/rpmbuild/BUILDROOT/td-agent-1.1.18-0.el6.x86_64/etc/td-agent/td-agent.conf

specファイル上は

%files
%defattr(-,root,root)
%config(noreplace,missingok) %{_sysconfdir}/td-agent/td-agent.conf
...

となっているのでファイルがなくてもエラーにならないはずなんだけど、なんでコケるか謎い。もうおぢさん疲れたのでだれか調べてください。

とりあえず回避するなら、

$ touch redhat/td-agent.conf.custom
$ sudo ./make-rpm.sh

でおk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment