Return-Path: Delivered-To: apmail-stdcxx-issues-archive@minotaur.apache.org Received: (qmail 59867 invoked from network); 18 Jan 2010 01:01:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2010 01:01:31 -0000 Received: (qmail 21239 invoked by uid 500); 18 Jan 2010 01:01:31 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 21202 invoked by uid 500); 18 Jan 2010 01:01:31 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 21192 invoked by uid 99); 18 Jan 2010 01:01:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2010 01:01:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2010 01:01:29 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 91879234C4B3 for ; Sun, 17 Jan 2010 17:01:07 -0800 (PST) Message-ID: <1801402395.304541263776467594.JavaMail.jira@brutus.apache.org> Date: Mon, 18 Jan 2010 01:01:07 +0000 (UTC) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Created: (STDCXX-1045) [OpenSolaris] compilation errors on madvise MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [OpenSolaris] compilation errors on madvise ------------------------------------------- Key: STDCXX-1045 URL: https://issues.apache.org/jira/browse/STDCXX-1045 Project: C++ Standard Library Issue Type: Bug Components: Build and Installation Affects Versions: 4.2.1 Reporter: Martin Sebor Assignee: Martin Sebor Fix For: 4.2.2 >From Ben's email below it sounds as though we need a test for {{posix_madvise}} and use it in favor of alternatives such as {{madvise}} when it's available: -------- Original Message -------- Subject: madvise on Solaris Date: Fri, 18 Dec 2009 18:00:30 +0000 From: John Taylor To: msebor AT gmail.com [...] Anyway, I build stdcxx-4.2.1 on Solaris 10 and SXCE. I notice that {{madvise}} doesn't get recognized, due to how the function is defined. Not a problem. Opensolaris, and late versions of SXCE, have introduced a function wrapper called {{posix_madvise}}, which basically wraps the {{madvise}} function so that it's more palletable to the C++ compiler. In line 134 of {{src/memattr.cpp}}, there's a comment that I don't really understand, nor can I find any reference to the "unreliable" comment via google or stdcxx lists. {code} # ifdef _RWSTD_OS_SUNOS char dummy = '\0'; // on Solaris use mincore() instead of madvise() since // the latter is unreliable {code} I admit to not being a very experience c/c++ programmer, but from my read of the solaris man pages for {{mincore}} and {{madvise}}, I'm not entirely convinced that this is a better work around. Does anyone really know what this "unreliable" means? Would it be appropriate to "duplicate" Sun's wrapper for S10 and SXCE/OSOL which don't have {{posix_madvise}} (given it's CDDL license status) and use {{posix_madvise}} where approrpriate? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.