From owner-freebsd-ports@FreeBSD.ORG Fri Aug 3 12:23:23 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3465A16A418 for ; Fri, 3 Aug 2007 12:23:23 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id D513913C45E for ; Fri, 3 Aug 2007 12:23:22 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 91665ED516C; Fri, 3 Aug 2007 15:21:15 +0300 (EEST) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XMpdZC4j+ZHn; Fri, 3 Aug 2007 15:21:14 +0300 (EEST) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 4A8B8ED516B; Fri, 3 Aug 2007 15:21:14 +0300 (EEST) Message-ID: <46B31E36.2030305@icyb.net.ua> Date: Fri, 03 Aug 2007 15:23:18 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.5 (X11/20070723) MIME-Version: 1.0 To: Kostik Belousov References: <46A8AC15.4080509@icyb.net.ua> <46B0B795.5070106@icyb.net.ua> <20070802124603.GC2738@deviant.kiev.zoral.com.ua> In-Reply-To: <20070802124603.GC2738@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Sam Lawrance , freebsd-ports@freebsd.org Subject: Re: uppc kmod installation problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2007 12:23:23 -0000 on 02/08/2007 15:46 Kostik Belousov said the following: > On Wed, Aug 01, 2007 at 07:40:53PM +0300, Andriy Gapon wrote: >> on 26/07/2007 17:13 Andriy Gapon said the following: >>> It seems that installation action of uppc-kmod port (do-install target) >>> uses incorrect tool to put uppc.ko in its destination. It seems that the >>> tool (${INSTALL_PROGRAM}) corrupts the .ko, so that it is not a valid >>> kernel module anymore. If I put uppc.ko into /boot/kernel and do kldxref >>> then kldxref complains about missing symbol table in uppc.ko and dumps >>> core. If the module is loaded then it crashes my system. >>> >>> On the other hand, if I simply copy uppc.ko from work directory then it >>> works ok. >> [snip] >>> Some system info: >>> FreeBSD 6.2-RELEASE-p3 amd64 >> [snip] >> >> This problem seems to be the same as the one described here: >> http://www.freebsd.org/cgi/query-pr.cgi?pr=100703 >> >> There seems to be something special about amd64, kernel modules and >> 'install -s' / strip. > You cannot strip kernel modules on amd64, because modules are elf object > files, as opposed to shared objects on all other archs. Strip strips the > object file symbol table, that is used by the static linker and in-kernel > linker on amd64. On the other hand, shared object contains also a dynamic > symbol table, that is not stripped and used by in-kernel linker on !amd64. Kostik, would you be comfortable to apply a patch from the PR mentioned above (or something similar) to palm/uppc-kmod port ? Current maintainer for the port is ports@, Thank you. -- Andriy Gapon