Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1066158 - libwebp doesn't build from src.rpm
Summary: libwebp doesn't build from src.rpm
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libwebp
Version: 19
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Rahul Sundaram
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-17 21:24 UTC by P Jones
Modified: 2014-02-18 16:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-18 16:56:01 UTC


Attachments (Terms of Use)

Description P Jones 2014-02-17 21:24:12 UTC
Description of problem:
Won't compile. 

Version-Release number of selected component (if applicable):
libwebp-0.3.1-1.fc19.src.rpm

How reproducible:
Very

Steps to Reproduce:
[pjones@cis-host-188 tmp_build]$ cat /etc/redhat-release ; yumdownloader --source libwebp  ; rpmbuild --rebuild libwebp-0.3.1-1.fc19.src.rpm 
Fedora release 19 (Schrödinger’s Cat)
Loaded plugins: langpacks, refresh-packagekit
Enabling updates-source repository
Enabling rpmfusion-nonfree-updates-source repository
Enabling rpmfusion-nonfree-source repository
Enabling rpmfusion-free-updates-source repository
Enabling fedora-source repository
Enabling rpmfusion-free-source repository
libwebp-0.3.1-1.fc19.src.rpm                                                                                                                                                                | 832 kB  00:00:00     
Installing libwebp-0.3.1-1.fc19.src.rpm
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FvxgdD
+ umask 022
+ cd /home/pjones/rpmbuild/BUILD
+ cd /home/pjones/rpmbuild/BUILD
+ rm -rf libwebp-0.3.1
+ /usr/bin/gzip -dc /home/pjones/rpmbuild/SOURCES/libwebp-0.3.1.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libwebp-0.3.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.n8w4uK
+ umask 022
+ cd /home/pjones/rpmbuild/BUILD
+ cd libwebp-0.3.1
+ ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
+ CFLAGS='-O2 -g'
+ export CFLAGS
+ CXXFLAGS='-O2 -g'
+ export CXXFLAGS
+ FFLAGS='-O2 -g'
+ export FFLAGS
+ ./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --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=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --enable-libwebpmux
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for x86_64-redhat-linux-gnu-gcc... no
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 dependency style of gcc... none
checking for x86_64-redhat-linux-gnu-ar... no
checking for x86_64-redhat-linux-gnu-lib... no
checking for x86_64-redhat-linux-gnu-link... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/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... 1572864
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... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-gnu-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... no
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... no
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... no
checking whether gcc and cc understand -c and -o together... yes
checking whether make supports nested variables... (cached) yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wdeclaration-after-statement... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wmissing-declarations... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wshadow... yes
checking whether gcc supports -Wunused-but-set-variable... yes
checking whether gcc supports -Wunused... yes
checking whether gcc supports -Wvla... yes
configure: checking for threading support...
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
configure: checking if threading is enabled... yes
checking GL/glut.h usability... no
checking GL/glut.h presence... no
checking for GL/glut.h... no
checking GLUT/glut.h usability... no
checking GLUT/glut.h presence... no
checking for GLUT/glut.h... no
checking OpenGL/glut.h usability... no
checking OpenGL/glut.h presence... no
checking for OpenGL/glut.h... no
checking for libpng-config... /usr/bin/libpng-config
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for library containing png_get_libpng_ver... none required
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFGetVersion in -ltiff... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
checking for DGifOpenFileHandle in -lgif... yes
checking if --enable-swap-16bit-csp option is specified... no
checking if --enable-experimental option is specified... no
checking whether libwebpmux is to be built... yes
checking whether libwebpdemux is to be built... no
checking whether decoder library is to be built... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating examples/Makefile
config.status: creating src/dec/Makefile
config.status: creating src/enc/Makefile
config.status: creating src/dsp/Makefile
config.status: creating src/demux/Makefile
config.status: creating src/mux/Makefile
config.status: creating src/utils/Makefile
config.status: creating src/libwebp.pc
config.status: creating src/libwebpdecoder.pc
config.status: creating src/demux/libwebpdemux.pc
config.status: creating src/mux/libwebpmux.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
WebP Configuration Summary
--------------------------

Shared libraries: yes
Static libraries: no
Threaded decode: yes
libwebp: yes
libwebpdecoder: no
libwebpdemux: no
libwebpmux: yes

Tools:
cwebp : yes
  Input format support
  ====================
  JPEG : yes
  PNG  : yes
  TIFF : yes
  WIC  : no
dwebp : yes
  Output format support
  =====================
  PNG  : yes
  WIC  : no
gif2webp : yes
webpmux  : yes
vwebp    : no

+ make -j4
make  all-recursive
make[1]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1'
Making all in src
make[2]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src'
Making all in dec
make[3]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/dec'
  CC       libwebpdecode_la-alpha.lo
  CC       libwebpdecode_la-buffer.lo
  CC       libwebpdecode_la-frame.lo
  CC       libwebpdecode_la-idec.lo
  CC       libwebpdecode_la-io.lo
  CC       libwebpdecode_la-layer.lo
  CC       libwebpdecode_la-quant.lo
  CC       libwebpdecode_la-tree.lo
  CC       libwebpdecode_la-vp8.lo
  CC       libwebpdecode_la-vp8l.lo
  CC       libwebpdecode_la-webp.lo
  CCLD     libwebpdecode.la
make[3]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/dec'
Making all in enc
make[3]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/enc'
  CC       libwebpencode_la-alpha.lo
  CC       libwebpencode_la-analysis.lo
  CC       libwebpencode_la-backward_references.lo
  CC       libwebpencode_la-config.lo
  CC       libwebpencode_la-cost.lo
  CC       libwebpencode_la-filter.lo
  CC       libwebpencode_la-frame.lo
  CC       libwebpencode_la-histogram.lo
  CC       libwebpencode_la-iterator.lo
  CC       libwebpencode_la-layer.lo
  CC       libwebpencode_la-picture.lo
  CC       libwebpencode_la-quant.lo
  CC       libwebpencode_la-syntax.lo
  CC       libwebpencode_la-token.lo
  CC       libwebpencode_la-tree.lo
  CC       libwebpencode_la-vp8l.lo
  CC       libwebpencode_la-webpenc.lo
  CCLD     libwebpencode.la
make[3]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/enc'
Making all in dsp
make[3]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/dsp'
  CC       libwebpdsp_la-cpu.lo
  CC       libwebpdsp_la-dec.lo
  CC       libwebpdsp_la-dec_neon.lo
  CC       libwebpdsp_la-dec_sse2.lo
  CC       libwebpdsp_la-lossless.lo
  CC       libwebpdsp_la-upsampling.lo
  CC       libwebpdsp_la-upsampling_neon.lo
  CC       libwebpdsp_la-upsampling_sse2.lo
  CC       libwebpdsp_la-yuv.lo
  CC       libwebpdsp_la-enc.lo
  CC       libwebpdsp_la-enc_neon.lo
  CC       libwebpdsp_la-enc_sse2.lo
  CCLD     libwebpdsp.la
make[3]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/dsp'
Making all in utils
make[3]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/utils'
  CC       bit_reader.lo
  CC       color_cache.lo
  CC       huffman.lo
  CC       filters.lo
  CC       quant_levels_dec.lo
  CC       rescaler.lo
  CC       thread.lo
  CC       utils.lo
  CC       bit_writer.lo
  CC       huffman_encode.lo
  CC       quant_levels.lo
  CCLD     libwebputils.la
make[3]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/utils'
Making all in .
make[3]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src'
  CCLD     libwebp.la
make[3]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src'
Making all in mux
make[3]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/mux'
  CC       muxedit.lo
  CC       muxinternal.lo
  CC       muxread.lo
  CCLD     libwebpmux.la
make[3]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src/mux'
make[2]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/src'
Making all in examples
make[2]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/examples'
  CC       example_util.lo
  CC       dwebp-dwebp.o
  CC       cwebp-cwebp.o
  CC       cwebp-metadata.o
  CC       cwebp-jpegdec.o
  CC       cwebp-pngdec.o
  CC       cwebp-tiffdec.o
  CC       cwebp-wicdec.o
  CC       webpmux-webpmux.o
  CC       gif2webp-gif2webp.o
  CCLD     libexampleutil.la
  CCLD     dwebp
  CCLD     gif2webp
  CCLD     webpmux
  CCLD     cwebp
make[2]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/examples'
Making all in man
make[2]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1/man'
make[2]: Entering directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1'
make[2]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1'
make[1]: Leaving directory `/home/pjones/rpmbuild/BUILD/libwebp-0.3.1'
+ cp /home/pjones/rpmbuild/SOURCES/libwebp_jni_example.java .
+ cd swig
+ rm -rf libwebp.jar libwebp_java_wrap.c
+ mkdir -p java/com/google/webp
+ swig -ignoremissing -I../src -java -package com.google.webp -outdir java/com/google/webp -o libwebp_java_wrap.c libwebp.i
+ gcc -O2 -g -shared -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -I../src -L../src/.libs -lwebp libwebp_java_wrap.c -o libwebp_jni.so
/usr/bin/ld: /tmp/ccuN1skM.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/ccuN1skM.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
error: Bad exit status from /var/tmp/rpm-tmp.n8w4uK (%build)


RPM build errors:
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.n8w4uK (%build)
[pjones@cis-host-188 tmp_build]$

Comment 1 Sandro Mani 2014-02-17 22:07:02 UTC
I'm not sure what package set you are compiling against, builds fine here and also on koji, see http://koji.fedoraproject.org/koji/taskinfo?taskID=6540593 .

Comment 2 P Jones 2014-02-17 22:46:39 UTC
I have all the RPMs required in the build-requires section of the spec, of course, and all the defaults and dependencies for a fresh install, recently 'yum update'ed.

Comment 3 Sandro Mani 2014-02-17 22:55:26 UTC
Are you compiling with a clean environment? Is there anything setting custom compile/link flags?

Comment 4 P Jones 2014-02-18 16:08:44 UTC
Here's what I did as a test:
1. create a new VM installed with the F19-DVD, chose minimal, c-development, development-tools
2. did a yum update -y 
3. ran yum install  rpm-build
4. ran yumdownloader --source libwebp
5. ran rpmbuild --rebuild libwebp
6. ran yum install -y libjpeg-devel libpng-devel swig giflib libtiff-devel java-devel jpackage-utils giflib-devel
(from the build dep errors from rpmbuild)
5.ran rpmbuild --rebuild libwebp
and got that error.

Comment 5 Sandro Mani 2014-02-18 16:56:01 UTC
You need to have redhat-rpm-config installed when building Fedora packages. You can read [1] if you would like more insight.

I'm closing this as NOTABUG.

[1] https://lists.fedoraproject.org/pipermail/devel/2013-November/191994.html


Note You need to log in before you can comment on or make changes to this bug.