devel/boehm-gc 8.2.12 NetBSD
Garbage collection and memory leak detection for C and C++
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Categories
- devel
- Package size
- 249.4 KiB, 1105.0 KiB installed
Description
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.
PS: garbage collection is addictive.
In the other systems
The newest version among them is 8.2.12, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| NetBSD | devel/boehm-gc | 8.2.12 newest | none known | - | [email protected] | - |
| FreeBSD | devel/boehm-gc | 8.2.10 | none known | - | [email protected] | - |
| OpenBSD | devel/boehm-gc | 8.2.12 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| DragonFly | devel/boehm-gc | 8.2.8 | none known | - | [email protected] | - |
| MidnightBSD | devel/boehm-gc | 8.2.12 newest | no data | - | [email protected] | - |
| HardenedBSD | devel/boehm-gc | 8.2.10 | no data | - | [email protected] | - |
| GhostBSD | devel/boehm-gc | 8.2.10 | no data | - | [email protected] | - |
| OPNsense | devel/boehm-gc | 8.2.10 | no data | - | [email protected] | - |
Install
Binary package:
pkgin install boehm-gc
From pkgsrc:
cd /usr/pkgsrc/devel/boehm-gc && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 8.2.12 |
| NetBSD 10.1 aarch64 | 8.2.12 |
| SmartOS / illumos x86_64 | 8.2.12 |
| macOS 15 arm64 | 8.2.12 |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.