GNOME Bugzilla – Bug 589988
Compilation error on Solaris 9 (missing stdint.h)
Last modified: 2009-07-30 13:38:16 UTC
Steps to reproduce: 1. install OpenPKG on Solaris 9 2. try to build glib 2.21.4 Stack trace: Making all in libasyncns make[4]: Entering directory `/openpkg/RPM/TMP/glib-2.21.4/gio/libasyncns' /bin/bash ../../libtool --tag=CC --mode=compile /openpkg/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I/openpkg/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -D_PTHREADS -O2 -pipe -Wall -MT asyncns.lo -MD -MP -MF .deps/asyncns.Tpo -c -o asyncns.lo asyncns.c libtool: compile: /openpkg/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I/openpkg/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -D_PTHREADS -O2 -pipe -Wall -MT asyncns.lo -MD -MP -MF .deps/asyncns.Tpo -c asyncns.c -o asyncns.o In file included from asyncns.c:22: g-asyncns.h:32:20: error: stdint.h: No such file or directory make[4]: *** [asyncns.lo] Error 1 make[4]: Leaving directory `/openpkg/RPM/TMP/glib-2.21.4/gio/libasyncns' make[3]: *** [all-recursive] Error 1 Other information: On Solaris 9 stdint.h is not available. You can use inttypes.h or port libasyncns to glib's int types (glibconfig.h).
Created attachment 139520 [details] [review] Conditionalize portability #includes in g-asyncns.h Does this fix it? (The stdint.h include is only needed because on some versions of OS X it wasn't being included by the other header files that depended on it. In theory, we shouldn't need an explicit inttypes.h include on solaris.)
Yes. This patch fix it. Thank you.
fixed in git