You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Liviu Nicoara (JIRA)" <ji...@apache.org> on 2012/09/23 18:14:07 UTC

[jira] [Commented] (STDCXX-1069) [Sun C++/Linux]

    [ 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 `<builddir>/12S-sunpro-5.12/lib'
> generating dependencies for $(TOPDIR)/src/setlocale.cpp
> CC -xM -mt -I<builddir>/include -I<builddir>/12S-sunpro-5.12/include  -library=%none -O  -m64 +w -errtags -erroff=hidef   <builddir>/src/setlocale.cpp
> make: Leaving directory `<builddir>/12S-sunpro-5.12/lib'
> make: Entering directory `<builddir>/12S-sunpro-5.12/lib'
> CC -c -mt -I<builddir>/include -I<builddir>/12S-sunpro-5.12/include  -library=%none -O  -m64 +w -errtags -erroff=hidef    <builddir>/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