HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0785 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 0785.


Report 0785 Actions


    Problem Report Number 0785
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0300
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-04-27 08:00
    Product Standard Commands and Utilities V3 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.0.1
    Test Identification POSIX.annex/c89 1006, 1007, 1010, 1011
    Problem Summary TSD4C.00211 This request claims that an implementation need not support execution of executables c89 produces for all programming environments the implementation claims support for.
    Problem Text

    These tests compile a program that tests the int, long, pointer and off_t size
    and return those values to the main testcase. The test programs is compiled
    using the values of the XBS5* macros. However, the XBS5* macro only determine
    compilation environments not execution environments. From getconf on page 380,

    "OPTIONS ....
    getconf -v _XBS5_ILP32_OFF32 ...
    will determine values for configuration variables corresponding
    to the XBS5_ILP32_OFF32 compilation environment specified in c89,
    EXTENDED DESCRIPTION."

    While it is possible to compile _XBS5_LP64_OFF64 and _XBS5_LP64_OFF64
    programs on our _XBS5_ILP32_OFF32 systems, they cannot be executed on
    these systems.

    Test Output
    ***********************************************************************
    /tset/POSIX.annexA/c89/c89.ex 1 Unresolved


    Test Information:
    Assertion #1006 (C):
    SETUP: c89 $(getconf XBS5_LP64_OFF64_CFLAGS) $(getconf XBS5_
    <LC> LP64_OFF64_LDFLAGS) $(getconf XBS5_LP64_OFF64_LIBS) s
    <LC> izes.c -o sizes.exe
    Command failed: './sizes.exe > data_1006.dat'

    ***********************************************************************


    ***********************************************************************
    /tset/POSIX.annexA/c89/c89.ex 1 Unresolved


    Test Information:
    Assertion #1007 (C):
    SETUP: c89 $(getconf XBS5_LPBIG_OFFBIG_CFLAGS) $(getconf XBS
    <LC> 5_LPBIG_OFFBIG_LDFLAGS) $(getconf XBS5_LPBIG_OFFBIG_L
    <LC> IBS) sizes.c -o sizes.exe
    Command failed: './sizes.exe > data_1007.dat'

    ***********************************************************************


    ***********************************************************************
    /tset/POSIX.annexA/c89/c89.ex 1 Unresolved


    Test Information:
    Assertion #1010 (C):
    TEST: c89 $(getconf XBS5_LP64_OFF64_CFLAGS) $(getconf XBS5_L
    <LC> P64_OFF64_LDFLAGS) $(getconf XBS5_LP64_OFF64_LIBS) si
    <LC> zes.c -o sizes.exe
    Command failed: './sizes.exe > data_1010.dat'

    ***********************************************************************


    ***********************************************************************
    /tset/POSIX.annexA/c89/c89.ex 1 Unresolved

    Test Information:
    Assertion #1011 (C):
    TEST: c89 $(getconf XBS5_LPBIG_OFFBIG_CFLAGS) $(getconf XBS5
    <LC> _LPBIG_OFFBIG_LDFLAGS) $(getconf XBS5_LPBIG_OFFBIG_LI
    <LC> BS) sizes.c -o sizes.exe
    Command failed: './sizes.exe > data_1011.dat'

    ***********************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.

    Although it could be stated more clearly we believe the spec authors
    intend implementations only state they support "Programming Environments"
    that produce programs which may be executed on the implementation. It
    is not enough that the implementation merely generate a binary which
    it claims can be run elsewhere.

    Our basis for this belief lies in the fact that c89 must be capable of
    compiling "executable files" for all programming environments the
    implementation supports. The XBD definition of executable file is
    as follows

    A regular file acceptable as a new process image file by the
    equivalent of the exec family of functions, ...

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    This request should go for a 14 day review.

    Review Type Expert Group Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    The Base WG agrees that the waiver should be granted.

    The description of _XBS5_ILP32_OFF32 in XCU5's description of
    getconf relates to the unistd.h definition from XSH5 which states
    that:

    "Implementation provides a C-language compilation
    environment with 32-bit int, long, pointer and off_t types.i"

    Note that this describes the "compilation environment".
    It does not describe the execution environment.
    The descriptions of _XBS5_ILP32_OFFBIG,
    _XBS5_LP64_OFFBIG, and _XBS5_LP64_OFF64 are similar.

    The Base WG recommends that in a future issue/revision of the
    specification that some way be added to
    determine what execution environments are supported as well as what
    compilation environments are supported.
    It is recommend that consideration be given to the
    addition of the following symbols to be added to <unistd.h> and made
    available to applications through getconf and sysconf():

    _XBS_ILP32_OFF32_EXEC
    Implementation provides an execution environment to run
    applications built in the _XBS_ILP32_OFF32 C-language
    compilation environment.

    _XBS_ILP32_OFFBIG_EXEC
    Implementation provides an execution environment to run
    applications built in the _XBS_ILP32_OFFBIG C-language
    compilation environment.


    _XBS_LP64_OFFBIG_EXEC
    Implementation provides an execution environment to run
    applications built in the _XBS_LP64_OFFBIG C-language
    compilation environment.

    _XBS_LP64_OFF64_EXEC
    Implementation provides an execution environment to run
    applications built in the _XBS_LP64_OFF64 C-language
    compilation environment.

    Until this is done, the Base WG recommends addition of a question to
    the CSQ to ask which execution environments are
    supported on the System Under Test. Lastly the Base WG recommends that
    a future revision address how to allow an application to
    determine which compilation and execution environments are the default.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority