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 158263 - Problem compiling glib 2.5.6
Problem compiling glib 2.5.6
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2004-11-14 14:49 UTC by Pierre
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pierre 2004-11-14 14:49:54 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
Comment 1 Matthias Clasen 2004-11-15 13:49:39 UTC
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)