Bug 36399 - librdkafka-0.11.6-alt0.3 builds and provides its own old bundled copy of liblz4
Summary: librdkafka-0.11.6-alt0.3 builds and provides its own old bundled copy of liblz4
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: librdkafka (show other bugs)
Version: unstable
Hardware: all Linux
: P3 blocker
Assignee: Pavel Vainerman
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-26 02:12 MSK by Dmitry V. Levin
Modified: 2019-03-27 02:21 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry V. Levin 2019-03-26 02:12:34 MSK
This is especially bad because an application that does -lrdkafka -llz4 will
not be linked with liblz4 and will use liblz4 implementation from librdkafka
instead.

$ LC_ALL=C comm -12 <(/usr/lib/rpm/provided_symbols /lib64/liblz4.so.1) \
<(/usr/lib/rpm/provided_symbols /usr/lib64/librdkafka.so)
LZ4F_compressBegin
LZ4F_compressBound
LZ4F_compressEnd
LZ4F_compressFrame
LZ4F_compressFrameBound
LZ4F_compressUpdate
LZ4F_createCompressionContext
LZ4F_createDecompressionContext
LZ4F_decompress
LZ4F_flush
LZ4F_freeCompressionContext
LZ4F_freeDecompressionContext
LZ4F_getErrorName
LZ4F_getFrameInfo
LZ4F_getVersion
LZ4F_isError
LZ4F_resetDecompressionContext
LZ4_compress
LZ4_compressBound
LZ4_compressHC
LZ4_compressHC2
LZ4_compressHC2_continue
LZ4_compressHC2_limitedOutput
LZ4_compressHC2_limitedOutput_continue
LZ4_compressHC2_limitedOutput_withStateHC
LZ4_compressHC2_withStateHC
LZ4_compressHC_continue
LZ4_compressHC_limitedOutput
LZ4_compressHC_limitedOutput_continue
LZ4_compressHC_limitedOutput_withStateHC
LZ4_compressHC_withStateHC
LZ4_compress_HC
LZ4_compress_HC_continue
LZ4_compress_HC_extStateHC
LZ4_compress_continue
LZ4_compress_default
LZ4_compress_destSize
LZ4_compress_fast
LZ4_compress_fast_continue
LZ4_compress_fast_extState
LZ4_compress_limitedOutput
LZ4_compress_limitedOutput_continue
LZ4_compress_limitedOutput_withState
LZ4_compress_withState
LZ4_create
LZ4_createHC
LZ4_createStream
LZ4_createStreamDecode
LZ4_createStreamHC
LZ4_decompress_fast
LZ4_decompress_fast_continue
LZ4_decompress_fast_usingDict
LZ4_decompress_fast_withPrefix64k
LZ4_decompress_safe
LZ4_decompress_safe_continue
LZ4_decompress_safe_partial
LZ4_decompress_safe_usingDict
LZ4_decompress_safe_withPrefix64k
LZ4_freeHC
LZ4_freeStream
LZ4_freeStreamDecode
LZ4_freeStreamHC
LZ4_loadDict
LZ4_loadDictHC
LZ4_resetStream
LZ4_resetStreamHC
LZ4_resetStreamState
LZ4_resetStreamStateHC
LZ4_saveDict
LZ4_saveDictHC
LZ4_setStreamDecode
LZ4_sizeofState
LZ4_sizeofStateHC
LZ4_sizeofStreamState
LZ4_sizeofStreamStateHC
LZ4_slideInputBuffer
LZ4_slideInputBufferHC
LZ4_uncompress
LZ4_uncompress_unknownOutputSize
LZ4_versionNumber
LZ4_versionString
Comment 1 Pavel Vainerman 2019-03-26 10:46:40 MSK
Это даже несколько неожиданно, потому-что по умолчанию она собирается
с внешней libz.

Feature options:
   --enable-lz4                         Enable external LZ4 library support [y]
   --disable-lz4                        Disable external LZ4 library support

Буду мотреть.
Comment 2 Pavel Vainerman 2019-03-26 12:49:16 MSK
Вроде исправил в задании 
http://git.altlinux.org/tasks/225666/
Comment 3 Dmitry V. Levin 2019-03-26 13:55:55 MSK
Да, lz4 там больше нет.
Правда, libxxhash по-прежнему экспортируется, но это уже другая история.
Comment 4 Dmitry V. Levin 2019-03-26 23:29:12 MSK
(In reply to comment #3)
> Правда, libxxhash по-прежнему экспортируется, но это уже другая история.

Аналогичная история про libxxhash:

$ LC_ALL=C comm -12 \
<(/usr/lib/rpm/provided_symbols /usr/lib64/libxxhash.so.0.6.5) \
<(/usr/lib/rpm/provided_symbols /usr/lib64/librdkafka.so)
XXH32
XXH32_canonicalFromHash
XXH32_copyState
XXH32_createState
XXH32_digest
XXH32_freeState
XXH32_hashFromCanonical
XXH32_reset
XXH32_update
XXH64
XXH64_canonicalFromHash
XXH64_copyState
XXH64_createState
XXH64_digest
XXH64_freeState
XXH64_hashFromCanonical
XXH64_reset
XXH64_update
XXH_versionNumber
Comment 5 Pavel Vainerman 2019-03-27 02:21:48 MSK
(In reply to comment #4)
> (In reply to comment #3)
> > Правда, libxxhash по-прежнему экспортируется, но это уже другая история.
> 
> Аналогичная история про libxxhash:
Оторвал и это.
http://git.altlinux.org/tasks/225724/