You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Andrew Black (JIRA)" <ji...@apache.org> on 2006/01/09 19:45:20 UTC

[jira] Created: (STDCXX-106) [Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined

[Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined
--------------------------------------------------------------------------------------------

         Key: STDCXX-106
         URL: http://issues.apache.org/jira/browse/STDCXX-106
     Project: STDCXX
        Type: Bug
  Components: Build  
 Environment: Mac OS X 10.2.8/Darwin 6.8 with GCC 3.1
    Reporter: Andrew Black


The copy of unistd.h (and sys/unistd.h) on this instalation defines neither _SC_PAGE_SIZE nor _SC_PAGESIZE, resulting in src/memattr.cpp failing to build.

It likely will be necessary to determine if there is a different method that will return the desired information.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (STDCXX-106) [Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-106?page=all ]
     
Martin Sebor resolved STDCXX-106:
---------------------------------

    Fix Version: 4.2
     Resolution: Fixed

Resolved with the referenced change.

> [Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined
> --------------------------------------------------------------------------------------------
>
>          Key: STDCXX-106
>          URL: http://issues.apache.org/jira/browse/STDCXX-106
>      Project: C++ Standard Library
>         Type: Bug

>   Components: Build
>  Environment: Mac OS X 10.2.8/Darwin 6.8 with GCC 3.1
>     Reporter: Andrew Black
>     Assignee: Martin Sebor
>      Fix For: 4.2

>
> The copy of unistd.h (and sys/unistd.h) on this instalation defines neither _SC_PAGE_SIZE nor _SC_PAGESIZE, resulting in src/memattr.cpp failing to build.
> It likely will be necessary to determine if there is a different method that will return the desired information.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (STDCXX-106) [Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-106?page=all ]

Martin Sebor reassigned STDCXX-106:
-----------------------------------

    Assign To: Martin Sebor

> [Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined
> --------------------------------------------------------------------------------------------
>
>          Key: STDCXX-106
>          URL: http://issues.apache.org/jira/browse/STDCXX-106
>      Project: STDCXX
>         Type: Bug
>   Components: Build
>  Environment: Mac OS X 10.2.8/Darwin 6.8 with GCC 3.1
>     Reporter: Andrew Black
>     Assignee: Martin Sebor

>
> The copy of unistd.h (and sys/unistd.h) on this instalation defines neither _SC_PAGE_SIZE nor _SC_PAGESIZE, resulting in src/memattr.cpp failing to build.
> It likely will be necessary to determine if there is a different method that will return the desired information.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (STDCXX-106) [Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/STDCXX-106?page=comments#action_12362235 ] 

Martin Sebor commented on STDCXX-106:
-------------------------------------

Sure enough, there's no such macro in the BSD manual:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/sysconf.3.html
There is getpagesize(), though, so we should use it instead:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/getpagesize.3.html

> [Mac OS X 10.2.8] src/memattr.cpp fails to build if _SC_PAGE_SIZE and _SC_PAGESIZE undefined
> --------------------------------------------------------------------------------------------
>
>          Key: STDCXX-106
>          URL: http://issues.apache.org/jira/browse/STDCXX-106
>      Project: STDCXX
>         Type: Bug
>   Components: Build
>  Environment: Mac OS X 10.2.8/Darwin 6.8 with GCC 3.1
>     Reporter: Andrew Black

>
> The copy of unistd.h (and sys/unistd.h) on this instalation defines neither _SC_PAGE_SIZE nor _SC_PAGESIZE, resulting in src/memattr.cpp failing to build.
> It likely will be necessary to determine if there is a different method that will return the desired information.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira