From owner-freebsd-ports@FreeBSD.ORG Thu Aug 2 13:23:13 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 D8F4016A419 for ; Thu, 2 Aug 2007 13:23:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7E31913C45D for ; Thu, 2 Aug 2007 13:23:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [89.162.146.170] (helo=skuns.kiev.zoral.com.ua) by relay01.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1IGa4L-0006hL-JJ for freebsd-ports@freebsd.org; Thu, 02 Aug 2007 15:46:24 +0300 Received: from deviant.kiev.zoral.com.ua (root@[10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l72Ck6q2042623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Aug 2007 15:46:06 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l72Ck6aF013550; Thu, 2 Aug 2007 15:46:06 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l72Ck3pJ013549; Thu, 2 Aug 2007 15:46:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 2 Aug 2007 15:46:03 +0300 From: Kostik Belousov To: Andriy Gapon Message-ID: <20070802124603.GC2738@deviant.kiev.zoral.com.ua> References: <46A8AC15.4080509@icyb.net.ua> <46B0B795.5070106@icyb.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/e2eDi0V/xtL+Mc8" Content-Disposition: inline In-Reply-To: <46B0B795.5070106@icyb.net.ua> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.90.3, clamav-milter version 0.90.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 7155bbd8d023de41950ebecbe4708355 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1327 [August 2 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release 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: Thu, 02 Aug 2007 13:23:14 -0000 --/e2eDi0V/xtL+Mc8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > 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] >=20 > This problem seems to be the same as the one described here: > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D100703 >=20 > 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. --/e2eDi0V/xtL+Mc8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGsdILC3+MBN1Mb4gRAgZhAJ9yJNINXkIw3NIt1CnV1Q2SN71UMgCgkpmv hlDFOCFZiw4zb5CHd/JQwqc= =vIs7 -----END PGP SIGNATURE----- --/e2eDi0V/xtL+Mc8--