Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Peter Rye <prye@picu-sgh.demon.co.uk>
Subject: Re: mount 2.7l compiling problem
Date: 1998/05/20	[thread overview]
Message-ID: <m3som4pnm7.fsf@picu-sgh.demon.co.uk> (raw)
In-Reply-To: Pine.BSF.3.96.980520162408.19602A-100000@freebsd.phys.ntu.edu.tw


cwhuang <cwhuang@freebsd.phys.ntu.edu.tw> writes:

> Yesterday I successfully compiled and booted kernel 2.1.102 on my
> alpha UDB box.
> The kernel change 2.1.x document said I need also
> to upgrade the mount tools to v2.7l.
> However, I cannot compile it successful on my alpha linux box.
> I also downloaded the .src.rpm from RedHat contrib directory.
> However, it failed to build again...
> Could someone help me about this?
> Thanks in advance!

This seems to be related to the change in headers with glibc.

I got this to compile with a bit of fiddling with the included headers.
It still complains about redfined macros, but everything seems to work OK.

Here's an ugly patch which you might want to try. (I'm not a programmer,
and there is probably a nicer way to do this).


diff -u -r mount-2.7l.orig/lomount.c mount-2.7l/lomount.c
--- mount-2.7l.orig/lomount.c	Fri Nov 21 16:59:50 1997
+++ mount-2.7l/lomount.c	Wed May 20 23:38:32 1998
@@ -18,6 +18,8 @@
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 
+#include <linux/types.h> /* prye */
+
 #include "loop.h"
 #include "lomount.h"
 
diff -u -r mount-2.7l.orig/losetup.c mount-2.7l/losetup.c
--- mount-2.7l.orig/losetup.c	Mon Jan 26 22:59:58 1998
+++ mount-2.7l/losetup.c	Wed May 20 23:38:32 1998
@@ -11,6 +11,8 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 
+#include <linux/types.h> /* prye */
+
 #include "loop.h"
 #include "lomount.h"
 
diff -u -r mount-2.7l.orig/mount.c mount-2.7l/mount.c
--- mount-2.7l.orig/mount.c	Mon Feb  2 08:51:54 1998
+++ mount-2.7l/mount.c	Wed May 20 23:38:32 1998
@@ -45,6 +45,8 @@
 #include <sys/wait.h>
 #include <sys/mount.h>
 
+#include <linux/types.h> /* prye */
+
 #include "mount_constants.h"
 #include "sundries.h"
 #include "fstab.h"
diff -u -r mount-2.7l.orig/nfsmount.c mount-2.7l/nfsmount.c
--- mount-2.7l.orig/nfsmount.c	Thu Feb  5 00:26:25 1998
+++ mount-2.7l/nfsmount.c	Wed May 20 23:38:32 1998
@@ -47,6 +47,8 @@
 #define _LINUX_SOCKET_H
 #endif /* __GLIBC__ */
 #define _I386_BITOPS_H
+#include <linux/posix_types.h> /* prye */
+#include <asm/posix_types.h> /* prye */
 #include <linux/fs.h>
 #include <linux/nfs.h>
 #include "nfs_mount3.h"
diff -u -r mount-2.7l.orig/umount.c mount-2.7l/umount.c
--- mount-2.7l.orig/umount.c	Thu Aug  7 06:05:30 1997
+++ mount-2.7l/umount.c	Wed May 20 23:38:32 1998
@@ -26,6 +26,9 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <sys/mount.h>
+
+#include <linux/types.h> /* prye */
+
 #include "mount_constants.h"
 #include "sundries.h"
 #include "lomount.h"



      reply	other threads:[~1998-05-20  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-20  4:00 mount 2.7l compiling problem cwhuang
1998-05-20  4:00 ` Peter Rye [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox