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 126377 - [patch] fix dumpkeys.c compilation on NetBSD/sparc-1.5
[patch] fix dumpkeys.c compilation on NetBSD/sparc-1.5
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.11.x
Other All
: Urgent major
: ---
Assigned To: VTE Maintainers
Nalin Dahyabhai
: 166091 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-11-06 16:40 UTC by Adrian Bunk
Modified: 2005-08-15 01:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix for this problem (338 bytes, patch)
2003-11-06 16:41 UTC, Adrian Bunk
none Details | Review
new patch (653 bytes, patch)
2005-02-15 08:29 UTC, Kjartan Maraas
none Details | Review

Description Adrian Bunk 2003-11-06 16:40:19 UTC
I got the following compile error:

<--  snip  -->

...
gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/local/include
-I/usr/local/include/fr
eetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/l
ocal/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/atk-1
.0 -I/usr/local/include/pango-1.0 -I/usr/X11R6/include  
-I/usr/X11R6/include  -
O2 -mcpu=v8 -I/usr/X11R6/include  -I/usr/X11R6/include  -O2 -mcpu=v8 -c
`test -f
 'dumpkeys.c' || echo './'`dumpkeys.c
In file included from dumpkeys.c:22:
/usr/include/sys/select.h:46: parse error before `pid_t'
/usr/include/sys/select.h:46: warning: no semicolon at end of struct or union
/usr/include/sys/select.h:48: parse error before `}'
gmake[2]: *** [dumpkeys.o] Error 1
gmake[2]: Leaving directory `/aux/adrian/build/vte-0.11.10/src'

<--  snip  -->

pid_t is defined in /usr/include/sys/types.h .

I'll attach a fix in a minute.
Comment 1 Adrian Bunk 2003-11-06 16:41:45 UTC
Created attachment 21253 [details] [review]
fix for this problem
Comment 2 alexander.winston 2004-01-02 22:05:49 UTC
Adding the PATCH keyword and upgrading the priority to High due to the
attached fix.
Comment 3 alexander.winston 2004-01-27 18:25:37 UTC
Bumping priority to urgent and adding the portability keyword.
Comment 4 Kjartan Maraas 2004-10-18 10:08:42 UTC
Does it have to be included before <sys/select.h> or doesn't that matter? I see
<sys/types.h> is in the source now, but not guarded. Adding the guards is a good
idea though
Comment 5 Adrian Bunk 2004-10-18 10:26:05 UTC
The parse error is in select.h - therefore types.h has to be included before
select.h so that the pid_t definition is available when select.h gets included.
Comment 6 Tony Arnold 2005-02-09 23:45:42 UTC
This fixes compile errors on Darwin too - nice work :)
Comment 7 Kjartan Maraas 2005-02-15 08:29:58 UTC
Created attachment 37484 [details] [review]
new patch

Commiting this patch since it seems <sys/types.h> has snuck in later, but still
after <sys/select.h>
Comment 8 Kjartan Maraas 2005-02-15 11:07:37 UTC
*** Bug 166091 has been marked as a duplicate of this bug. ***