bin/59552: __cxa_atexit

Mikhail Teterin mi+kde at
Sun Aug 5 16:10:47 UTC 2007

Should not the new function(s) be declared in some header file?

On FreeBSD-6.2 at the moment the only header, which declares __cxa_atexit(), 
is cxxabi.h (in /usr/include/c++/3.4/cxxabi.h), where the function is 
declared inside the __cxxabiv1 namespace...

For a C-program finding the declaration is quite difficult too.

A number of ports install shared libraries, which call atexit(). This leads to 
crashes, when the shared library is dlclose-ed. To correct them cleanly, 
port-maintainers need documentation (perhaps inside atexit(3)?). Currently 
`make -k cxa' shows nothing.


More information about the freebsd-standards mailing list