After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744342 - error __STDC_VERSION__ is not defined when compiling
error __STDC_VERSION__ is not defined when compiling
Status: RESOLVED DUPLICATE of bug 744454
Product: yelp
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-11 17:16 UTC by Baptiste Mille-Mathias
Modified: 2015-02-14 10:36 UTC
See Also:
GNOME target: ---
GNOME version: 3.15/3.16



Description Baptiste Mille-Mathias 2015-02-11 17:16:06 UTC
I had the following error while compiling yelp today

In file included from yelp-debug.c:26:0:
yelp-debug.h:38:5: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 #if __STDC_VERSION__ < 199901L
     ^
yelp-debug.h:55:6: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 # if __STDC_VERSION__ < 199901L
      ^
cc1: all warnings being treated as errors
Makefile:597: recipe for target 'libyelp_la-yelp-debug.lo' failed
make[3]: *** [libyelp_la-yelp-debug.lo] Error 1
make[3]: *** Attente des tâches non terminées....
In file included from yelp-document.c:29:0:
yelp-debug.h:38:5: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 #if __STDC_VERSION__ < 199901L
     ^
yelp-debug.h:55:6: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 # if __STDC_VERSION__ < 199901L
      ^
In file included from yelp-docbook-document.c:37:0:
yelp-debug.h:38:5: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 #if __STDC_VERSION__ < 199901L
     ^
yelp-debug.h:55:6: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 # if __STDC_VERSION__ < 199901L
      ^
In file included from yelp-info-document.c:35:0:
yelp-debug.h:38:5: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 #if __STDC_VERSION__ < 199901L
     ^
yelp-debug.h:55:6: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 # if __STDC_VERSION__ < 199901L
      ^
In file included from yelp-info-parser.c:31:0:
yelp-debug.h:38:5: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 #if __STDC_VERSION__ < 199901L
     ^
yelp-debug.h:55:6: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 # if __STDC_VERSION__ < 199901L
      ^
cc1: all warnings being treated as errors
Makefile:632: recipe for target 'libyelp_la-yelp-info-document.lo' failed
make[3]: *** [libyelp_la-yelp-info-document.lo] Error 1
In file included from yelp-mallard-document.c:38:0:
yelp-debug.h:38:5: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 #if __STDC_VERSION__ < 199901L
     ^
yelp-debug.h:55:6: error: "__STDC_VERSION__" is not defined [-Werror=undef]
 # if __STDC_VERSION__ < 199901L
      ^

I'm using fedora 21
$ rpm -qa gcc
gcc-4.9.2-1.fc21.x86_64
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20141101/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20141101/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Comment 1 David King 2015-02-14 10:36:28 UTC
Closing as a duplicate of a newer bug (with a bit more information). Thanks for the report!

*** This bug has been marked as a duplicate of bug 744454 ***