From jeff Fri Nov 27 19:16:05 1998 Return-Path: Received: (from jeff@localhost) by enthalpy.biochem.wisc.edu (8.9.1a/8.9.1) id TAA19741; Fri, 27 Nov 1998 19:16:04 -0600 From: Jeff Ballin Message-Id: <199811280116.TAA19741@enthalpy.biochem.wisc.edu> Subject: kernel installation problems on Alpha To: comp.os.linux.alpha@enthalpy.biochem.wisc.edu Date: Fri, 27 Nov 1998 19:16:03 -0600 (CST) Cc: jeff@enthalpy.biochem.wisc.edu (Jeff Ballin) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Status: O Hello all, I am sure that there are docs somewhere on how to do this, but I cannot find them. If there is a archive site or some place else these questions are addressed, point me the way and I will politely RTFM. I have concatenated three problems in this email, suspecting that they may be somewhat related. This is an Alpha LX164 running RedHat 5.0. Kernel upgrade: I am trying to upgrade my kernel, and everything seems to work until I try to reboot. Ok, first what versions of requisite files do I have installed: modutils 2.1.55 (to go to 2.1.121, it has to be compiled under a 2.1.x kernel according to its documentation) binutils 2.1.55 gcc 2.7.2.3 glibc 2.0.7 ld.so 2.0.7 g++lib 2.7.2.8 procps 1.2.9 procinfo 14 (1998-5-24) psmisc 17 mount 2.7f (see note below) sh-utils 1.16 bash 1.14.7(1) I use "make boot" to create the new kernel, and it builds a new vmlinux.gz which I copy to the / directory. The problem occurs when I reboot. MILO executes the kernel just fine until after it mounts the root directory. I get the following message before the system halts (keyboard is still able to do ctrl-alt-del to reboot): VFS: Mounted root (ext2 filesystem) readonly Freeing unused kernel memory: 120K freed Warning: unable to open an initial console Kernel Panic: No init found. Try passing init= option to kernel. Where is docs on kernel options?; I saw nothing in Kernel-HOWTO. Is it looking for a path to init? It is in /sbin/init. Is it looking for a runlevel? Currently, I am only sending the boot option (boot=sda2/vmlinux.gz). If I reboot using my old kernel, everything goes fine. I have read the MILO FAQ/documentation mentioned online at gatekeeper.dec.com, and nothing looks suspicious on this end. I tried to compile MILO from sources, but it fails (details available if requested). The docs state that MILO version does not have to match kernel version. Oh, I am trying to upgrade to kernel 1.2.129 from 2.0.32(p). --------- Compiling mount. The new kernel wants mount 2.7l. Well, I pulled the SRPMS mount-2.8a from a redhat ftp mirror (no compiled rpms for the Alpha yet) and it will not compile. I get the following error: gcc -c -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -DHAVE_NFS swapon.c In file included from swapon.c:13: swap.h:13: `PAGE_SIZE' undeclared here (not in a function) swap.h:13: size of array `reserved' has non-integer type swapon.c: In function `swap': swapon.c:98: warning: implicit declaration of function `swapon' swapon.c:101: warning: implicit declaration of function `swapoff' make: *** [swapon.o] Error 1 When swap.configure is run, it reports Your libc thinks that swapon has 1 arg only. Define SWAPON_NEEDS_TWO_ARGS in swapon.c if you want to use priorities. When I set that define in swapon.c, make reports gcc -c -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -DHAVE_NFS swapon.c In file included from swapon.c:13: swap.h:13: `PAGE_SIZE' undeclared here (not in a function) swap.h:13: size of array `reserved' has non-integer type swapon.c:67: parse error before `swapon' swapon.c:67: warning: function declaration isn't a prototype swapon.c:69: parse error before `swapoff' swapon.c:69: warning: function declaration isn't a prototype swapon.c: In function `swap': swapon.c:96: warning: implicit declaration of function `swapon' swapon.c:101: warning: implicit declaration of function `swapoff' swapon.c: At top level: swapon.c:67: warning: `_syscall2' declared `static' but never defined swapon.c:69: warning: `_syscall1' declared `static' but never defined make: *** [swapon.o] Error 1 The swapon and swapoff functions are listed in the man(2) pages. However, I could not find their delcarations in the header files unistd.h or in linux/swap.h. I had installed glibc-2.0.7-29.alpha.src.rpm again from the ftp mirror site (again no problems). I used rpm to verify that the headers were correct for the glibc version, and they were. Suggestions as to what is going on? ============ Calls to setresgid function not working (may be related to above problem). While compiling samba (I need its PDC support), I get the following error: Linking bin/smbd smbd/chgpasswd.o: In function `dochild': chgpasswd.c(.text+0x710): undefined reference to `setresgid' chgpasswd.c(.text+0x714): undefined reference to `setresgid' chgpasswd.c(.text+0x748): undefined reference to `setresgid' chgpasswd.c(.text+0x74c): undefined reference to `setresgid' smbd/uid.o: In function `init_uid': uid.c(.text+0x74): undefined reference to `setresgid' smbd/uid.o(.text+0x78):uid.c: more undefined references to `setresgid' follow make: *** [bin/smbd] Error 1 Note that all of the necessary object files were created just fine, which to me indicates that the headers are ok but the requisite libraries cannot be found. I have seen postings from people who are running this software on RedHat 5.1 (albeit, probably on Intel based systems), so I would think that this problem can be solved.