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 721986 - Fail to build on FreeBSD 9 / 10
Fail to build on FreeBSD 9 / 10
Status: RESOLVED FIXED
Product: libgtop
Classification: Core
Component: bsd
2.28.x
Other FreeBSD
: Normal major
: ---
Assigned To: libgtop maintainers
libgtop maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-11 12:40 UTC by Ting-Wei Lan
Modified: 2014-02-21 01:57 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
Simple patch to fix the first two problems (923 bytes, patch)
2014-01-11 12:45 UTC, Ting-Wei Lan
committed Details | Review

Description Ting-Wei Lan 2014-01-11 12:40:53 UTC
There are 3 problems which cause the failure.

1. AC_CHECK_HEADERS(net/if_var.h) does not work on FreeBSD because 3 other headers need to be included first. I change it to AC_CHECK_HEADERS(net/if_var.h,,,[
+#include <net/if.h>
+#include <sys/types.h>
+#include <sys/socket.h>]) and solve the problem.

2. __FreeBSD_kernel_version is used in sysdeps/freebsd/open.c, but FreeBSD 9 and 10 only define __FreeBSD_version. Removing the __FreeBSD_kernel__ check can solve the problem.

3. There is a strange error when running g-ir-scanner. I don't know how to fix it.
Error closing file: No error: 0
Command '['/home/lantw44/gnome/source/libgtop/lib/tmp-introspect1hZkz0/GTop-2.0', '--introspect-dump=/home/lantw44/gnome/source/libgtop/lib/tmp-introspect1hZkz0/functions.txt,/home/lantw44/gnome/source/libgtop/lib/tmp-introspect1hZkz0/dump.xml']' returned non-zero exit status 1
gmake[3]: *** [GTop-2.0.gir] Error 1
gmake[3]: Leaving directory `/home/lantw44/gnome/source/libgtop/lib'
Comment 1 Ting-Wei Lan 2014-01-11 12:45:10 UTC
Created attachment 265999 [details] [review]
Simple patch to fix the first two problems