APAR status
Closed as program error.
Error description
In the attached file, you can see how the functions which carry out the Encode/Decode process in the auto generated code are duplicated if two ASN types (file2.asn) are based on a third ASN type (file1.asn). This kind of duplication, generates an error in compilation time. In the generated code (Attached FILE2t3asn.c) you see that the below functions are duplicated: t3asn_FILE2_trans_asn_to_t3_t3_FILE1NULLType (line 75 and 100) t3asn_FILE2_trans_t3_to_asn_t3_FILE1NULLType (line 169 and 183) It produces the below mentioned error when you try to do the Build it since there are two definitions for each function generated. Attached is the screenshot -Dibujo.bmp FILE2t3asn.c(103) : error C2084: function 't3rt_value_t t3asn_FILE2_trans_asn_to_t3_t3_FILE1NULLType(t3_FILE1NULLType *,t3rt_alloc_strategy_t,t3rt_context_t)' already has a body FILE2t3asn.c(185) : error C2084: function 'void t3asn_FILE2_trans_t3_to_asn_t3_FILE1NULLType(ASNUTIG *,t3rt_value_t,t3_FILE1NULLType *,t3rt_context_t)' already has a body Customer think that the problem appears when you import the type from File1 (attached project SynonymError.zip).On the other hand, the Build process is correctly executed if the type is defined into File2 (attached project SynonymOk.zip)
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** Generated code contains encode/decode functions multiple times resulting in compilation error
Problem conclusion
fixed in 3.3.0.6
Temporary fix
Comments
APAR Information
APAR number
PM58854
Reported component name
TLOGIC TESTER
Reported component ID
5724V70TE
Reported release
330
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-02-23
Closed date
2012-12-12
Last modified date
2012-12-12
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC TESTER
Fixed component ID
5724V70TE
Applicable component levels
R330 PSN
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYQJP","label":"Rational Systems Tester"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
12 December 2012