Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920272 - dev-libs/dmalloc-5.6.5-r1 - ld: libdmallocxx.a(append.o): relocation R_X86_64_PC32 against undefined symbol stdout can not be used when making a share
Summary: dev-libs/dmalloc-5.6.5-r1 - ld: libdmallocxx.a(append.o): relocation R_X86_64...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 920276 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-18 16:02 UTC by Toralf Förster
Modified: 2024-03-26 14:08 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.03 KB, text/plain)
2023-12-18 16:02 UTC, Toralf Förster
Details
dev-libs:dmalloc-5.6.5-r1:20231218-100538.log (dev-libs:dmalloc-5.6.5-r1:20231218-100538.log,17.93 KB, text/plain)
2023-12-18 16:02 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,65.75 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
environment (environment,76.25 KB, text/plain)
2023-12-18 16:03 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,972 bytes, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,65.08 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,10.37 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,68.32 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,22.24 KB, application/x-xz)
2023-12-18 16:03 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-18 16:02:57 UTC
x86_64-pc-linux-gnu-ranlib libdmallocxx.a
rm -f libdmallocxx.so.5.6.5 libdmallocxx.so.5.6.5.t
rm -f libdmalloc.so.5.6.5 libdmalloc.so.5.6.5.t
ld -shared --whole-archive -soname libdmallocxx.so.5 -o libdmallocxx.so.5.6.5.t libdmallocxx.a
ld -shared --whole-archive -soname libdmalloc.so.5 -o libdmalloc.so.5.6.5.t libdmalloc.a
ld: libdmallocxx.a(user_malloc.o): warning: relocation against `_dmalloc_lock_on' in read-only section `.text'
ld: libdmallocxx.a(append.o): relocation R_X86_64_PC32 against undefined symbol `stdout' can not be used when making a shared object; recompile with -fPIC
ld: final link failed: bad value
make: *** [Makefile:324: libdmallocxx.so.5.6.5] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-20231213-182010

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
3)	Eclipse Temurin JRE 17.0.8.1_p1 [openjdk-jre-bin-17]
4)	Eclipse Temurin JRE 21.0.1_p12 [openjdk-jre-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-17 
  [4]   openjdk-jre-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 7ee99aa6883bad58dea3cc65a814636d0518cf94
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 18 09:16:53 2023 +0000

    2023-12-18 09:16:51 UTC

emerge -qpvO dev-libs/dmalloc
[ebuild  N    ] dev-libs/dmalloc-5.6.5-r1  USE="-threads"
Comment 1 Toralf Förster gentoo-dev 2023-12-18 16:02:58 UTC
Created attachment 879833 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-18 16:02:58 UTC
Created attachment 879834 [details]
dev-libs:dmalloc-5.6.5-r1:20231218-100538.log
Comment 3 Toralf Förster gentoo-dev 2023-12-18 16:03:00 UTC
Created attachment 879835 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-18 16:03:01 UTC
Created attachment 879836 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-18 16:03:02 UTC
Created attachment 879837 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-18 16:03:03 UTC
Created attachment 879838 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-18 16:03:04 UTC
Created attachment 879839 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-18 16:03:05 UTC
Created attachment 879840 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-18 16:03:06 UTC
Created attachment 879841 [details]
temp.tar.xz
Comment 10 Alfred Wingate 2023-12-18 16:07:20 UTC
*** Bug 920276 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2024-03-26 14:08:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=601a9851b4e2cbfd05b405900a6e1bf356f9b1e2

commit 601a9851b4e2cbfd05b405900a6e1bf356f9b1e2
Author:     Agostino Sarubbo <ago@gentoo.org>
AuthorDate: 2024-03-26 14:08:10 +0000
Commit:     Agostino Sarubbo <ago@gentoo.org>
CommitDate: 2024-03-26 14:08:10 +0000

    dev-libs/dmalloc: fix compilation failure by appending -fPIC
    
    Closes: https://bugs.gentoo.org/920272
    Signed-off-by: Agostino Sarubbo <ago@gentoo.org>

 dev-libs/dmalloc/dmalloc-5.6.5-r2.ebuild | 64 ++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)