* mount 2.7l compiling problem
@ 1998-05-20 4:00 cwhuang
1998-05-20 4:00 ` Peter Rye
0 siblings, 1 reply; 2+ messages in thread
From: cwhuang @ 1998-05-20 4:00 UTC (permalink / raw)
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!
--
C.W.Huang
Coordinator of Linux HOWTOs Chinese Translation
http://www.phys.ntu.edu.tw/~cwhuang/pub/os/linux/CLDP/
CLDP mailing list: ldp-trans@linux.org.tw
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mount 2.7l compiling problem
1998-05-20 4:00 mount 2.7l compiling problem cwhuang
@ 1998-05-20 4:00 ` Peter Rye
0 siblings, 0 replies; 2+ messages in thread
From: Peter Rye @ 1998-05-20 4:00 UTC (permalink / raw)
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-05-20 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-20 4:00 mount 2.7l compiling problem cwhuang
1998-05-20 4:00 ` Peter Rye
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox