cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -D_REENTRANT -mt -O2 -Wl,-E -I/usr/local/include -I/usr/include -c genders.c -DPIC -o .libs/genders_la-genders.o "genders.c", line 527: error #2029: expected an expression query ?: "(all)", genders_errormsg(gh)); ^
"genders.c", line 527: error #2053: expected a ":" query ?: "(all)", genders_errormsg(gh)); ^
"genders.c", line 536: error #2029: expected an expression query ?: "(all)", genders_errormsg(gh)); ^
"genders.c", line 536: error #2053: expected a ":" query ?: "(all)", genders_errormsg(gh)); ^
4 errors detected in the compilation of "genders.c".
The compiler used is the HP C/aC++ B3910B A.06.25.02 [Nov 25 2010]
Comment #1
Posted on Apr 20, 2011 by Happy OxHm, maybe the "?:" construct is a gcc-ism or something. Can you try the attached patch?
- genders.patch 903
Comment #2
Posted on Apr 20, 2011 by Happy Ox(No comment was entered for this change.)
Comment #3
Posted on Apr 20, 2011 by Happy OxOk, I verified that the omission of the middle operand in the conditional expression is a gcc-ism. I'll remove the use of it from pdsh code. Thanks for catching this. Once you verify that the patch fixes the issue, I'll commit the fix.
Comment #4
Posted on Apr 20, 2011 by Massive GiraffeI confirmed that this patch allows genders.c to successfully compile. Thanks for your fast response!
Comment #5
Posted on Apr 22, 2011 by Happy OxThis issue was closed by revision r1320.
Status: Fixed
Labels:
Type-Defect
Priority-Medium