home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
14.10.xC10 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT39272 Status: Closed

COMPILING ESQL/C WITH -W OPTION LEADS TO "ERROR: MISSING INITIALIZER FOR
FIELD"

product:
IBM CSDK / 5724C2381 / 450 - CSDK 4.50
Problem description:
When option -W for compiler is used, an error will be generated:

Program:

int main(int argc, char ** argv)
{
    (void) argc;
    (void) argv;
    EXEC SQL BEGIN DECLARE SECTION;
    int value = 100;
    const char * name = "cu1";
    EXEC SQL END DECLARE SECTION;
    EXEC SQL FETCH ABSOLUTE :value :name;
    EXEC SQL FETCH RELATIVE :value :name;
    return 0;
}

export INFORMIXC="cc -W  -Werror"

/opt/informix/IBM/4.50.FC7/incl/esql/sqlda.h:50:11: note:
â ˜sqlilongdataâ ™ declared here
     char *sqlilongdata;  /* for data field beyond 32K */
           ^
x.ec:11:3: error: missing initializer for field â ˜reservedâ ™
of â ˜ifx_sqlda_tâ ™ [-Werror=missing-field-initializers]
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Users of Informix Client SDK prior to version 4.50.FC8.      *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Informix Client SDK 4.50.FC8.                     *
****************************************************************
Local Fix:
Solution
Workaround
****************************************************************
* USERS AFFECTED:                                              *
* Users of Informix Client SDK prior to version 4.50.FC8.      *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Informix Client SDK 4.50.FC8.                     *
****************************************************************
Comment
Fixed in Informix Client SDK 4.50.FC8.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
01.12.2021
07.04.2022
07.04.2022
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)