updated util-linux for ultrasparc redhat 6.2
Hi,
I want to update util-linux
version that is running is util-linux-2.10f-7
i downloaded util-linux-2.11n-5.src.rpm from redhat (Rawhide) and tried to compile it
it goes wrong on the following, does someone know how to fix this/what i'm missing :
--
cc -s main_losetup.o ../lib/xstrncpy.o -o losetup
cc -O2 -m32 -mtune=ultrasparc -O2 -m32 -mtune=ultrasparc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -I/usr/include/ncurses -DNCH=0 -I/usr/include/slang -D_FILE_OFFSET_BITSd -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\"
-DLOCALEDIR=\"/usr/share/locale\" -s pivot_root.c -o pivot_rootpivot_root.c: In function `main':
pivot_root.c:17: `SYS_pivot_root' undeclared (first use in this function) pivot_root.c:17: (Each undeclared identifier is reported only once pivot_root.c:17: for each function it appears in.)
make[1]: *** [pivot_root] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/util-linux-2.11n/mount'
make: *** [all] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.30936 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.30936 (%build)
Quoted 2 lines
it goes wrong on the following, does someone know how to fix this/what i'm missing :
Your kernel and/or glibc is old or compiled against an old kernel that does not know about pivot_root on sparc (I think, correct me if I'm wrong). You really don't need it so just remove it from the makefile and compile, it should work.
Quoted 7 lines · Kaj-Michael Lang
Quoted 2 lines
it goes wrong on the following, does someone know how to fix this/what i'm missing :
Your kernel and/or glibc is old or compiled against an old kernel that does not know about
pivot_rooton sparc (I think, correct me if I'm wrong). You really don't need it so just remove it from the makefile and compile, it should work.
Ok,
compiles ok now, removed this from util-linux-2.11n-miscfixes.patch :
--- util-linux-2.11n/mount/pivot_root.c.miscfixes Fri Nov 9
11:49:57 2001
+++ util-linux-2.11n/mount/pivot_root.c Wed Dec 26 16:57:52 2001 @@ -4,16 +4,9 @@
#include <stdio.h>
-
-#ifdef __ia64__
-# include <sys/syscall.h>
-# define pivot_root(new_root,put_old) syscall(SYS_pivot_root,new_root,put_old)
-#else
-# include <linux/unistd.h>
-
-static
-_syscall2(int,pivot_root,const char *,new_root,const char *,put_old) -#endif
+#include <sys/syscall.h>
+#include <unistd.h>
+#define pivot_root(new_root,put_old) syscall(SYS_pivot_root,new_root,put_old)
int main(int argc,const char **argv)
{