[MacPorts] #20507: gmp.h uses possibly undefined __STDC_VERSION__
#20507: gmp.h uses possibly undefined __STDC_VERSION__ --------------------------------+------------------------------------------- Reporter: stephen@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: gmp --------------------------------+------------------------------------------- This causes GCC 4.0.1 (build 5490), which is either the stock GCC in Mac OS X 10.5.7 or the GCC supplied by Xcode, to spew a warning. This is due to your patch-gmp-h.in.diff. Since I do not understand the point of this patch, I decline to try to solve the problem. -- Ticket URL: <http://trac.macports.org/ticket/20507> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20507: gmp.h uses possibly undefined __STDC_VERSION__ --------------------------------+------------------------------------------- Reporter: stephen@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: gmp --------------------------------+------------------------------------------- Changes (by mcalhoun@…): * owner: macports-tickets@… => mcalhoun@… * status: new => assigned Comment: The problem the patch tries to solve is described in comment 6 of #16634.[[BR]] What warning does XCode give? -- Ticket URL: <http://trac.macports.org/ticket/20507#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20507: gmp.h uses possibly undefined __STDC_VERSION__ --------------------------------+------------------------------------------- Reporter: stephen@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: gmp --------------------------------+------------------------------------------- Comment(by stephen@…): When building XEmacs 21.5.29, I get several score of these warnings: {{{ /Users/steve/src/XEmacs/sandbox/src/number-gmp.h:43, from /Users/steve/src/XEmacs/sandbox/src/number.h:62, from /Users/steve/src/XEmacs/sandbox/src/lisp.h:3874, from /Users/steve/src/XEmacs/sandbox/src/EmacsFrame.c:30: /opt/local/include/gmp.h:427:74: warning: "__STDC_VERSION__" is not defined }}} because "lisp.h" is included practically everywhere. Xcode is not involved, except that maybe it supplied this version of the compiler. -- Ticket URL: <http://trac.macports.org/ticket/20507#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20507: gmp.h uses possibly undefined __STDC_VERSION__ --------------------------------+------------------------------------------- Reporter: stephen@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: gmp --------------------------------+------------------------------------------- Comment(by vinc17@…): I think you could still add {{{&& defined __STDC_VERSION__}}} before {{{&& __STDC_VERSION__ >= 199901L}}} (I haven't tried, but this should make the warning disappear). -- Ticket URL: <http://trac.macports.org/ticket/20507#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20507: gmp.h uses possibly undefined __STDC_VERSION__ ---------------------------------+------------------------------------------ Reporter: stephen@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: gmp | ---------------------------------+------------------------------------------ Changes (by mcalhoun@…): * status: assigned => closed * resolution: => fixed Comment: Should be fixed in r54734. -- Ticket URL: <http://trac.macports.org/ticket/20507#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20507: gmp.h uses possibly undefined __STDC_VERSION__ ---------------------------------+------------------------------------------ Reporter: stephen@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: gmp | ---------------------------------+------------------------------------------ Comment(by stephen@…): Yes, that suppresses the warnings, as expected. Note that what I didn't understand was how the magic number 5465 was chosen, and therefore whether simply suppressing the warning or changing the build number was appropriate. -- Ticket URL: <http://trac.macports.org/ticket/20507#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts