From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 22 21:23:31 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F9881065677 for ; Tue, 22 Nov 2011 21:23:31 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 5430D8FC24 for ; Tue, 22 Nov 2011 21:23:31 +0000 (UTC) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 04EA83CC6; Tue, 22 Nov 2011 13:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1321997011; bh=/zslYaIHF5hZL8k4Gbmwg5eLyOL+r6TnErhI3dlb6bE=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=N+Alh9v4Wef6MEWS1JfdIgS1gI1LwfigjTl56fOesv1H99Ji1RESNh7jpf1tJFOKl /PSTZik/6GvILB525xwvCXxrIimV0ugd6+OVabpkgBOqoxuEPcbY9a0n1lCgvtMgTM anx0s8LClHeY5fZWK6+RnX+zaYYmUa52kZ1ePdrE= Message-ID: <4ECC12D2.2090300@delphij.net> Date: Tue, 22 Nov 2011 13:23:30 -0800 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: aram baghomian , FreeBSD-Hackers References: , <4ECC07DC.2070403@delphij.net> , <4ECC0CDA.9060108@delphij.net> In-Reply-To: OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Cc: d@delphij.net Subject: Re: crypto.ko module problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2011 21:23:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 [Added -hackers@ back to Cc list] On 11/22/11 13:13, aram baghomian wrote: > I add myhash.c address in '/sys/conf/files' and my make process > done completely whitout any error. I don't know is there any place > that i should add my hash program address.(i searched all the > "/sys/conf" files for same algorithms such as rmd160 and SHA256) If you are compiling a kernel module, it would be /sys/modules/*/Makefile (for your exact case would be /sys/modules/crypto/Makefile I think). >> Date: Tue, 22 Nov 2011 12:58:02 -0800 From: delphij@delphij.net >> To: aram_baghomian@hotmail.com CC: d@delphij.net Subject: Re: >> crypto.ko module problem >> > On 11/22/11 12:49, aram baghomian wrote: >> I can understand what do you want to refer. > > Well be more specific -- check if you have everything included in > your Makefile, my guess is there is some .c missing. > > >>> Date: Tue, 22 Nov 2011 12:36:44 -0800 From: >>> delphij@delphij.net To: aram_baghomian@hotmail.com CC: >>> freebsd-hackers@freebsd.org Subject: Re: crypto.ko module >>> problem > >> On 11/22/11 12:30, aram baghomian wrote: > >>> Hi > >>> If you can remember i wanted to add my custom hash algorithm >>> to the opencrypto project, after i added it and compile my >>> kernel source( by your advise),i load the crypto.ko module >>> using kldload and give this error. > >>> link_elf: symbol MYHASHUpdate undefined > >>> MYHASHUpdate is one of my hash functions that i add to the >>> source. > >>> what should i do that i forget? > >> Looks like it's expecting something that is not linked into your >> module? > >> Cheers, > - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJOzBLRAAoJEATO+BI/yjfBgxQH/A36S+IZt/V0D/LcDZWcBubC CoHSoVCBkMcyFIa4SF7MJvuLT1zCec+lsPr9/E7GGVqLqFy/XyaMC0TpHi4J+hg2 xOvwvEkSPWmwe9SoEpo91BpL+hK5P/uTQ+MBoMBV4kz+eI7VbLZpRFjlEOh2ZhGK kWuRRsHZWXSiPDsZW4Pbcmt6HxhvvCjGHN/RPrQ4lmcU52SBgvvexXiJeTXdcZ4F 9hO3oPLBXat4aypX9BeGvqi6vydOiqXdIsFKBd3LG3V4l+QIjb9Rs2epciYNXgQi u6cspLayVcnyNxEoA9j09Mi/iuGxy7qcGc/YsnEo0K0tzi25ZW2w/TJX+2Nmg7Y= =vzBy -----END PGP SIGNATURE-----