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
Perhaps you guys would like to set -amd64?
ok, commited. thanks
well, someone added ~amd64 back in and this bug still exists so ...
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. :)
Damn, it also emerges fine too. The first time I did it manually the second I used emerge. Both worked.
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?
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
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.
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
can't reproduce either (linking, not just building), seems to be resolved