Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942820 - sys-libs/zlib-1.3.1 : Unresolved soname dependencies - PIC
Summary: sys-libs/zlib-1.3.1 : Unresolved soname dependencies - PIC
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: Normal critical
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-03 14:26 UTC by Worx
Modified: 2024-11-03 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
info (info.txt,5.60 KB, text/plain)
2024-11-03 14:26 UTC, Worx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Worx 2024-11-03 14:26:42 UTC
Created attachment 907809 [details]
info

It seems that I have the issue mentionned in this page : https://wiki.gentoo.org/wiki/Hardened/Textrels_Guide

With Zlib, on my x86. 

strip: strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version                                                                                                                                                             /usr/bin/q                                                                                                                                                                                                                                                                 strip: /usr/lib/libz.so.1: no version information available (required by /usr/lib/binutils/i486-pc-linux-gnu/2.42/libbfd-2.42.0.gentoo-sys-devel-binutils-st.so)                                                                                                               * QA Notice: Unresolved soname dependencies:                                                                                                                                                                                                                                  *                                                                                                                                                                                                                                                                             *      /usr/bin/q: libz.so                                                                                                                                                                                                                                                    *
Comment 1 Worx 2024-11-03 14:28:28 UTC
livecd /tmp # scanelf -qT /usr/lib/libz.so.1.3.1
  libz.so.1.3.1: deflateResetKeep [r_offset=0x5067] r_type=2 in (optimized out: previous deflateReset) [closest_prev_sym=0x5050]
  libz.so.1.3.1: deflate [r_offset=0x695F] r_type=2 in (optimized out: previous deflateParams) [closest_prev_sym=0x6860]
  libz.so.1.3.1: deflateEnd [r_offset=0x6E4C] r_type=2 in (optimized out: previous deflateInit2_) [closest_prev_sym=0x6B70]
  libz.so.1.3.1: deflateEnd [r_offset=0x71A5] r_type=2 in (optimized out: previous deflateCopy) [closest_prev_sym=0x6E90]
  libz.so.1.3.1: deflateInit2_ [r_offset=0x6E80] r_type=2 in (optimized out: previous deflateInit_) [closest_prev_sym=0x6E60]
  libz.so.1.3.1: inflateReset2 [r_offset=0x920D] r_type=2 in (optimized out: previous inflateInit2_) [closest_prev_sym=0x9180]
  libz.so.1.3.1: inflateInit2_ [r_offset=0x92A5] r_type=2 in (optimized out: previous inflateInit_) [closest_prev_sym=0x9290]
  libz.so.1.3.1: inflateResetKeep [r_offset=0xBDA1] r_type=2 in (optimized out: previous inflateSync) [closest_prev_sym=0xBC00]
  libz.so.1.3.1: _tr_stored_block [r_offset=0xE5D3] r_type=2 in (optimized out: previous _tr_flush_block) [closest_prev_sym=0xE1E0]
  libz.so.1.3.1: compress2 [r_offset=0xEB2A] r_type=2 in (optimized out: previous compress) [closest_prev_sym=0xEB10]
  libz.so.1.3.1: uncompress2 [r_offset=0xED58] r_type=2 in (optimized out: previous uncompress) [closest_prev_sym=0xED40]
  libz.so.1.3.1: gzrewind [r_offset=0xF4A4] r_type=2 in (optimized out: previous gzseek64) [closest_prev_sym=0xF360]
  libz.so.1.3.1: gzseek64 [r_offset=0xF5B9] r_type=2 in (optimized out: previous gzseek) [closest_prev_sym=0xF5A0]
  libz.so.1.3.1: gzvprintf [r_offset=0x11354] r_type=2 in (optimized out: previous gzprintf) [closest_prev_sym=0x11340]
  /usr/lib/libz.so.1.3.1
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-03 17:24:10 UTC
1) Does USE=pic help?
2) The output you gave doesn't show that, I think. The issue is there's broken symbol versioning.
Comment 3 Worx 2024-11-03 18:07:59 UTC
1) no USE=pic
2) I'm not sure I'm catching your point ? 

A bug in Zlib ?
Comment 4 Worx 2024-11-03 19:42:07 UTC
Ok, do I need to create a bug for zlib ?