From owner-freebsd-net@freebsd.org Wed Apr 25 14:50:55 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54A06FA823A for ; Wed, 25 Apr 2018 14:50:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 E1B92766BB; Wed, 25 Apr 2018 14:50:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9F4B7260122; Wed, 25 Apr 2018 16:50:46 +0200 (CEST) Subject: Re: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1 To: Julian Elischer , "Somayajulu, David" , "freebsd-net@freebsd.org" References: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> From: Hans Petter Selasky Message-ID: Date: Wed, 25 Apr 2018 16:50:38 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2018 14:50:55 -0000 On 04/25/18 16:12, Julian Elischer wrote: > On 24/4/18 3:15 pm, Hans Petter Selasky wrote: >> On 04/24/18 01:33, Somayajulu, David wrote: >>> Hi All, >>> kldload ibcore.ko >>> fails in the above snapshot with the following error. >>> >>> # kldload -v /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko >>> kldload: an error occurred while loading module >>> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko. Please >>> check dmesg(8) for more details. >>> >>> /var/log/messages indicates the following. >>> >>> Apr 23 16:28:07 bsd25_12 kernel: link_elf_obj: symbol if_index undefined >>> Apr 23 16:28:07 bsd25_12 kernel: linker_load_file: >>> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko - >>> unsupported file type >>> >>> What am I missing? >>> >> >> Hi, >> >> It looks like ibcore.ko was built w/o DEBUG_FLAGS="-DVIMAGE=1" > > that shouldn't be in debug flags..   Not sure WHERE it should be, but I > think that isn't it. > (may work though) > If you build outside the "buildkernel WITH_OFED=YES" target these flags must be specified manually in my experience. --HPS