Fixes are available
October 2009 Update for XL C/C++ for Linux, V10.1
June 2011 Update for XL C/C++ for Linux, V10.1
XL C/C++ for Linux Fix Pack 8 (January 2014 Update) for 10.1
August 2010 Update for XL C/C++ for Linux, V10.1
January 2011 Update for XL C/C++ for Linux, V10.1
January 2012 Update for XL C/C++ for Linux, V10.1
July 2012 Update for XL C/C++ for Linux, V10.1
APAR status
Closed as program error.
Error description
New copyright information was added to some header files in V10.1 which included C++ style commenting. When the C compiler tries to compile these header files, it produces a compile time error message. ===== COMPILE COMMAND: cc_r -c -w test.c ===== TESTCASE: $cat test.c #include <demangle.h> int toto() { } ===== ACTUAL OUTPUT: $ /.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101//aix/soluti on/latest/bin/cc_r -c -w test.c "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 1.1: 1506-046 (S) Syntax error. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 2.4: 1506-166 (S) Definition of function Licensed requires parentheses. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 10.49: 1506-189 (S) Floating-point constant .101.aix is not valid. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 10.59: 1506-260 (S) Octal integer constant 081009 is not valid. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 11.10: 1506-260 (S) Octal integer constant 08 is not valid. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 11.13: 1506-189 (S) Floating-point constant 1.14.1.12 is not valid. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 120.10: 1506-045 (S) Undeclared identifier False. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 120.21: 1506-045 (S) Undeclared identifier True. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 120.30: 1506-277 (S) Syntax error: possible missing ';' or ','? "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 610.5: 1506-166 (S) Definition of function Boolean requires parentheses. "/.../torolab.ibm.com/fs/projects/vabld/run/vacpp/101/aix/soluti on/090510/usr/include/demangle.h", line 610.13: 1506-276 (S) Syntax error: possible missing '{'? $ ===== EXPECTED OUTPUT: Should not produce those error messages.
Local fix
You can use -qcpluscmt to have the C compiler accept C++ style comments as a workaround.
Problem summary
Any C (ie. 'cc', not 'c89') user who is trying to include our publically available demangle.h file will encounter this problem. A previous fix to the runtime replaced the existing C-style copyright with a newer copyright, which happened to use C++-style comments.
Problem conclusion
Reverted the comments back to C-style.
Temporary fix
Comments
APAR Information
APAR number
LI75163
Reported component name
XL C/C++ SLES10
Reported component ID
5724U8300
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-12-01
Closed date
2009-12-01
Last modified date
2009-12-01
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/C++ SLES10
Fixed component ID
5724U8300
Applicable component levels
RA10 PSN IZ53751
UP06/09/13
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
14 October 2021