Issue 511 in webp: Compilation fails on Ubuntu 16.04 xenial

214 views
Skip to first unread message

httpw… via monorail

unread,
Mar 10, 2021, 9:54:24 AM3/10/21
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 511 by httpw...@gmail.com: Compilation fails on Ubuntu 16.04 xenial
https://bugs.chromium.org/p/webp/issues/detail?id=511

What steps will reproduce the problem?

1. Have a fresh installation of Ubuntu 16.04

2. Install dependancies
apt-get install libjpeg-dev libpng-dev libtiff-dev libgif-dev

3. Try to compile and install libwebp on the system
# wget https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.0.tar.gz
# tar -xvf libwebp-1.2.0.tar.gz
# cd libwebp-1.2.0

###############################################

Let's try to configure the library

###############################################

# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-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... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /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 how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt 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 a sed that does not truncate output... (cached) /bin/sed
checking whether make supports nested variables... (cached) yes
checking whether byte ordering is bigendian... no
checking whether asserts are enabled... no
checking whether gcc supports -fvisibility=hidden... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wconstant-conversion... no
checking whether gcc supports -Wdeclaration-after-statement... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wfloat-conversion... yes
checking whether gcc supports -Wformat -Wformat-nonliteral... yes
checking whether gcc supports -Wformat -Wformat-security... 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 -Wparentheses-equality... no
checking whether gcc supports -Wshadow... yes
checking whether gcc supports -Wshorten-64-to-32... no
checking whether gcc supports -Wundef... yes
checking whether gcc supports -Wunreachable-code-aggressive... no
checking whether gcc supports -Wunreachable-code... yes
checking whether gcc supports -Wunused-but-set-variable... yes
checking whether gcc supports -Wunused... yes
checking whether gcc supports -Wvla... yes
checking whether gcc supports -msse4.1... yes
checking smmintrin.h usability... yes
checking smmintrin.h presence... yes
checking for smmintrin.h... yes
checking whether gcc supports -msse2... yes
checking emmintrin.h usability... yes
checking emmintrin.h presence... yes
checking for emmintrin.h... yes
checking for __builtin_bswap16... yes
checking for __builtin_bswap32... yes
checking for __builtin_bswap64... yes
configure: checking for threading support...
checking if compiler needs -Werror to reject unknown flags... no
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 sdl-config... no
checking SDL/SDL.h usability... no
checking SDL/SDL.h presence... no
checking for SDL/SDL.h... no
checking SDL.h usability... no
checking SDL.h presence... no
checking for SDL.h... no
configure: WARNING: SDL library not available - no sdl.h
configure: WARNING: Optional SDL library not found
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 --disable-near-lossless option is specified... no
checking whether libwebpmux is to be built... no
checking whether libwebpdemux is to be built... yes
checking whether decoder library is to be built... no
checking whether libwebpextras 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 extras/Makefile
config.status: creating imageio/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 src/webp/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
WebP Configuration Summary
--------------------------

Shared libraries: yes
Static libraries: yes
Threading support: yes
libwebp: yes
libwebpdecoder: no
libwebpdemux: yes
libwebpmux: no
libwebpextras: no

Tools:
cwebp : yes
Input format support
====================
JPEG : yes
PNG : yes
TIFF : yes
WIC : no
dwebp : yes
Output format support
=====================
PNG : yes
WIC : no
GIF support : yes
anim_diff : no
gif2webp : no
img2webp : no
webpmux : no
vwebp : no
webpinfo : no
SDL support : no
vwebp_sdl : no

###############################################

Let's try to make a make

###############################################

# make
Making all in src
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
Making all in dec
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dec »
CC libwebpdecode_la-alpha_dec.lo
CC libwebpdecode_la-buffer_dec.lo
CC libwebpdecode_la-frame_dec.lo
CC libwebpdecode_la-idec_dec.lo
CC libwebpdecode_la-io_dec.lo
CC libwebpdecode_la-quant_dec.lo
CC libwebpdecode_la-tree_dec.lo
CC libwebpdecode_la-vp8_dec.lo
CC libwebpdecode_la-vp8l_dec.lo
CC libwebpdecode_la-webp_dec.lo
CCLD libwebpdecode.la
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dec »
Making all in enc
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/enc »
CC libwebpencode_la-alpha_enc.lo
CC libwebpencode_la-analysis_enc.lo
CC libwebpencode_la-backward_references_cost_enc.lo
CC libwebpencode_la-backward_references_enc.lo
CC libwebpencode_la-config_enc.lo
CC libwebpencode_la-cost_enc.lo
CC libwebpencode_la-filter_enc.lo
CC libwebpencode_la-frame_enc.lo
CC libwebpencode_la-histogram_enc.lo
CC libwebpencode_la-iterator_enc.lo
CC libwebpencode_la-near_lossless_enc.lo
CC libwebpencode_la-picture_enc.lo
CC libwebpencode_la-picture_csp_enc.lo
CC libwebpencode_la-picture_psnr_enc.lo
CC libwebpencode_la-picture_rescale_enc.lo
CC libwebpencode_la-picture_tools_enc.lo
CC libwebpencode_la-predictor_enc.lo
CC libwebpencode_la-quant_enc.lo
CC libwebpencode_la-syntax_enc.lo
CC libwebpencode_la-token_enc.lo
CC libwebpencode_la-tree_enc.lo
CC libwebpencode_la-vp8l_enc.lo
CC libwebpencode_la-webp_enc.lo
CCLD libwebpencode.la
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/enc »
Making all in dsp
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dsp »
CC libwebpdsp_la-alpha_processing.lo
CC libwebpdsp_la-cpu.lo
CC libwebpdsp_la-dec.lo
CC libwebpdsp_la-dec_clip_tables.lo
CC libwebpdsp_la-filters.lo
CC libwebpdsp_la-lossless.lo
CC libwebpdsp_la-rescaler.lo
CC libwebpdsp_la-upsampling.lo
CC libwebpdsp_la-yuv.lo
CC libwebpdsp_la-cost.lo
CC libwebpdsp_la-enc.lo
CC libwebpdsp_la-lossless_enc.lo
CC libwebpdsp_la-ssim.lo
CC libwebpdsp_sse2_la-cost_sse2.lo
CC libwebpdsp_sse2_la-enc_sse2.lo
CC libwebpdsp_sse2_la-lossless_enc_sse2.lo
CC libwebpdsp_sse2_la-ssim_sse2.lo
CC libwebpdspdecode_sse2_la-alpha_processing_sse2.lo
CC libwebpdspdecode_sse2_la-dec_sse2.lo
CC libwebpdspdecode_sse2_la-filters_sse2.lo
CC libwebpdspdecode_sse2_la-lossless_sse2.lo
CC libwebpdspdecode_sse2_la-rescaler_sse2.lo
CC libwebpdspdecode_sse2_la-upsampling_sse2.lo
CC libwebpdspdecode_sse2_la-yuv_sse2.lo
CCLD libwebpdspdecode_sse2.la
CCLD libwebpdsp_sse2.la
CC libwebpdsp_sse41_la-enc_sse41.lo
CC libwebpdsp_sse41_la-lossless_enc_sse41.lo
CC libwebpdspdecode_sse41_la-alpha_processing_sse41.lo
CC libwebpdspdecode_sse41_la-dec_sse41.lo
CC libwebpdspdecode_sse41_la-upsampling_sse41.lo
CC libwebpdspdecode_sse41_la-yuv_sse41.lo
CCLD libwebpdspdecode_sse41.la
CCLD libwebpdsp_sse41.la
CC libwebpdsp_neon_la-cost_neon.lo
CC libwebpdsp_neon_la-enc_neon.lo
CC libwebpdsp_neon_la-lossless_enc_neon.lo
CC libwebpdspdecode_neon_la-alpha_processing_neon.lo
CC libwebpdspdecode_neon_la-dec_neon.lo
CC libwebpdspdecode_neon_la-filters_neon.lo
CC libwebpdspdecode_neon_la-lossless_neon.lo
CC libwebpdspdecode_neon_la-rescaler_neon.lo
CC libwebpdspdecode_neon_la-upsampling_neon.lo
CC libwebpdspdecode_neon_la-yuv_neon.lo
CCLD libwebpdspdecode_neon.la
CCLD libwebpdsp_neon.la
CC libwebpdsp_msa_la-enc_msa.lo
CC libwebpdsp_msa_la-lossless_enc_msa.lo
CC libwebpdspdecode_msa_la-dec_msa.lo
CC libwebpdspdecode_msa_la-filters_msa.lo
CC libwebpdspdecode_msa_la-lossless_msa.lo
CC libwebpdspdecode_msa_la-rescaler_msa.lo
CC libwebpdspdecode_msa_la-upsampling_msa.lo
CCLD libwebpdspdecode_msa.la
CCLD libwebpdsp_msa.la
CC libwebpdsp_mips32_la-cost_mips32.lo
CC libwebpdsp_mips32_la-enc_mips32.lo
CC libwebpdsp_mips32_la-lossless_enc_mips32.lo
CC libwebpdspdecode_mips32_la-dec_mips32.lo
CC libwebpdspdecode_mips32_la-rescaler_mips32.lo
CC libwebpdspdecode_mips32_la-yuv_mips32.lo
CCLD libwebpdspdecode_mips32.la
CCLD libwebpdsp_mips32.la
CC libwebpdsp_mips_dsp_r2_la-cost_mips_dsp_r2.lo
CC libwebpdsp_mips_dsp_r2_la-enc_mips_dsp_r2.lo
CC libwebpdsp_mips_dsp_r2_la-lossless_enc_mips_dsp_r2.lo
CC libwebpdspdecode_mips_dsp_r2_la-alpha_processing_mips_dsp_r2.lo
CC libwebpdspdecode_mips_dsp_r2_la-dec_mips_dsp_r2.lo
CC libwebpdspdecode_mips_dsp_r2_la-filters_mips_dsp_r2.lo
CC libwebpdspdecode_mips_dsp_r2_la-lossless_mips_dsp_r2.lo
CC libwebpdspdecode_mips_dsp_r2_la-rescaler_mips_dsp_r2.lo
CC libwebpdspdecode_mips_dsp_r2_la-upsampling_mips_dsp_r2.lo
CC libwebpdspdecode_mips_dsp_r2_la-yuv_mips_dsp_r2.lo
CCLD libwebpdspdecode_mips_dsp_r2.la
CCLD libwebpdsp_mips_dsp_r2.la
CCLD libwebpdsp.la
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dsp »
Making all in utils
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/utils »
CC bit_reader_utils.lo
CC color_cache_utils.lo
CC filters_utils.lo
CC huffman_utils.lo
CC quant_levels_dec_utils.lo
CC rescaler_utils.lo
CC random_utils.lo
CC thread_utils.lo
CC utils.lo
CC bit_writer_utils.lo
CC huffman_encode_utils.lo
CC quant_levels_utils.lo
CCLD libwebputils.la
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/utils »
Making all in .
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
CCLD libwebp.la
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
Making all in demux
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/demux »
CC anim_decode.lo
CC demux.lo
CCLD libwebpdemux.la
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/demux »
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
Making all in imageio
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/imageio »
CC imageio_util.lo
CCLD libimageio_util.la
CC libimagedec_la-image_dec.lo
CC libimagedec_la-jpegdec.lo
CC libimagedec_la-metadata.lo
CC libimagedec_la-pngdec.lo
pngdec.c: In function ‘ReadPNG’:
pngdec.c:264:19: warning: implicit declaration of function ‘png_get_chunk_malloc_max’ [-Wimplicit-function-declaration]
if (data_size > png_get_chun
^
pngdec.c:264:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (data_size > png_get_chun
^
pngdec.c:265:5: warning: implicit declaration of function ‘png_set_chunk_malloc_max’ [-Wimplicit-function-declaration]
png_set_chunk_malloc_max(p
^
CC libimagedec_la-pnmdec.lo
CC libimagedec_la-tiffdec.lo
CC libimagedec_la-webpdec.lo
CC libimagedec_la-wicdec.lo
CCLD libimagedec.la
CC libimageenc_la-image_enc.lo
CCLD libimageenc.la
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/imageio »
Making all in man
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/man »
make[1]: rien à faire pour « all ».
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/man »
Making all in examples
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/examples »
CC dwebp-dwebp.o
CC example_util.lo
CCLD libexample_util.la
CCLD dwebp
CC cwebp-cwebp.o
CCLD cwebp
../imageio/.libs/libimagedec.a(libimagedec_la-pngdec.o): In function `ReadPNG':
/home/nick/Téléchargements/libwebp-1.2.0/imageio/pngdec.c:264: undefined reference to `png_get_chunk_malloc_max'
/home/nick/Téléchargements/libwebp-1.2.0/imageio/pngdec.c:265: undefined reference to `png_set_chunk_malloc_max'
collect2: error: ld returned 1 exit status
Makefile:572 : la recette pour la cible « cwebp » a échouée
make[1]: *** [cwebp] Erreur 1
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/examples »
Makefile:423 : la recette pour la cible « all-recursive » a échouée
make: *** [all-recursive] Erreur 1

###############################################

As you can see the make command failed above,
So the sudo make install command below fails too

###############################################

# sudo make install
Making install in src
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
Making install in dec
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dec »
make[3] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dec »
make[3]: rien à faire pour « install-exec-am ».
/bin/mkdir -p '/usr/local/include/webp'
/usr/bin/install -c -m 644 ../webp/decode.h ../webp/types.h '/usr/local/include/webp'
make[3] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dec »
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dec »
Making install in enc
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/enc »
make[3] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/enc »
make[3]: rien à faire pour « install-exec-am ».
/bin/mkdir -p '/usr/local/include/webp'
/usr/bin/install -c -m 644 ../webp/encode.h ../webp/types.h '/usr/local/include/webp'
make[3] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/enc »
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/enc »
Making install in dsp
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dsp »
make[3] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dsp »
make[3]: rien à faire pour « install-exec-am ».
/bin/mkdir -p '/usr/local/include/webp'
/usr/bin/install -c -m 644 ../webp/types.h '/usr/local/include/webp'
make[3] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dsp »
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/dsp »
Making install in utils
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/utils »
make[3] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/utils »
make[3]: rien à faire pour « install-exec-am ».
/bin/mkdir -p '/usr/local/include/webp'
/usr/bin/install -c -m 644 ../webp/types.h '/usr/local/include/webp'
make[3] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/utils »
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/utils »
Making install in .
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
make[3] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
/bin/mkdir -p '/usr/local/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libwebp.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libwebp.so.7.1.1 /usr/local/lib/libwebp.so.7.1.1
libtool: install: (cd /usr/local/lib && { ln -s -f libwebp.so.7.1.1 libwebp.so.7 || { rm -f libwebp.so.7 && ln -s libwebp.so.7.1.1 libwebp.so.7; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libwebp.so.7.1.1 libwebp.so || { rm -f libwebp.so && ln -s libwebp.so.7.1.1 libwebp.so; }; })
libtool: install: /usr/bin/install -c .libs/libwebp.lai /usr/local/lib/libwebp.la
libtool: install: /usr/bin/install -c .libs/libwebp.a /usr/local/lib/libwebp.a
libtool: install: chmod 644 /usr/local/lib/libwebp.a
libtool: install: ranlib /usr/local/lib/libwebp.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/include/webp'
/usr/bin/install -c -m 644 webp/decode.h webp/types.h '/usr/local/include/webp'
/bin/mkdir -p '/usr/local/include/webp'
/usr/bin/install -c -m 644 webp/encode.h '/usr/local/include/webp'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libwebp.pc '/usr/local/lib/pkgconfig'
make[3] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
Making install in demux
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/demux »
make[3] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/demux »
/bin/mkdir -p '/usr/local/lib'
/bin/bash ../../libtool --mode=install /usr/bin/install -c libwebpdemux.la '/usr/local/lib'
libtool: warning: relinking 'libwebpdemux.la'
libtool: install: (cd /home/nick/Téléchargements/libwebp-1.2.0/src/demux; /bin/bash "/home/nick/Téléchargements/libwebp-1.2.0/libtool" --silent --tag CC --mode=relink gcc -fvisibility=hidden -Wall -Wdeclaration-after-statement -Wextra -Wfloat-conversion -Wformat -Wformat-nonliteral -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wshadow -Wundef -Wunreachable-code -Wunused-but-set-variable -Wunused -Wvla -g -O2 -pthread -no-undefined -version-info 2:7:0 -o libwebpdemux.la -rpath /usr/local/lib anim_decode.lo demux.lo ../libwebp.la )
libtool: install: /usr/bin/install -c .libs/libwebpdemux.so.2.0.7T /usr/local/lib/libwebpdemux.so.2.0.7
libtool: install: (cd /usr/local/lib && { ln -s -f libwebpdemux.so.2.0.7 libwebpdemux.so.2 || { rm -f libwebpdemux.so.2 && ln -s libwebpdemux.so.2.0.7 libwebpdemux.so.2; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libwebpdemux.so.2.0.7 libwebpdemux.so || { rm -f libwebpdemux.so && ln -s libwebpdemux.so.2.0.7 libwebpdemux.so; }; })
libtool: install: /usr/bin/install -c .libs/libwebpdemux.lai /usr/local/lib/libwebpdemux.la
libtool: install: /usr/bin/install -c .libs/libwebpdemux.a /usr/local/lib/libwebpdemux.a
libtool: install: chmod 644 /usr/local/lib/libwebpdemux.a
libtool: install: ranlib /usr/local/lib/libwebpdemux.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/include/webp'
/usr/bin/install -c -m 644 ../webp/decode.h ../webp/demux.h ../webp/mux_types.h ../webp/types.h '/usr/local/include/webp'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libwebpdemux.pc '/usr/local/lib/pkgconfig'
make[3] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/demux »
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src/demux »
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/src »
Making install in imageio
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/imageio »
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/imageio »
make[2]: rien à faire pour « install-exec-am ».
make[2]: rien à faire pour « install-data-am ».
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/imageio »
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/imageio »
Making install in man
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/man »
make[2] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/man »
make[2]: rien à faire pour « install-exec-am ».
/bin/mkdir -p '/usr/local/share/man/man1'
/usr/bin/install -c -m 644 cwebp.1 dwebp.1 '/usr/local/share/man/man1'
make[2] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/man »
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/man »
Making install in examples
make[1] : on entre dans le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/examples »
CCLD cwebp
../imageio/.libs/libimagedec.a(libimagedec_la-pngdec.o): In function `ReadPNG':
/home/nick/Téléchargements/libwebp-1.2.0/imageio/pngdec.c:264: undefined reference to `png_get_chunk_malloc_max'
/home/nick/Téléchargements/libwebp-1.2.0/imageio/pngdec.c:265: undefined reference to `png_set_chunk_malloc_max'
collect2: error: ld returned 1 exit status
Makefile:572 : la recette pour la cible « cwebp » a échouée
make[1]: *** [cwebp] Erreur 1
make[1] : on quitte le répertoire « /home/nick/Téléchargements/libwebp-1.2.0/examples »
Makefile:423 : la recette pour la cible « install-recursive » a échouée
make: *** [install-recursive] Erreur 1

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
PRODUCT VERSION: 1.2.0

OPERATING SYSTEM:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial


Please provide any additional information below.
I tried your precompiled version but it fails to run on my system as you can see below:

# bin/cwebp
bin/cwebp: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by bin/cwebp)


Please help, I would love to use your library to optimize my websites pictures.

Thanks a lot for your time & help

Best regards

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

jz… via monorail

unread,
Mar 11, 2021, 10:27:11 PM3/11/21
to webp-d...@webmproject.org
Updates:
Mergedinto: 505
Status: Duplicate

Comment #1 on issue 511 by jz...@chromium.org: Compilation fails on Ubuntu 16.04 xenial
https://bugs.chromium.org/p/webp/issues/detail?id=511#c1

Thanks for the report. Unfortunately this slipped into the release. I fixed this in the main branch and the release branch, but I didn't make a 1.2.1 release. You should be able to patch the change in to fix the issue:

https://chromium-review.googlesource.com/q/Id4e0643a7734563fec7779f7943ec760da8d276d

bande… via monorail

unread,
Mar 13, 2021, 4:31:29 PM3/13/21
to webp-d...@webmproject.org

Comment #2 on issue 511 by bande...@gmail.com: Compilation fails on Ubuntu 16.04 xenial
https://bugs.chromium.org/p/webp/issues/detail?id=511#c2

(No comment was entered for this change.)

Attachments:
image%3A266 18.8 KB
Reply all
Reply to author
Forward
0 new messages