From owner-freebsd-hackers Wed Aug 19 15:05:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA12599 for freebsd-hackers-outgoing; Wed, 19 Aug 1998 15:05:35 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from digi.digiware.nl (gtw.digiware.nl [194.151.72.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA12582 for ; Wed, 19 Aug 1998 15:05:28 -0700 (PDT) (envelope-from wjw@digi.digiware.nl) Received: by digi.digiware.nl (8.8.7/1.63) id WAA24573; Wed, 19 Aug 1998 22:04:27 GMT From: wjw@digi.digiware.nl (Willem Jan Withagen) Message-Id: <199808192204.WAA24573@digi.digiware.nl> Subject: Re: Getting a new syscall to work In-Reply-To: <199808170559.WAA20804@usr09.primenet.com> from Terry Lambert at "Aug 17, 98 05:59:32 am" To: tlambert@primenet.com (Terry Lambert) Date: Thu, 20 Aug 1998 00:04:27 +0200 (CEST) Cc: hackers@FreeBSD.ORG Reply-To: wjw@digiware.nl X-Mailer: ELM [version 2.4ME+ PL31H (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 => > 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 => => You must put it in the libc as well as in the kernel. (This is on -stable) I've fixed the second problem (libc) as well. Turned out that when you make a new libc, by doing make in /usr/src/lib/libc you not only get the *.o's in the libc dir. But it also uses /usr/include/sys/syscall.h as include directory/file, where I expected it to use /usr/src/sys/sys/syscall.h So now it is on with the sysctl's --WjW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message