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 141736 - Configure broken in NetBSD
Configure broken in NetBSD
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Build
cvs (head)
Other other
: Urgent critical
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-03 14:25 UTC by Julio Merino
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
Sample patch (1.27 KB, patch)
2004-05-03 14:27 UTC, Julio Merino
none Details | Review
New patch (1.71 KB, patch)
2004-05-04 16:08 UTC, Julio Merino
none Details | Review

Description Julio Merino 2004-05-03 14:25:59 UTC
The changes done to fix bug #136468 broke the configure script in NetBSD, where
gnome-vfs is now unbuildable.

The problem is that the <sys/mount.h> header is included "directly" in the
checks, but <sys/param.h> is *required* as a prerequisite in NetBSD.  Therefore,
it must be included by hand before sys/mount.h to get those checks working.
Comment 1 Julio Merino 2004-05-03 14:27:33 UTC
Created attachment 27337 [details] [review]
Sample patch
Comment 2 Julio Merino 2004-05-04 16:08:41 UTC
Created attachment 27370 [details] [review]
New patch

The previous patch fixed configure in NetBSD up to 2.0, but not current.  In
current, statvfs exists, but statfs does not.  So the configure script fails
because it says there is no statfs (but it should work, because statvfs was
previously detected).  This new patch fixes both issues.
Comment 3 Christophe Fergeau 2004-05-15 17:08:05 UTC
http://cvs.gnome.org/viewcvs/gnome-vfs/configure.in?r1=1.295.2.7&r2=1.295.2.8
has been committed, as far as I can tell it fixes the sys/param.h issue
Is something else needed, or is this patch enough ?
Comment 4 Julio Merino 2004-05-15 18:23:06 UTC
This commit does exactly the same as my first patch in this PR.  Thanks for fixing.

However, the second patch (named "New patch"), includes an extra chunk that
hasn't been applied.  As said, in NetBSD current (post 2.0D), the system has
statvfs but not statfs.  The problem is that the script stops configuration if
statfs is not found, _even if statvfs exists_.  It should only stop if both
functions are missing, which is what the patch does.
Comment 5 Christophe Fergeau 2004-05-16 10:57:33 UTC
Is the missing chunk this one:
@@ -262,7 +274,9 @@ statfs(NULL, &st, sizeof (st), 0);],[
     AC_MSG_RESULT([4])
     AC_DEFINE(STATFS_ARGS, 4, [Number of arguments to statfs()])],[
     AC_MSG_RESULT(unknown)
-    AC_MSG_ERROR([unable to determine number of arguments to statfs()])])])
+    if test "x`echo $ac_cv_func_statvfs | $as_tr_sh`" = "xno"; then
+        AC_MSG_ERROR([unable to determine number of arguments to statfs()])])
+    fi])
?
Doesn't that belong to bug #141739 instead?
Comment 6 Julio Merino 2004-05-16 11:05:34 UTC
Yes and yes.  Well, as this bug was originally filled to solve configuration
problems, I attached this last chunk to it so that configure works fine.  But it
may suit better the other bug, #141739.
Comment 7 Christophe Fergeau 2004-05-16 11:15:12 UTC
Ok, so I'll move this chunk to bug #141739 so that I can close this bug ;)