Skip to content

Instantly share code, notes, and snippets.

@jimklo
Created June 2, 2014 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimklo/50323e99549a5d1db32f to your computer and use it in GitHub Desktop.
Save jimklo/50323e99549a5d1db32f to your computer and use it in GitHub Desktop.
Error on RHEL5 when running: `rpmbuild -tb --clean --define "version 2.2.2" jzmq-2.2.2.tar.gz`
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.19496
+ umask 022
+ cd /workspace/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /workspace/rpmbuild/BUILD
+ rm -rf jzmq-2.2.2
+ /usr/bin/gzip -dc /workspace/code/thirdparty/jzmq-2.2.2.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd jzmq-2.2.2
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force -I config
autoreconf: configure.in: tracing
autoreconf: running: libtoolize --copy --force
You should update your `aclocal.m4' by running aclocal.
Putting files in AC_CONFIG_AUX_DIR, `config'.
autoreconf: running: /usr/bin/autoconf --include=config --force
autoreconf: running: /usr/bin/autoheader --include=config --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.65832
+ umask 022
+ cd /workspace/rpmbuild/BUILD
+ cd jzmq-2.2.2
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export FFLAGS
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /bin/rm -f ./config/config.guess
++ basename ./config/config.guess
+ /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess
`/usr/lib/rpm/redhat/config.guess' -> `./config/config.guess'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /bin/rm -f ./config/config.sub
++ basename ./config/config.sub
+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub
`/usr/lib/rpm/redhat/config.sub' -> `./config/config.sub'
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking how to print strings... printf
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for fgrep... grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-gnu-dlltool... no
checking for dlltool... false
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for x86_64-redhat-linux-gnu-mt... no
checking for mt... :
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gawk... (cached) gawk
checking whether gcc and cc understand -c and -o together... yes
checking for x86_64-redhat-linux-gnu-g++... no
checking for x86_64-redhat-linux-gnu-c++... no
checking for x86_64-redhat-linux-gnu-gpp... no
checking for x86_64-redhat-linux-gnu-aCC... no
checking for x86_64-redhat-linux-gnu-CC... no
checking for x86_64-redhat-linux-gnu-cxx... no
checking for x86_64-redhat-linux-gnu-cc++... no
checking for x86_64-redhat-linux-gnu-cl... no
checking for x86_64-redhat-linux-gnu-FCC... no
checking for x86_64-redhat-linux-gnu-KCC... no
checking for x86_64-redhat-linux-gnu-RCC... no
checking for x86_64-redhat-linux-gnu-xlC_r... no
checking for x86_64-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for x86_64-redhat-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ZeroMQ... yes
checking zmq.h usability... yes
checking zmq.h presence... yes
checking for zmq.h... yes
checking for zmq_init in -lzmq... yes
checking for javac... javac
checking for javah... javah
checking for jar... jar
checking for javac... /usr/lib/java/bin/javac
checking for an ANSI C-conforming const... yes
checking for size_t... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating perf/Makefile
config.status: creating src/config.hpp
config.status: executing depfiles commands
config.status: executing libtool commands
+ /usr/bin/make
Making all in src
make[1]: Entering directory `/workspace/rpmbuild/BUILD/jzmq-2.2.2/src'
javac -encoding utf8 -d . org/zeromq/ZMQ.java org/zeromq/ZMQException.java org/zeromq/ZMQQueue.java org/zeromq/ZMQForwarder.java org/zeromq/ZMQStreamer.java org/zeromq/ZContext.java org/zeromq/ZFrame.java org/zeromq/ZMsg.java org/zeromq/ZThread.java org/zeromq/ZLoop.java org/zeromq/ZDispatcher.java org/zeromq/EmbeddedLibraryTools.java
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
jar cf zmq.jar org/zeromq/*.class
CLASSPATH=.:./.:$CLASSPATH javah -jni -classpath . org.zeromq.ZMQ
/usr/bin/make all-am
make[2]: Entering directory `/workspace/rpmbuild/BUILD/jzmq-2.2.2/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/lib/java/include -I/usr/lib/java/include/linux -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT libjzmq_la-ZMQ.lo -MD -MP -MF ".deps/libjzmq_la-ZMQ.Tpo" -c -o libjzmq_la-ZMQ.lo `test -f 'ZMQ.cpp' || echo './'`ZMQ.cpp; \
then mv -f ".deps/libjzmq_la-ZMQ.Tpo" ".deps/libjzmq_la-ZMQ.Plo"; else rm -f ".deps/libjzmq_la-ZMQ.Tpo"; exit 1; fi
../libtool: line 865: X--tag=CXX: command not found
../libtool: line 898: libtool: ignoring unknown tag : command not found
../libtool: line 865: X--mode=compile: command not found
../libtool: line 1031: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1032: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1175: Xg++: command not found
../libtool: line 1175: X-DHAVE_CONFIG_H: command not found
../libtool: line 1175: X-I.: command not found
../libtool: line 1175: X-I.: command not found
../libtool: line 1175: X-I.: command not found
../libtool: line 1175: X-D_REENTRANT: command not found
../libtool: line 1175: X-D_THREAD_SAFE: command not found
../libtool: line 1175: X-I/usr/lib/java/include: No such file or directory
../libtool: line 1175: X-I/usr/lib/java/include/linux: No such file or directory
../libtool: line 1175: X-Wall: command not found
../libtool: line 1175: X-O2: command not found
../libtool: line 1175: X-g: command not found
../libtool: line 1175: X-pipe: command not found
../libtool: line 1175: X-Wall: command not found
../libtool: line 1175: X-Wp,-D_FORTIFY_SOURCE=2: command not found
../libtool: line 1175: X-fexceptions: command not found
../libtool: line 1175: X-fstack-protector: command not found
../libtool: line 1175: X--param=ssp-buffer-size=4: command not found
../libtool: line 1175: X-m64: command not found
../libtool: line 1175: X-mtune=generic: command not found
../libtool: line 1175: X-MT: command not found
../libtool: line 1175: Xlibjzmq_la-ZMQ.lo: command not found
../libtool: line 1175: X-MD: command not found
../libtool: line 1175: X-MP: command not found
../libtool: line 1175: X-MF: command not found
../libtool: line 1175: X.deps/libjzmq_la-ZMQ.Tpo: No such file or directory
../libtool: line 1175: X-c: command not found
../libtool: line 1227: Xlibjzmq_la-ZMQ.lo: command not found
../libtool: line 1232: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [libjzmq_la-ZMQ.lo] Error 1
make[2]: Leaving directory `/workspace/rpmbuild/BUILD/jzmq-2.2.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/workspace/rpmbuild/BUILD/jzmq-2.2.2/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.65832 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.65832 (%build)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment