GNOME Bugzilla – Bug 620860
function ‘meta_display_open’:
Last modified: 2010-06-07 18:26:48 UTC
tryng to compile mutter with last git via jhbuild give me this error: make[4]: ingresso nella directory «/home/diska/gnome-shell/source/mutter/src» CC display.o cc1: warnings being treated as errors core/display.c: In function ‘meta_display_open’: core/display.c:467: error: implicit declaration of function ‘gethostname’ core/display.c:467: error: nested extern declaration of ‘gethostname’ make[4]: *** [display.o] Errore 1 make[4]: uscita dalla directory «/home/diska/gnome-shell/source/mutter/src» make[3]: *** [all-recursive] Errore 1 make[3]: uscita dalla directory «/home/diska/gnome-shell/source/mutter/src» make[2]: *** [all] Errore 2 make[2]: uscita dalla directory «/home/diska/gnome-shell/source/mutter/src» make[1]: *** [all-recursive] Errore 1 make[1]: uscita dalla directory «/home/diska/gnome-shell/source/mutter» make: *** [all] Errore 2 the problem is on code if (gethostname (buf, sizeof(buf)-1) == 0) { buf[sizeof(buf)-1] = '\0'; the_display->hostname = g_strdup (buf); }
on ubuntu lucid 64bit Distributor ID: Ubuntu Description: Ubuntu 10.04 LTS Release: 10.04 Codename: lucid
...and you compile with which exact flags? Can you add #include <unistd.h> to src/core/display.c and check whether this still happens?
i'm using defult jhbuild flag. no change with #include <unistd.h> same error i wiped dir and resync with git repository
Confirming.
...and the recent addition of unistd.h does not fix this for me.
No idea then - someone with the relevant system is going to have to debug this.
This is Fedora 12 in jhbuild...
how can i help you?
Created attachment 162951 [details] [review] 0001-Move-use-of-_SVID_SOURCE-to-display.c-for-gethostnam.patch
Created attachment 162958 [details] [review] updated
The remaining task is figuring out who to bill for that 30 minutes of my life...