GNOME Bugzilla – Bug 147422
libgtop_const.c must include <sys/types.h> on FreeBSD
Last modified: 2004-12-22 21:47:04 UTC
build gdesklets-0.30pre on FreeBSD-CURRENT: mv -f .libs/_glibtopmodule_la-glibtop.lo _glibtopmodule_la-glibtop.lo cc -o libgtop_const -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/incl ude -I/usr/X11R6/include/libgtop-2.0 -L/usr/local/lib -L/usr/X11R6/lib -L/usr/ X11R6/lib -lXau -lgtop-2.0 -lglib-2.0 -liconv libgtop_const.c In file included from libgtop_const.c:11: /usr/X11R6/include/libgtop-2.0/glibtop/proclist.h:75: error: syntax error before "int64_t" /usr/X11R6/include/libgtop-2.0/glibtop/proclist.h:82: error: syntax error before "int64_t" gmake[4]: *** [libgtop_const] Fehler 1 gmake[4]: Leaving directory `/usr/ports/deskutils/gdesklets.new/work/gDesklets-0 .30pre/libdesklets/system' gmake[3]: *** [all-recursive] Fehler 1 gmake[3]: Leaving directory `/usr/ports/deskutils/gdesklets.new/work/gDesklets-0 .30pre/libdesklets/system' gmake[2]: *** [all-recursive] Fehler 1 gmake[2]: Leaving directory `/usr/ports/deskutils/gdesklets.new/work/gDesklets-0 .30pre/libdesklets' gmake[1]: *** [all-recursive] Fehler 1 gmake[1]: Leaving directory `/usr/ports/deskutils/gdesklets.new/work/gDesklets-0 .30pre' gmake: *** [all] Fehler 2 *** Error code 2
Created attachment 29470 [details] [review] patch i need on freebsd to make it build
if it doesn't break anything for linux ;-) applied to CVS!
dont't know ... hope too ;-) i'm not really a C knowledge but is ther not a possibility to add #ifdef FreeBSD to be sure to not break on Linux? it's no problem for me to patch the Makfile before build an set BUILD_OS=FreeBSD or somthing like that. ... just an idea ... :-)
Well, it's ok, no need to worry. It's working under Linux.
this is not a bug. this is the fault of your old libgtop (older than 2.6). Update it.
all my ports are currently 100% up-to-date: http://webonaut.com/temp/pkg.txt (i update my ports nearly every day;-)) installed libgtop: 2.6.0 "-2.0" is not the number of the installed version it's only a FreeBSD naming convention. but i will ask also gnome@freebsd.org about this issue maybe...
RESOLVED: the problem was a "icomplete glib 64bit types migration" libgtop's proclist.h, command.h and lib.pl needs: "s/int64_t/gint64/g" thanks to: Alexander Nedotsukov <bland@FreeBSD.org> if not already done you can revert the patch. thanks franz.
http://bugzilla.gnome.org/show_bug.cgi?id=147618 so why the hell do you send a bugzilla to gdesklets ?
1. try build gdesklets 2. got an error 3. found a working solution with google 4. thought help resloving a gdesklets bug even if my bugzilla entry isn't correct i'm still believe my approach to solve the problem wasn't basically wrong. wrong was - maybe - the fact that i didn't ask the FreeBSD peaple for a confirmation before open a bugzilla entry.
*** This bug has been marked as a duplicate of 147618 ***