From: Rene Z. <r.z...@fr...> - 2012-09-26 20:45:16
|
Am Mittwoch, 26. September 2012, 22:23:35 schrieben Sie: > Am 26.09.2012 um 22:09 schrieb Rene Zaumseil <r.z...@fr...>: > > Hello, > > > > I tried today to compile tcl8.6 on the following machine: > > > > % uname -a > > IRIX64 <hostname> 6.5 04101931 IP35 > > % gcc --version > > 3.0.4 > > > > The compiler could not use the TCL_FORMAT_PRINTF(a,b) macro in > > tclDecls.h. > > > > The problem is in generic/tcl.h line 15: > > > > #if defined(__GNUC__) && (__GNUC__ > 2) > > # define TCL_FORMAT_PRINTF(a,b) __attribute__ ((__format__ (__printf__, > > a, b))) #else > > # define TCL_FORMAT_PRINTF(a,b) > > #endif > > > > > > Any ideas? > > gcc 3.0.4 docs claim this should be supported: > http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_5.html#SEC94 > > If thats not the case on IRIX, you should add a guard to that clause so the > simple TCL_FORMAT_PRINTF(a,b) version is used, the __format__ stuff just > does some extra security checks to detect bad printf usage patterns. Yeah, I could do it. But should it not come out of the box? Regards rene |