GNOME Bugzilla – Bug 158263
Problem compiling glib 2.5.6
Last modified: 2004-12-22 21:47:04 UTC
# make make all-recursive make[1]: Entering directory `/tmp/glib-2.5.6' Making all in . make[2]: Entering directory `/tmp/glib-2.5.6' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/tmp/glib-2.5.6' Making all in m4macros make[2]: Entering directory `/tmp/glib-2.5.6/m4macros' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/glib-2.5.6/m4macros' Making all in glib make[2]: Entering directory `/tmp/glib-2.5.6/glib' make all-recursive make[3]: Entering directory `/tmp/glib-2.5.6/glib' Making all in libcharset make[4]: Entering directory `/tmp/glib-2.5.6/glib/libcharset' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/tmp/glib-2.5.6/glib/libcharset' make[4]: Entering directory `/tmp/glib-2.5.6/glib' if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -s -O3 -march=i686 -Wall -ansi -pedantic -MT gkeyfile.lo -MD -MP -MF ".deps/gkeyfile.Tpo" \ -c -o gkeyfile.lo `test -f 'gkeyfile.c' || echo './'`gkeyfile.c; \ then mv -f ".deps/gkeyfile.Tpo" ".deps/gkeyfile.Plo"; \ else rm -f ".deps/gkeyfile.Tpo"; exit 1; \ fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -s -O3 -march=i686 -Wall -ansi -pedantic -MT gkeyfile.lo -MD -MP -MF .deps/gkeyfile.Tpo -c gkeyfile.c -fPIC -DPIC -o .libs/gkeyfile.ogkeyfile.c: In function `g_key_file_load_from_fd': gkeyfile.c:362: error: `S_IFMT' undeclared (first use in this function) gkeyfile.c:362: error: (Each undeclared identifier is reported only once gkeyfile.c:362: error: for each function it appears in.) gkeyfile.c:362: error: `S_IFREG' undeclared (first use in this function) make[4]: *** [gkeyfile.lo] Error 1 make[4]: Leaving directory `/tmp/glib-2.5.6/glib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/glib-2.5.6/glib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/glib-2.5.6/glib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/glib-2.5.6' make: *** [all] Error 2
2004-11-15 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since S_IFMT and S_IFREG are apprarently missing on some systems (they are SUS, but not Posix). (#158263)