Summary: | sys-libs/zlib-1.2.12 fails to compile: ld: libz.a(deflate.o): relocation R_X86_64_PC32 against symbol _length_code can not be used when making a shared object; recompile with -fPIC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 836303 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2022-03-28 07:09:44 UTC
Created attachment 768043 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ./../../libz.a(deflate.o): relocation R_X86_64_PC32 against symbol `_length_code' can not be used when making a shared object; recompile with -fPIC collect2: error: ld returned 1 exit status The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a91cef90a3879f5fe3763a01c0f37c336bd1a6c commit 0a91cef90a3879f5fe3763a01c0f37c336bd1a6c Author: Sam James <sam@gentoo.org> AuthorDate: 2022-03-28 07:27:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-03-28 07:28:03 +0000 sys-libs/zlib: fix CC detection in configure Notably fixes multilib (although it actually silently skipped for me) in at least one way. Closes: https://bugs.gentoo.org/836308 Signed-off-by: Sam James <sam@gentoo.org> .../zlib-1.2.12-fix-CC-logic-in-configure.patch | 27 ++++++++++++++++++++++ sys-libs/zlib/zlib-1.2.12.ebuild | 4 ++++ 2 files changed, 31 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e2bd29b39d577e88ecf6bc0752cd50c56ea6411 commit 5e2bd29b39d577e88ecf6bc0752cd50c56ea6411 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-03-28 07:28:51 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-03-28 07:29:30 +0000 sys-libs/zlib: revbump 1.2.12 for configure fix For me, it silently installed no 32-bit lib (or tried to build it statically, which then didn't get installed), so let's be cautious. Still unkeyworded until later though. Bug: https://bugs.gentoo.org/835958 Bug: https://bugs.gentoo.org/836308 Fixes: 0a91cef90a3879f5fe3763a01c0f37c336bd1a6c Signed-off-by: Sam James <sam@gentoo.org> sys-libs/zlib/{zlib-1.2.12.ebuild => zlib-1.2.12-r1.ebuild} | 0 1 file changed, 0 insertions(+), 0 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffafdfd3eed513c49aa7047f4b09fd1dd0bb6768 commit ffafdfd3eed513c49aa7047f4b09fd1dd0bb6768 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-03-28 07:42:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-03-28 07:45:45 +0000 sys-libs/zlib: add link to upstream PR for 1.2.12 configure Bug: https://bugs.gentoo.org/836308 Signed-off-by: Sam James <sam@gentoo.org> .../zlib-1.2.12-fix-CC-logic-in-configure.patch | 28 +++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-) |