Return-Path: X-Original-To: apmail-stdcxx-issues-archive@minotaur.apache.org Delivered-To: apmail-stdcxx-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7AD33DCC3 for ; Sun, 23 Sep 2012 16:14:07 +0000 (UTC) Received: (qmail 44581 invoked by uid 500); 23 Sep 2012 16:14:07 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 44555 invoked by uid 500); 23 Sep 2012 16:14:07 -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 44546 invoked by uid 99); 23 Sep 2012 16:14:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Sep 2012 16:14:07 +0000 Date: Mon, 24 Sep 2012 03:14:07 +1100 (NCT) From: "Liviu Nicoara (JIRA)" To: issues@stdcxx.apache.org Message-ID: <1689220993.113911.1348416847429.JavaMail.jiratomcat@arcas> In-Reply-To: <1851869528.113897.1348415587417.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (STDCXX-1069) [Sun C++/Linux] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/STDCXX-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461451#comment-13461451 ] Liviu Nicoara commented on STDCXX-1069: --------------------------------------- The issue can be tracked down to the interaction between the definition of _XOPEN_SOURCE in src/setlocale.cpp and util/path.cpp, the system headers, and Solaris Studio C . It seems that the original purpose for the definitions has been lost because both S_IFDIR and symlink are defined and declared, respectively, on modern Linux. Moreover, it seems that the original definition of _XOPEN_SOURCE was incorrect, without a value. I propose we remove the two blocks -- see the patch. > [Sun C++/Linux] > --------------- > > Key: STDCXX-1069 > URL: https://issues.apache.org/jira/browse/STDCXX-1069 > Project: C++ Standard Library > Issue Type: Bug > Components: Build and Installation > Affects Versions: 4.2.x > Environment: $ uname -a; CC -V > Linux behemoth 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64 AMD Opteron(tm) Processor 6134 AuthenticAMD GNU/Linux > CC: Sun C++ 5.12 Linux_i386 2011/11/16 > Reporter: Liviu Nicoara > Priority: Minor > Labels: AMD64, Linux, Solaris, Studio, Sun, _XOPEN_SOURCE, x86_64 > Fix For: 4.2.x, 4.3.x, 5.0.0 > > Attachments: stdcxx-1069.patch > > Original Estimate: 1m > Remaining Estimate: 1m > > $ nice make -Clib setlocale.o > make: Entering directory `/12S-sunpro-5.12/lib' > generating dependencies for $(TOPDIR)/src/setlocale.cpp > CC -xM -mt -I/include -I/12S-sunpro-5.12/include -library=%none -O -m64 +w -errtags -erroff=hidef /src/setlocale.cpp > make: Leaving directory `/12S-sunpro-5.12/lib' > make: Entering directory `/12S-sunpro-5.12/lib' > CC -c -mt -I/include -I/12S-sunpro-5.12/include -library=%none -O -m64 +w -errtags -erroff=hidef /src/setlocale.cpp > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 92: Error, undefidenterr: fgetwc is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 93: Error, undefidenterr: fgetws is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 94: Error, undefidenterr: fputwc is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 95: Error, undefidenterr: fputws is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 96: Error, undefidenterr: getwc is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 97: Error, undefidenterr: getwchar is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 98: Error, undefidenterr: putwc is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 99: Error, undefidenterr: putwchar is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 100: Error, undefidenterr: ungetwc is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 102: Error, undefidenterr: wcsftime is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 103: Error, undefidenterr: wcstod is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 104: Error, undefidenterr: wcstol is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 105: Error, undefidenterr: wcstoul is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 106: Error, undefidenterr: wcscpy is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 107: Error, undefidenterr: wcsncpy is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 108: Error, undefidenterr: wcscat is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 109: Error, undefidenterr: wcsncat is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 110: Error, undefidenterr: wcscmp is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 111: Error, undefidenterr: wcsncmp is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 112: Error, undefidenterr: wcscoll is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 113: Error, undefidenterr: wcsxfrm is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 114: Error, undefidenterr: wcschr is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 115: Error, undefidenterr: wcscspn is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 116: Error, undefidenterr: wcslen is not defined. > "/opt/sunpro/12_3/prod/include/cc/wchar.h", line 117: Error, undefidenterr: wcspbrk is not defined. > Compilation aborted, too many Error messages. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira