From owner-freebsd-current@freebsd.org Tue Mar 22 13:23:43 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B470AD9B58 for ; Tue, 22 Mar 2016 13:23:43 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFDB9EB8; Tue, 22 Mar 2016 13:23:42 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3qTtgT41q0zZvS; Tue, 22 Mar 2016 14:23:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1458653011; x=1460467412; bh=8veZr3Ni7i53962RCbF/VDwuu1qn2UnWgmh gfw7LGKM=; b=fv9n2ZLfiuYg1zQoodLUrtMgzaWJaxjIFsP6zjCylLRGRsdiflA xep0fYuVPk9BPPJAGtVC10O3ydZ6Fo5p0IhfsBMj+BgF1zfn7As8lvz7glw2kHw7 dzISX0/sG/xtowjQ7Sx39fzhzR53LdOPKpL7ErwTgNrSJZcvfnuKQkJw= Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id eFrt6_Dl12QO; Tue, 22 Mar 2016 14:23:31 +0100 (CET) Received: from tommy.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Tue, 22 Mar 2016 14:23:31 +0100 (CET) Subject: Re: sdhci_pci.ko fails to load To: Ian Lepore , Jilles Tjoelker References: <56EF12C1.1020202@madpilot.net> <56EF143F.9030308@madpilot.net> <56EF1744.4030607@madpilot.net> <1458511534.68920.84.camel@freebsd.org> <20160320224034.GB78464@stack.nl> <1458521695.68920.86.camel@freebsd.org> Cc: cem@FreeBSD.org, freebsd-current From: Guido Falsi Message-ID: <56F14753.4010408@madpilot.net> Date: Tue, 22 Mar 2016 14:23:31 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <1458521695.68920.86.camel@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2016 13:23:43 -0000 On 03/21/16 01:54, Ian Lepore wrote: > On Sun, 2016-03-20 at 23:40 +0100, Jilles Tjoelker wrote: >> On Sun, Mar 20, 2016 at 04:05:34PM -0600, Ian Lepore wrote: >>> On Sun, 2016-03-20 at 22:33 +0100, Guido Falsi wrote: >>>> the full error in dmesg is the same as stated before: >> >>>> link_elf_obj: symbol mmc_driver undefined >>>> linker_load_file: Unsupported file type >> >>>> Meybe the symbol is optimized out by the compiler in the module? >> >>> I suspect this is caused by my r292180 back in December. I'm >>> trying to >>> figure out if that's the case and if so, how to fix it. >> >> I think this is caused by the missing MODULE_DEPEND. The kernel >> linker >> only looks for symbols in the ELF objects containing the module >> itself >> and its declared dependencies. >> >> If mmc is compiled into the main kernel image, this is always >> satisfied. >> > > Thanks for the clue about the linker, it would have taken me forever to > figure that out by flailing around like I was doing. > > Hopefully this is all fixed now with r297127, but I was only able to > test it on arm systems (I have no x86 with sdhci). > Sorry for the delay, I updated the machine to r297146 and can confirm the problem is gone. Thanks you a lot for the quick fix! -- Guido Falsi