The FreeBSD Ports Archive

Freebsd | Contact
Welcome to FreeBSD Software


FreeBSD devel : boehm-gc

Garbage collection and memory leak detection for C and C++

 The Boehm-Weiser garbage collection package, for C and C++ -
garbage collection and memory leak detection libraries.

A garbage collector is something which automatically frees malloc'd
memory for you by working out what parts of memory your program
no longer has pointers to.  As a result, garbage collectors can also
inform you of memory leaks (if they find memory they can free, it means
you have lost all of your pointers to it, but you didn't free it).

This package has two libraries and some include files:
libgc.a - a garbage collection library, replaces malloc/free/new/delete/etc
    with versions that do automatic garbage collection
libleak.a - a leak detection library, which is just libgc.a compiled with
    different switches.

C programs may be linked against either of these, and should run (with
GC or leak detection) without change.  C++ programs must include a header
to use garbage collection, though leak detection should work without
such source code modifications.  See the man page and header files.

-- Mike McGaughey 
ps: garbage collection is addictive. 

http://www.hpl.hp.com/personal/Hans_Boehm/gc/



boehm-gc history


v. 1.54
date: 2007/02/05 22:12:46;  author: stas;  state: Exp;  lines: +2 -2
- Use PTHREAD_LIBS.

Submitted by:	nork

v. 1.53 date: 2007/02/01 02:41:24; author: kris; state: Exp; lines: +1 -0 Use libtool port instead of included version to avoid objformat a.out botch
v. 1.52 date: 2006/09/20 13:33:14; author: stas; state: Exp; lines: +6 -7 - Update to 6.8 - Replace some obsoleted variables - Take maintainership ChangeLog: it's mainly bugfix release Approved by: sem (mentor)
v. 1.51 date: 2006/09/17 08:57:20; author: nobutaka; state: Exp; lines: +1 -1 Drop maintainership.
v. 1.50 date: 2006/05/04 21:40:24; author: edwin; state: Exp; lines: +0 -1 Remove USE_REINPLACE from all categories starting with D
v. 1.49 date: 2006/02/23 10:35:30; author: ade; state: Exp; lines: +1 -2 Conversion to a single libtool environment. Approved by: portmgr (kris)
v. 1.48 date: 2005/11/15 06:48:35; author: ade; state: Exp; lines: +1 -1 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present in bsd.autotools.mk essentially makes this a no-op given that all the old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in exactly the same way as USE_AUTOTOOLS itself. Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME team -- all GNOME 2.12.x ports use it. Preliminary documentation can be found at: http://people.FreeBSD.org/~ade/autotools.txt which is in the process of being SGMLized before introduction into the Porters Handbook. Light blue touch-paper. Run.
v. 1.47 date: 2005/11/13 13:28:24; author: nobutaka; state: Exp; lines: +1 -1 Remove redundant gc:: from gc_cpp.h for gcc41. Submitted by: "Arno J. Klaassen"
v. 1.46 date: 2005/10/23 00:01:35; author: nobutaka; state: Exp; lines: +3 -1 Fix build error on amd64 with THREADING option. PR: ports/87484 Submitted by: Vasil Dimov
v. 1.45 date: 2005/10/10 13:06:07; author: nobutaka; state: Exp; lines: +7 -0 Link pthread library when WITH_THREADING is defined. Pointed out by: Nicola Vitale
v. 1.44 date: 2005/10/08 11:43:40; author: nobutaka; state: Exp; lines: +1 -1 Update to 6.6.
v. 1.43 date: 2005/07/15 19:14:36; author: nobutaka; state: Exp; lines: +4 -4 Remove !defined(WITHOUT_*) tests to correct handling of WITH_* knobs when they are defined from command line and BATCH is defined. PR: ports/83430 Submitted by: Sean Farley
v. 1.42 date: 2005/06/29 16:29:45; author: nobutaka; state: Exp; lines: +2 -2 Add arm support. Submitted by: cognet
v. 1.41 date: 2005/06/26 17:24:26; author: nobutaka; state: Exp; lines: +1 -1 Update to 6.5. Submitted by: lioux
v. 1.40 date: 2005/03/19 16:44:02; author: nobutaka; state: Exp; lines: +2 -2 Fix build on powerpc. PR: ports/78577 Submitted by: Martin Minkus
v. 1.39 date: 2004/12/29 15:17:41; author: nobutaka; state: Exp; lines: +1 -2 Update to 6.4.
v. 1.38 date: 2004/12/16 18:39:09; author: nobutaka; state: Exp; lines: +1 -0 Fix breakage on amd64.
v. 1.37 date: 2004/11/17 15:52:40; author: nobutaka; state: Exp; lines: +2 -2 Remove BROKEN mark for sparc64. Submitted by: Hannes Mehnert
v. 1.36 date: 2004/11/08 16:33:04; author: nobutaka; state: Exp; lines: +1 -2 - Update to 6.3. - Get to work on sparc. [1] - Fix warnings from gc_cpp.h. [2] Submitted by: Hannes Mehnert [1], des [2]
v. 1.35 date: 2004/07/09 17:42:07; author: marcus; state: Exp; lines: +1 -1 Apply a big libtool patch to allow porters to use the libtool installed by the libtoolX ports instead of the one included with each port. Ports that set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of the included version. To restore previous behavior, use the new macro, USE_INC_LIBTOOL_VER. Both macros accept the same argument: a libtool version. For example, to use the ports version of libtool-1.5, add the following to your Makefile: USE_LIBTOOL_VER= 15 To use the included version of libtool with extra hacks provided by libtool-1.5, add the following to your Makefile: USE_INC_LIBTOOL_VER= 15 With this change, ports that had to add additional libtool hacks to prevent .la files from being installed or to fix certain threading issues can now delete those hacks (after appropriate testing, of course). PR: 63944 Based on work by:eik and marcus Approved by: ade (autotools maintainer) Tested by: kris on pointyhat Bound to be hidden problems: You bet
v. 1.34 date: 2004/06/13 14:28:58; author: nobutaka; state: Exp; lines: +1 -1 Turn off PARALLEL_MARK option in default config.
v. 1.33 date: 2004/05/27 14:12:49; author: nobutaka; state: Exp; lines: +14 -12 Use "on" and "off" instead of "yes" and "no" in OPTIONS. [1] Check WITHOUT_* knobs. [2] Use USE_GNOME=lthack. Fix PKGNAMESUFFIX recursion. Submitted by: kris [1] [2]
v. 1.32 date: 2004/05/24 14:54:56; author: nobutaka; state: Exp; lines: +26 -3 Add four knobs (WITH_THREADING, WITH_PARALLEL_MARK, WITH_REDIRECT and WITH_FULLDEBUG). Use OPTIONS. Fix a bug in leak detection. Submitted by: green
v. 1.31 date: 2004/05/05 12:47:25; author: arved; state: Exp; lines: +2 -2 Fix boehm-gc on amd64. Tested with: w3m Obtained from: NetBSD (via Marc Recht )
v. 1.30 date: 2004/03/14 06:16:12; author: ade; state: Exp; lines: +1 -1 Whoa there, boy, that's a mighty big commit y'all have there... Begin autotools sanitization sequence by requiring ports to explicitly specify which version of {libtool,autoconf,automake} they need, erasing the concept of a "system default". For ports-in-waiting: USE_LIBTOOL=YES -> USE_LIBTOOL_VER=13 USE_AUTOCONF=YES -> USE_AUTOCONF_VER=213 USE_AUTOMAKE=YES -> USE_AUTOMAKE_VER=14 Ports attempting to use the old style system after June 1st 2004 will be sorely disappointed.
v. 1.29 date: 2004/03/05 12:14:38; author: kris; state: Exp; lines: +7 -1 BROKEN on !i386 and !alpha: Does not compile
v. 1.28 date: 2003/07/06 05:59:13; author: nobutaka; state: Exp; lines: +1 -1 Update to 6.2.
v. 1.27 date: 2003/06/15 15:20:02; author: nobutaka; state: Exp; lines: +1 -2 Update to 6.2alpha6.
v. 1.26 date: 2003/05/05 13:42:53; author: nobutaka; state: Exp; lines: +1 -1 Link libstdc++ to unbreak build of the ports that depend on boehm-gc. Reported by: jmallett and kris
v. 1.25 date: 2003/04/30 12:56:46; author: nobutaka; state: Exp; lines: +2 -1 Install gc_cpp.h and gc_allocator.h to the correct location. Submitted by: des
v. 1.24 date: 2003/04/20 13:57:29; author: nobutaka; state: Exp; lines: +1 -4 Update to 6.2alpha4.
v. 1.23 date: 2003/02/25 12:45:06; author: nobutaka; state: Exp; lines: +2 -3 Update to 6.2alpha3.
v. 1.22 date: 2003/02/22 14:25:34; author: nobutaka; state: Exp; lines: +1 -0 De-pkg-comment.
v. 1.21 date: 2003/01/04 16:48:55; author: nobutaka; state: Exp; lines: +3 -0 1 Install gc_backptr.h. 2 Use libtool. Submitted by: Søren Vrist [1], sobomax [2]
v. 1.20 date: 2002/11/17 14:25:07; author: nobutaka; state: Exp; lines: +3 -6 Update to 6.1. Get rid of ONLY_FOR_ARCHS=i386. Take maintainership.
v. 1.19 date: 2002/11/07 03:10:44; author: adamw; state: Exp; lines: +0 -2 Fix PORTCOMMENTs that were killing INDEX builds. 105 pointy hats to: me Approved by: pat
v. 1.18 date: 2002/11/06 22:44:22; author: adamw; state: Exp; lines: +2 -0 Use PORTCOMMENT in the Makefile, and whack the pkg-comment. Approved by: pat
v. 1.17 date: 2002/06/25 18:36:36; author: ijliao; state: Exp; lines: +2 -1 Replace ${PERL} with ${REINPLACE_CMD} PR: 39842 Submitted by: Oliver Braun
v. 1.16 date: 2002/02/02 04:48:26; author: pat; state: Exp; lines: +5 -1 Make prefix safe. PR: 34528 Submitted by: Kazutoshi Kubota
v. 1.15 date: 2001/10/11 12:08:58; author: ijliao; state: Exp; lines: +11 -10 Update devel/boehm-gc port to 6.0. Since I do not know whether non-i386 platforms are supported, ONLY_FOR_ARCHS=i386 is remained in Makefile. Changes from previous version: * Install shared library. * Do not create and install libleak. Leak detection mode can be initiated at run-time by setting GC_find_leak. PR: 31125 Submitted by: MANTANI Nobutaka
v. 1.14 date: 2001/04/02 08:30:37; author: mharo; state: Exp; lines: +1 -3 remove deprecated fetch options from FETCH_BEFORE_ARGS
v. 1.13 date: 2001/01/10 14:02:12; author: sf; state: Exp; lines: +2 -1 unbreak for -CURRENT.
v. 1.12 date: 2001/01/03 20:17:06; author: sf; state: Exp; lines: +7 -7 update to 5.3. PR: 21774 Submitted by: Mikhail Teterin maintainer is unreachable, temporarily? Recipient address: mmcg@cs.monash.edu.au Reason: Remote SMTP server has rejected address Diagnostic code: smtp;550 ... User unknown Remote system: dns;mail2.csse.monash.edu.au (TCP|130.194.1.8|4557|130.194.226.190|25)
v. 1.11 date: 2000/04/30 19:13:48; author: steve; state: Exp; lines: +3 -1 Mark as being only i386. PR: 18237 Submitted by: Christian Weisgerber
v. 1.10 date: 2000/04/11 21:27:12; author: mharo; state: Exp; lines: +4 -4 PORTNAME/PORTVERSION update
v. 1.9 date: 2000/04/01 04:44:03; author: mharo; state: Exp; lines: +3 -3 update to gc5.0alpha4. PR: 17456 Submitted by: nnd@mail.nsk.ru
v. 1.8 date: 1999/11/01 00:42:52; author: steve; state: Exp; lines: +6 -5 Update to version 5.0a3. PR: 14573 Submitted by: MANTANI Nobutaka
v. 1.7 date: 1999/08/25 05:47:27; author: obrien; state: Exp; lines: +1 -1 Change Id->FreeBSD.
v. 1.6 date: 1999/08/01 03:02:58; author: steve; state: Exp; lines: +3 -3 Update to version 4.14. PR: 12762 Submitted by: Aaron Smith
v. 1.5 date: 1999/06/12 21:14:30; author: fenner; state: Exp; lines: +2 -3 Fix URL at sgi.com . Remove ftp.parc.xerox.com; it is no longer being updated.
v. 1.4 date: 1999/01/10 20:12:06; author: steve; state: Exp; lines: +2 -2 Unbreak for ELF. Also add FETCH_BEFORE_ARGS=-b so we can get the distfile. Submitted by: Faried Nawaz
v. 1.3 date: 1998/10/12 15:47:43; author: jseger; state: Exp; lines: +3 -1 Mark BROKEN for ELF: ===> Installing for boehm-gc-4.12 /bin/cp fbsd-libgc.a libgc.a /bin/cp: fbsd-libgc.a: No such file or directory *** Error code 1
v. 1.2 date: 1998/04/20 11:53:25; author: obrien; state: Exp; lines: +5 -4 Upgrade to version 4.12
v. 1.1 date: 1996/11/16 01:51:25; author: jdp; state: Exp; New port "boehm-gc". It is a drop-in garbage collector for C and C++ programs. Submitted by: Mike McGaughey =============================================================================



Main menu

FreeBSD

Program categories

Freebsd accessibility
Freebsd archivers
Freebsd astro
Freebsd audio
Freebsd benchmarks
Freebsd biology
Freebsd cad
Freebsd chinese
Freebsd comms
Freebsd converters
Freebsd databases
Freebsd deskutils
Freebsd devel
Freebsd dns
Freebsd editors
Freebsd emulators
Freebsd finance
Freebsd french
Freebsd ftp
Freebsd games
Freebsd german
Freebsd graphics
Freebsd hebrew
Freebsd hungarian
Freebsd irc
Freebsd japanese
Freebsd java
Freebsd korean
Freebsd lang
Freebsd mail
Freebsd math
Freebsd mbone
Freebsd misc
Freebsd multimedia
Freebsd net
Freebsd net-im
Freebsd net-mgmt
Freebsd net-p2p
Freebsd news
Freebsd palm
Freebsd polish
Freebsd ports-mgmt
Freebsd portuguese
Freebsd print
Freebsd russian
Freebsd science
Freebsd security
Freebsd shells
Freebsd sysutils
Freebsd textproc
Freebsd ukrainian
Freebsd vietnamese
Freebsd www
Freebsd x11
Freebsd x11-clocks
Freebsd x11-drivers
Freebsd x11-fm
Freebsd x11-fonts
Freebsd x11-servers
Freebsd x11-themes
Freebsd x11-toolkits
Freebsd x11-wm