From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b51023bc20c4d1e9 X-Google-Attributes: gid111c93,public From: Peter Rye Subject: Re: mount 2.7l compiling problem Date: 1998/05/20 Message-ID: #1/1 X-Deja-AN: 355285383 X-NNTP-Posting-Host: picu-sgh.demon.co.uk:194.222.182.163 References: X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 895770366 nnrp-05:19633 NO-IDENT picu-sgh.demon.co.uk:194.222.182.163 Organization: St. George's Hospital, Paediatric ICU Newsgroups: comp.os.linux.alpha cwhuang 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 #include +#include /* 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 #include +#include /* 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 #include +#include /* 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 /* prye */ +#include /* prye */ #include #include #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 #include #include + +#include /* prye */ + #include "mount_constants.h" #include "sundries.h" #include "lomount.h"