From owner-freebsd-hackers Wed Apr 15 14:26:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA18150 for freebsd-hackers-outgoing; Wed, 15 Apr 1998 14:26:44 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cimlogic.com.au (cimlogic.com.au [203.36.2.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA18079 for ; Wed, 15 Apr 1998 21:26:26 GMT (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id HAA12395; Thu, 16 Apr 1998 07:25:34 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199804152125.HAA12395@cimlogic.com.au> Subject: Re: adding new syscalls, part two In-Reply-To: <19980415190528.18498@hutcs.cs.hut.fi> from Antti-Pekka Liedes at "Apr 15, 98 07:05:28 pm" To: apl@mail.cs.hut.fi (Antti-Pekka Liedes) Date: Thu, 16 Apr 1998 07:25:34 +1000 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Antti-Pekka Liedes wrote: > I already read previous thread on adding syscalls, and I did everything as > it said, ie. added my new syscall to syscalls.master and ran makesyscalls. > Now, everything works considering the kernel, but I can't make a working > libc. I tried as was told in the previous syscalls thread, but when linking > the shared libc, I get: > ld: acl_establish_daemon.so: RRS text relocation at 0x207d6 for > "SYS_acl_establish_daemon" > > Because of this(?), ld.so can't resolve SYS_acl_establish_daemon in libc.so, > and thus can't link it either, and obviously nothing works when you can't > link shared libc. If you are going to play with new syscalls, it is wise to bump the minor version number of libc so that you don't hose the existing programs by replacing a good libc with a bad one. If you've already hosed your system by doing this and you don't have a backup of the last good libc, you can try deleting the bad library and creating a symlink to the last avialable shared libc. This might not work if the library is too old. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message