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 134622 - Compilation error because signal.h not included in glib/gmain.c
Compilation error because signal.h not included in glib/gmain.c
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.4.x
Other opensolaris
: Normal major
: ---
Assigned To: gtkdev
gtkdev
: 134744 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-02-17 12:31 UTC by Damien Carbery
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Include signal.h in glib/gmain.c (422 bytes, patch)
2004-02-17 12:31 UTC, Damien Carbery
none Details | Review

Description Damien Carbery 2004-02-17 12:31:13 UTC
glib/gmain.c uses signal() but does not include signal.h.
Trivial patch to include signal.h attached.

Makefile and compiler output:
/bin/bash ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/opt/gnome-2.4/include -mt  -g
-I/opt/gnome-2.4/include -c -o gmain.lo `test -f 'gmain.c' || echo './'`gmain.c
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/opt/gnome-2.4/include -mt -g -I/opt/gnome-2.4/include -c gmain.c  -KPIC
-DPIC -o .libs/gmain.o
"gmain.c", line 3338: warning: implicit function declaration: signal
"gmain.c", line 3338: undefined symbol: SIGCHLD
"gmain.c", line 3374: warning: statement not reached
"gmain.c", line 3393: undefined symbol: SIGCHLD
cc: acomp failed for gmain.c
make[3]: *** [gmain.lo] Error 1
Comment 1 Damien Carbery 2004-02-17 12:31:49 UTC
Created attachment 24476 [details] [review]
Include signal.h in glib/gmain.c
Comment 2 Matthias Clasen 2004-02-18 14:55:15 UTC
*** Bug 134744 has been marked as a duplicate of this bug. ***