From owner-freebsd-hackers Thu Mar 18 13:38:56 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from pak.texar.com (pak.texar.com [207.112.49.1]) by hub.freebsd.org (Postfix) with ESMTP id 8BBFB14EB5 for ; Thu, 18 Mar 1999 13:38:49 -0800 (PST) (envelope-from dseg@pak.texar.com) Received: (from dseg@localhost) by pak.texar.com (8.8.8/8.8.3) id QAA25519; Thu, 18 Mar 1999 16:39:49 -0500 (EST) Date: Thu, 18 Mar 1999 16:39:49 -0500 (EST) From: Dan Seguin To: freebsd-hackers@freebsd.org Subject: KLD extern calls Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all. Is it possible to make calls to std libs from within a KLD? For example, getpwuid()? If so, how does one link it in? I've tried ld by hand (specifying -lc), but get "bad exec format" when trying to load it. Otherwise, it just refuses to load, claiming "undefined symbol getpwuid". This is not limited to the abovementioned call. Any ideas, knowledge, help is appreciated. Dan Seguin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message