PM95276: SYMBOL DSNHLIIR UNRESOLVED COMPILER MESSAGE

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Consider the following testcase db2test2.c:
    
    #pragma linkage(DSNALI, OS)
    #include <stdio.h>
    #include <stdlib.h>
    #include <sql.h>
    #include <sqlstate.h>
    #include "dsntiar.h"
    
    #define BUF_SIZE 2000
    
    int main(int argc, char **argv)
    {
      char sql_error_log[BUF_SIZE];
      EXEC SQL INCLUDE SQLCA;
      EXEC SQL BEGIN DECLARE SECTION;
       int pid;
      EXEC SQL END DECLARE SECTION;
      EXEC SQL SELECT 1 INTO :pid FROM SYSIBM.SYSDUMMY1;
      CHECK_ERROR(&sqlca, sql_error_log);
      printf("pid = %d\n", pid);
      return 0;
    }
    
    Compile as:
    
    c89 -v -Wc,"sql(ATTACH(RRSAF)), dbrmlib('ROOT.DBRM(DB2TEST2)'),
    langlvl(extended)" "-I//'DSNA10.SDSNC.H'" -c db2test2.c
    
    The link step:
    
    c89 -v  -o db2test2 db2test2.o "-l//'DSNA10.SDSNLOAD'"
    
    triggers the compiler error:
    
    IEW2456E 9207 SYMBOL DSNHLIiR UNRESOLVED.  MEMBER COULD NOT BE
    INCLUDED  FROM THE DESIGNATED CALL LIBRARY.
    
    FSUM3065 The LINKEDIT step ended with return code 8.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users with embedded SQL in a C source.       *
    ****************************************************************
    * PROBLEM DESCRIPTION: C compiler emits an incorrect symbol    *
    *                      name resulting in unresolved symbol     *
    *                      DSNHLIiR error at link time.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Apply provided service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM95276

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    780

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-08-16

  • Closed date

    2013-08-29

  • Last modified date

    2013-12-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    PI07437

Modules/Macros

  •    CCNEP
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R780 PSY UK97145

       UP13/09/21 P F309

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.



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

z/OS family

Software version:

7.8

Operating system(s):

z/OS

Reference #:

PM95276

Modified date:

2013-12-04

Translate my page

Machine Translation

Content navigation