A fix is available
APAR status
Closed as program error.
Error description
When a application including stdio.h and using external variable optind is compiled with STRICT, FLAG(I) options results in CCN3304 information message. For example CCN3304 No function prototype given for "__Opnd". Similar issue is also there with other prototypes that do not satisfy strict standard for prototypes (__Oprg() etc). __Opnd() is declared as int *__Opnd(); And it should have been int *__Opnd(void); The -V options also makes these messages to Warning level.
Local fix
Ignore. This does not stop from compiler generating the object or cause any link errors.
Problem summary
**************************************************************** * USERS AFFECTED: C applications that include either stdio.h * * or unistd.h headers in order to use any of * * the following external variables: * * optarg, optind, opterr, or optopt * * as shared variables (by defining either * * _SHARE_EXT_VARS or _SHR_OPTARG, * * _SHR_OPTIND, _SHR_OPTERR or _SHR_OPTOPT * * for the respective variables). * **************************************************************** * PROBLEM DESCRIPTION: Users may receive MSGCCN3304 at * * compile time indicating an invalid * * prototype specification - this can be * * an informational or warning message. * **************************************************************** * RECOMMENDATION: * **************************************************************** See Problem Description.
Problem conclusion
The prototypes for these variables are now defined with a void pointer to avoid this message.
Temporary fix
Comments
APAR Information
APAR number
PK75940
Reported component name
C/C++ FOR MVS
Reported component ID
56551210A
Reported release
740
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2008-11-18
Closed date
2009-01-29
Last modified date
2009-03-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK43589 UK43590
Modules/Macros
EDC4H02A EDC4H032
Fix information
Fixed component name
LE C LIBRARY
Fixed component ID
568819805
Applicable component levels
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVSBD","label":"Runtime"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"740","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"740","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":null,"label":null},"Product":{"code":"SG19O","label":"APARs - MVS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"740","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
03 March 2009