From owner-freebsd-standards@FreeBSD.ORG Sun Aug 5 16:10:47 2007 Return-Path: Delivered-To: standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D3D616A420 for ; Sun, 5 Aug 2007 16:10:47 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 41F8013C45D for ; Sun, 5 Aug 2007 16:10:46 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.1/8.14.1) with ESMTP id l75Fa0hF020102 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 5 Aug 2007 11:36:00 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.1/8.14.1/Submit) id l75FZwle020101; Sun, 5 Aug 2007 11:35:58 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: bug-followup@freebsd.org, bhughes@trolltech.com Date: Sun, 5 Aug 2007 11:35:58 -0400 User-Agent: KMail/1.9.6 X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: standards@freebsd.org Subject: Re: bin/59552: __cxa_atexit X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2007 16:10:47 -0000 http://www.freebsd.org/cgi/query-pr.cgi?pr=59552 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. -mi From owner-freebsd-standards@FreeBSD.ORG Mon Aug 6 11:08:38 2007 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2024C16A5CC for ; Mon, 6 Aug 2007 11:08:38 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0F7F213C45A for ; Mon, 6 Aug 2007 11:08:38 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l76B8bju030030 for ; Mon, 6 Aug 2007 11:08:37 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l76B8ajn030026 for freebsd-standards@FreeBSD.org; Mon, 6 Aug 2007 11:08:36 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 6 Aug 2007 11:08:36 GMT Message-Id: <200708061108.l76B8ajn030026@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2007 11:08:38 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/25542 standards /bin/sh: null char in quoted string o kern/46239 standards posix semaphore implementation errors o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/82654 standards C99 long double math functions are missing o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY o stand/114910 standards getaddrinfo() fails to set ai_canonname 6 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/21519 standards sys/dir.h should be deprecated some more o bin/24390 standards Replacing old dir-symlinks when using /bin/ln s stand/24590 standards timezone function not compatible witn Single Unix Spec s kern/28260 standards UIO_MAXIOV needs to be made public s stand/36076 standards Implementation of POSIX fuser command o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings p stand/41576 standards POSIX compliance of ln(1) o stand/44425 standards getcwd() succeeds even if current dir has perm 000. o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/54833 standards [pcvt] more pcvt deficits o stand/54839 standards [pcvt] pcvt deficits p stand/55112 standards glob.h, glob_t's gl_pathc should be "size_t", not "int o stand/56476 standards cd9660 unicode support simple hack o stand/58676 standards grantpt(3) alters storage used by ptsname(3) s stand/62858 standards malloc(0) not C99 compliant s kern/64875 standards [libc] [patch] [feature request] add a system call: fd o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- o stand/66531 standards _gettemp uses a far smaller set of filenames than docu o stand/70813 standards [PATCH] ls(1) not Posix compliant o stand/72006 standards floating point formating in non-C locales o stand/79056 standards regex(3) regression tests a stand/80293 standards sysconf() does not support well-defined unistd values o stand/81287 standards [PATCH]: fingerd(8) might send a line not ending in CR o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/85080 standards output of long double subnormals (with printf) is wron o stand/92360 standards [headers] [patch] Missing TAB3 in kernel headers o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/96016 standards [headers] clock_getres et al should be in o stand/96236 standards [PATCH] [POSIX] sed.1 incorrectly describes a function p stand/99517 standards Missing SIGRTMIN and SIGRTMAX signals o stand/99960 standards [Patch] make(1): Add -p flag o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim o stand/104841 standards [libm] [patch] C99 long double square root. o stand/107561 standards [patch] Missing SUS function tcgetsid() o kern/114578 standards [libc] wide character printing using swprintf(dst, n, o stand/114633 standards /etc/rc.subr: line 511: omits a quotation mark: "force 38 problems total. From owner-freebsd-standards@FreeBSD.ORG Mon Aug 6 21:43:57 2007 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06F8E16A419 for ; Mon, 6 Aug 2007 21:43:57 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.freebsd.org (Postfix) with ESMTP id 6924613C45B for ; Mon, 6 Aug 2007 21:43:56 +0000 (UTC) (envelope-from mail@sysfault.org) Received: (qmail 9772 invoked from network); 6 Aug 2007 21:43:54 -0000 Received: from unknown (HELO medusa.sysfault.org) (936934@[89.182.31.17]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 6 Aug 2007 21:43:54 -0000 Received: from localhost ([127.0.0.1] helo=medusa.sysfault.org) by medusa.sysfault.org with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IIAOc-000Csw-AT for freebsd-standards@freebsd.org; Mon, 06 Aug 2007 23:45:51 +0200 Received: (from marcus@localhost) by medusa.sysfault.org (8.14.1/8.14.1/Submit) id l76LjnRm049533 for freebsd-standards@freebsd.org; Mon, 6 Aug 2007 23:45:49 +0200 (CEST) (envelope-from marcus) Date: Mon, 6 Aug 2007 23:45:49 +0200 From: Marcus von Appen To: freebsd-standards@freebsd.org Message-ID: <20070806214549.GA937@medusa.sysfault.org> Mail-Followup-To: freebsd-standards@freebsd.org References: <20070802084314.GB1159@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <20070802084314.GB1159@medusa.sysfault.org> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: cgraph POSIX compliant [was: Re: First rudimentary version of the cflow utility] X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2007 21:43:57 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, after spending some more time on the cgraph part, it is finished so far. The cgraph utility is POSIX compliant now and should produce correct flowgraphs for ANSI C source code. It can not process function definitions using the K&R style (how important is it to support K&R?) correctly, but produces more exact flowgraphs than GNU cflow (v1.2) and devel/cflow in a direct comparision (those cannot deal with K&R either, by the way ;-). Its -ACP flags are not implemented for now, all others (-CdirR) should work as documented in the manpage. I thought about using gcc -E for processing #include directives and macros, its output might however break the correct line information, so I guess it can not be used for POSIX compliant output (but as an enhancement) and also might confuse the user, if he looks for the matching line. Maybe the line information should be dropped if using the preprocessor. The latest version can downloaded from http://sysfault.org/freebsd/cflow-20070806.tar.gz. For those interested in its progress I recommend to check http://sysfault.org/freebsd/ from time to time for a new version or to send me a mail and I'll keep them up to date with the minor changes (of course outstanding news will be spammed to standards@). Feedback, suggestions and critics are welcome. Regards Marcus --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGt5aNo/JpszXavhwRAvv3AJ0Vy07bF0qX14N5GG+OLhe6U9Le2ACfTyZB 7KApGqR1g3Wl1BGzabmYrTg= =vX4H -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--