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 515910 - gtester.c compilation dies as result of not finding ARG_MAX defined
gtester.c compilation dies as result of not finding ARG_MAX defined
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other Cygwin
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-02-12 00:25 UTC by paul
Modified: 2008-03-31 04:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description paul 2008-02-12 00:25:32 UTC
make[4]: Entering directory `/src/glib/glib'
gcc -DHAVE_CONFIG_H -I. -I..  -I..  -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -g -pipe -D_REENTRANT  -g -pipe -Wall -MT gtester.o -MD -MP -MF .deps/gtester.Tpo -c -o gtester.o gtester.c
gtester.c: In function `launch_test_binary':
gtester.c:276: error: `ARG_MAX' undeclared (first use in this function)
gtester.c:276: error: (Each undeclared identifier is reported only once
gtester.c:276: error: for each function it appears in.)
gtester.c:276: warning: unused variable `argv'
make[4]: *** [gtester.o] Error 1
make[4]: Leaving directory `/src/glib/glib'

ARG_MAX lives in sys/syslimits.h but is not included
Comment 1 Matthias Clasen 2008-03-31 04:35:27 UTC
2008-03-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/gtester.c: Don't use ARG_MAX.  (#522335, patch by
        Sebastian Dröge)