* updated util-linux for ultrasparc redhat 6.2
@ 2002-03-03 22:13 stephan
2002-03-04 8:52 ` Kaj-Michael Lang
2002-03-04 21:51 ` Stephan van Hienen
0 siblings, 2 replies; 3+ messages in thread
From: stephan @ 2002-03-03 22:13 UTC (permalink / raw)
To: ultralinux
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_root
pivot_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)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: updated util-linux for ultrasparc redhat 6.2 2002-03-03 22:13 updated util-linux for ultrasparc redhat 6.2 stephan @ 2002-03-04 8:52 ` Kaj-Michael Lang 2002-03-04 21:51 ` Stephan van Hienen 1 sibling, 0 replies; 3+ messages in thread From: Kaj-Michael Lang @ 2002-03-04 8:52 UTC (permalink / raw) To: ultralinux > 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: updated util-linux for ultrasparc redhat 6.2 2002-03-03 22:13 updated util-linux for ultrasparc redhat 6.2 stephan 2002-03-04 8:52 ` Kaj-Michael Lang @ 2002-03-04 21:51 ` Stephan van Hienen 1 sibling, 0 replies; 3+ messages in thread From: Stephan van Hienen @ 2002-03-04 21:51 UTC (permalink / raw) To: ultralinux On Mon, 4 Mar 2002, Kaj-Michael Lang wrote: > > 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. 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) { ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-03-04 21:51 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-03-03 22:13 updated util-linux for ultrasparc redhat 6.2 stephan 2002-03-04 8:52 ` Kaj-Michael Lang 2002-03-04 21:51 ` Stephan van Hienen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox