From owner-freebsd-current@freebsd.org Sun Mar 20 22:40:36 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 36F6DACEDC6 for ; Sun, 20 Mar 2016 22:40:36 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mailhost.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E83D91BE5; Sun, 20 Mar 2016 22:40:35 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from toad2.stack.nl (toad2.stack.nl [IPv6:2001:610:1108:5010::161]) by mx1.stack.nl (Postfix) with ESMTP id 3B4A1B8060; Sun, 20 Mar 2016 23:40:34 +0100 (CET) Received: by toad2.stack.nl (Postfix, from userid 1677) id 9647B892B9; Sun, 20 Mar 2016 23:40:34 +0100 (CET) Date: Sun, 20 Mar 2016 23:40:34 +0100 From: Jilles Tjoelker To: Ian Lepore Cc: Guido Falsi , cem@FreeBSD.org, freebsd-current Subject: Re: sdhci_pci.ko fails to load Message-ID: <20160320224034.GB78464@stack.nl> References: <56EF12C1.1020202@madpilot.net> <56EF143F.9030308@madpilot.net> <56EF1744.4030607@madpilot.net> <1458511534.68920.84.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458511534.68920.84.camel@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) 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: Sun, 20 Mar 2016 22:40:36 -0000 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: > > On 03/20/16 22:21, Guido Falsi wrote: > > > On 03/20/16 22:18, Conrad Meyer wrote: > > > > Try 'kldload mmc' first. 'sdhci_pci' is missing a MODULE_DEPEND > > > > on mmc. > > > As I said, when loading sdhci_pci I had already loaded module mmc. > > > Anyway I'll try that again just to make sure, maybe I missed it and > > > thought I had it loaded. > > > I'll followup shortly. > > I confirm that I had already loaded mmc.ko. > [snip] > > 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. -- Jilles Tjoelker