Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79632 - dmalloc 5.4.2 hidden 'atexit' symbol on amd64
Summary: dmalloc 5.4.2 hidden 'atexit' symbol on amd64
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-26 13:14 UTC by Matt Philips
Modified: 2006-10-12 05:01 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Philips 2005-01-26 13:14:04 UTC
See http://dmalloc.com/forums/topic_show.pl?tid=113.

configure:21233: gcc -o conftest -g -O2  -g conftest.c  -ldmalloc >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: conftest: hidden symbol `atexit' in /usr/lib/libc_nonshared.a(atexit.oS) is referenced by DSO
collect2: ld returned 1 exit status

Reproducible: Always
Steps to Reproduce:




emerge info:
Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r5 x86_64)
Gentoo Base System version 1.6.8
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-march=k8 -O2 -pipe"
MAKEOPTS="-j3"
USE="acpi amd64 apache2 berkdb curl curlwrappers gd gdbm gif ithreads jpeg
libwww mysql mysqli ncurses nogcj nptl pam perl png python readline simplexml
soap ssl threads truetype unicode xml2 xsl zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-01-28 19:37:44 UTC
Perhaps you guys would like to set -amd64?
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-29 08:01:23 UTC
ok, commited. thanks
Comment 3 SpanKY gentoo-dev 2005-12-09 12:25:49 UTC
well, someone added ~amd64 back in and this bug still exists so ...
Comment 4 Tres 'RiverRat' Melton 2005-12-10 16:35:09 UTC
A little help here.  How do you reproduce it?  I downloaded the tarball and it
configured fine here.  It also ran all the tests that came with it (light&heavy)
with & without the debug flag.  It was already marked as testing and everything
seems fine.  So:  WORKS4ME.  :)
Comment 5 Tres 'RiverRat' Melton 2005-12-10 16:36:28 UTC
Damn, it also emerges fine too.  The first time I did it manually the second I
used emerge.  Both worked.
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2005-12-11 05:15:43 UTC
Can't reproduce this bug either. Builds and runs for me...

Matt: can you still reproduce this problem? Can you try again with a more recent
glibc please, too?
Comment 7 SpanKY gentoo-dev 2005-12-11 08:42:39 UTC
yes, it emerges fine, but trying to use the library fails

$ echo 'int main(){}' > test.c
$ gcc test.c -ldmalloc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
a.out: hidden symbol `atexit' in /usr/lib64/libc_nonshared.a(atexit.oS) is
referenced by DSO
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
Comment 8 Luis Medinas (RETIRED) gentoo-dev 2006-02-14 16:50:30 UTC
same here

/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld: a.out: hidden symbol `atexit' in /usr/lib64/libc_nonshared.a(atexit.oS) is referenced by DSO
/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

using glibc-2.3.6-r2 just to know.
Comment 9 Malcolm Lashley (RETIRED) gentoo-dev 2006-08-15 14:56:45 UTC
So I'm not seeing the error anymore can some others confirm (or provide a more stringent test/use-case ;-)...

duality tmp # echo 'int main(){}' > test.c
duality tmp # gcc test.c -ldmalloc

Using:

[ebuild   R   ] dev-libs/dmalloc-5.4.2  USE="-debug" 0 kB
[ebuild   R   ] sys-libs/glibc-2.4-r3  USE="nls nptl nptlonly -build -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 416 kB
[ebuild   R   ] sys-devel/gcc-4.1.1  USE="fortran gtk nls (-altivec) -bootstrap -build -doc -gcj -hardened -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
Comment 10 Simon Stelling (RETIRED) gentoo-dev 2006-10-12 05:01:55 UTC
can't reproduce either (linking, not just building), seems to be resolved