From owner-freebsd-hackers Sun Aug 16 17:23:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA12407 for freebsd-hackers-outgoing; Sun, 16 Aug 1998 17:23:01 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA12377 for ; Sun, 16 Aug 1998 17:22:58 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.8/8.8.7) id KAA19406; Mon, 17 Aug 1998 10:30:48 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199808170030.KAA19406@cimlogic.com.au> Subject: Re: Getting a new syscall to work In-Reply-To: <199808170003.CAA00575@hobby.digiware.nl> from Willem Jan Withagen at "Aug 17, 98 02:03:54 am" To: wjw@hobby.digiware.nl (Willem Jan Withagen) Date: Mon, 17 Aug 1998 10:30:48 +1000 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (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 Willem Jan Withagen wrote: > I've followed most all of the receipe which was given by Eric A. Davis > to add a systemcall. But now I'm all out of idea's: > > /usr/libexec/ld.so: Undefined symbol "___nsysctl" called from testnsysctl:/usr/lib/libc.so.3.2 at 0x200857d8 > (I bumped the minor number.) > > I've looked in the running kernel with nm: > f0124c4c T ___nsysctl > f01241a0 F nsysctl.o > > So as far I know, things should be working. > But they don't, so can somebody give me a new pointer Is this -current or -something else? If it is -current, then something is broken because your new libc should be installed in /usr/lib/aout. If it is not a -current system, you need to add the syscall to src/lib/libc/sys/Makefile.inc, then do a cleandir before rebuilding and installing libc. Ensure that your syscall appears in the installed syscall.h before building libc. -- 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