Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2018 16:50:38 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Julian Elischer <julian@freebsd.org>, "Somayajulu, David" <David.Somayajulu@cavium.com>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: kldload ibcore.ko fails in snapshot: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1
Message-ID:  <c3a67535-3f5c-c16e-fe76-6ba8dcdb31ec@selasky.org>
In-Reply-To: <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org>
References:  <BN6PR07MB3122A34BF6462952F5C53CEFEE890@BN6PR07MB3122.namprd07.prod.outlook.com> <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org> <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c3a67535-3f5c-c16e-fe76-6ba8dcdb31ec>