Fixes are available
November 2009 PTF for XL C/C++ for AIX, V10.1
October 2010 PTF for XL C/C++ for AIX, V10.1
October 2010 PTF for XL C for AIX, V10.1
May 2012 PTF for XL C/C++ for AIX, V10.1
January 2013 PTF for XL C for AIX, V10.1
January 2013 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 18 (July 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 19 (October 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 21 (October 2015 PTF) for 10.1
XL C for AIX Fix Pack 21 (October 2015 PTF) for 10.1
August 2009 PTF for XL C for AIX, V10.1
August 2009 PTF for XL C/C++ for AIX, V10.1
November 2009 PTF for XL C for AIX, V10.1
March 2010 PTF for XL C for AIX, V10.1
March 2010 PTF for XL C/C++ for AIX, V10.1
April 2010 PTF for XL C for AIX, V10.1
April 2010 PTF for XL C/C++ for AIX, V10.1
June 2010 PTF for XL C/C++ for AIX, V10.1
June 2010 PTF for XL C for AIX, V10.1
February 2011 PTF for XL C for AIX, V10.1
May 2011 PTF for XL C/C++ for AIX, V10.1
May 2011 PTF for XL C for AIX, V10.1
October 2011 PTF for XL C/C++ for AIX, V10.1
October 2011 PTF for XL C for AIX, V10.1
February 2012 PTF for XL C for AIX, V10.1
February 2012 PTF for XL C/C++ for AIX, V10.1
May 2012 PTF for XL C for AIX, V10.1
September 2012 PTF for XL C for AIX, V10.1
September 2012 PTF for XL C/C++ for AIX, V10.1
XL C for AIX Fix Pack 18 (July 2013 PTF) for 10.1
XL C for AIX Fix Pack 19 (October 2013 PTF) for 10.1
XL C for AIX Fix Pack 20 (October 2014 PTF) for 10.1
XL C/C++ for AIX Fix Pack 20 (October 2014 PTF) for 10.1
APAR status
Closed as program error.
Error description
The following perl script will generate a cpp file that contains 6500 pragma comment strings with each 17 characters long. <perl> #!/usr/bin/perl -w use strict; open(COMMENT_SOURCE, ">comment.cpp"); for(my $i=0; $i<6_500; ++$i) { print COMMENT_SOURCE qq{#pragma comment(user, "This is comment $i")\n}; } print COMMENT_SOURCE <<MAIN; int main() { return 0; } MAIN </perl> The generated comment.cpp looks like this: #pragma comment(user, "This is comment 0") #pragma comment(user, "This is comment 1") ..... int main() {return 0;} Once it's executed, building comment.cpp $xlC comment.cpp ld: 0711-950 ERROR: A name is too long. Names longer than 65535 characters are truncated. The name begins: This is comment 0This is comment 1This is com
Local fix
N/A
Problem summary
USER AFFECTED: Users of #pragma comment PROBLEM DESCRIPTION: "ld: 0711-950 ERROR: A name is too long. Names longer than 65535 characters are truncated. The name begins: This is comment 0This is comment 1This is com" pragam comment user concatenates the strings together and in this case hit the limit for the size of a name for a single symbol.
Problem conclusion
Create another comment symbol to handle the overflow, i.e. made the compiler always generate linker acceptable symbols for any size name string
Temporary fix
Comments
APAR Information
APAR number
IZ52400
Reported component name
XL C AIX
Reported component ID
5724U8000
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-06-02
Closed date
2009-07-30
Last modified date
2009-08-27
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
XL C AIX
Fixed component ID
5724U8000
Applicable component levels
Document Information
Modified date:
04 October 2021