Add #include <gc.h> to a c program Place a call to GC_MALLOC within the body of the program (optional) gcc -o prog prog.h -lgc Error: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgc collect2: ld returned 1 exit status find /usr/lib -name libgc* fails to locate libgc.so anywhere. Reproducible: Always Steps to Reproduce: In Details. Actual Results: ld fails. Expected Results: ld links app. Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/ config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/ config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://212.219.56.152/sites/www.ibiblio.org/gentoo/ ftp:// ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://gentoo.mirrors.pair.com/ http:// gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif gtk2 jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts tetex aalib svga java sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk motif opengl X qt kde -gnome"
The authors page contains this comment that I believe indicates a bug not a feature request. "A slightly older version of the garbage collector is now also included as part of the GNU compiler distribution. The source code for that version is available for browsing here." See the link in the URL section above for the homepage of this library. Adam (Original poster)
Adam, Ok thats alot of reading please make it easy for us. Why is it a bug vs a feature request? What's not getting included when gcc is built? Can you provide patches for the gcc*.ebuild's in question.
After doing furthur research this evening it seems that I was wrong to believe the comment on the authors website reguarding GCC. It does not exist in Fedora Core 2 Test 3 or Debian Sarge by default either. It seems that this bug should infact be a ebuild request for the libgc package that is most recent from the URL above. This seems to be the method Debian uses as it is a get-able package. Sorry for the confusion (also I dont know how to make ebuilds or I would do it myself)
Created attachment 48860 [details] libgc-6.4.ebuild (New Package) Compilation, test and install of this ebuild succeeded. I have not tested the installed library.
thanks ! libgc-6.6 now in portage