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 147422 - libgtop_const.c must include <sys/types.h> on FreeBSD
libgtop_const.c must include <sys/types.h> on FreeBSD
Status: RESOLVED DUPLICATE of bug 147618
Product: gDesklets
Classification: Deprecated
Component: core
0.30
Other FreeBSD
: Normal normal
: ---
Assigned To: gDesklets Maintainers
gDesklets Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-12 14:57 UTC by Franz Klammer
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
patch i need on freebsd to make it build (243 bytes, patch)
2004-07-12 15:01 UTC, Franz Klammer
none Details | Review

Description Franz Klammer 2004-07-12 14:57:52 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
Comment 1 Franz Klammer 2004-07-12 15:01:40 UTC
Created attachment 29470 [details] [review]
patch i need on freebsd to make it build
Comment 2 Christian Meyer 2004-07-12 15:17:34 UTC
if it doesn't break anything for linux ;-)
applied to CVS!
Comment 3 Franz Klammer 2004-07-12 15:25:56 UTC
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 ... :-)
Comment 4 Christian Meyer 2004-07-12 15:33:46 UTC
Well, it's ok, no need to worry. It's working under Linux.
Comment 5 Benoît Dejean 2004-07-12 18:34:20 UTC
this is not a bug. this is the fault of your old libgtop (older than 2.6).
Update it.
Comment 6 Franz Klammer 2004-07-13 10:22:52 UTC
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...
Comment 7 Franz Klammer 2004-07-14 14:26:10 UTC
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.
Comment 8 Benoît Dejean 2004-07-15 06:51:00 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=147618

so why the hell do you send a bugzilla to gdesklets ?
Comment 9 Franz Klammer 2004-07-15 08:46:00 UTC
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.
Comment 10 Benoît Dejean 2004-07-16 06:32:27 UTC

*** This bug has been marked as a duplicate of 147618 ***