From owner-freebsd-isdn@FreeBSD.ORG Mon Jan 27 18:42:37 2014 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3C9C4B8 for ; Mon, 27 Jan 2014 18:42:37 +0000 (UTC) Received: from mta04.bitpro.no (mta04.bitpro.no [92.42.64.203]) by mx1.freebsd.org (Postfix) with ESMTP id 6E20D14B2 for ; Mon, 27 Jan 2014 18:42:37 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta04.bitpro.no (Postfix) with ESMTPS id 87308100292; Mon, 27 Jan 2014 19:42:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id A8330160DF9; Mon, 27 Jan 2014 19:43:20 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yvCmuR1506Z1; Mon, 27 Jan 2014 19:43:19 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id CDD9A160DE8; Mon, 27 Jan 2014 19:43:19 +0100 (CET) Message-ID: <52E6A8D1.20503@bitfrost.no> Date: Mon, 27 Jan 2014 19:43:29 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: gljennjohn@gmail.com, Martin Alt Subject: Re: Problems compiling and using isdn4bsd-kmod on FreeBSD 10.0-RELEASE References: <20140126163918.GA35814@zeus.home.anwaltskanzlei-alt.de> <20140127185152.4b13632f@ernst.home> In-Reply-To: <20140127185152.4b13632f@ernst.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-isdn@freebsd.org X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jan 2014 18:42:37 -0000 On 01/27/14 18:51, Gary Jennejohn wrote: > On Sun, 26 Jan 2014 17:39:18 +0100 > Martin Alt wrote: > >> I have been using the i4b kld module with FreeBSD9.1 and have now upgraded to >> 10.0-RELEASE using freebsd-update. >> >> I have rebuilt the kernel module using the comms/isdn4bsd-kmod port (from >> svn://svn.turbocat.net/i4b/trunk/ports/comms/isdn4bsd-kmod, rev 2974) and >> installed them, but unfortunately I get the following error message when trying >> to kldload i4b: >> >> kldload: can't load i4b: Exec format error >> >> Dmesg output is as follows: >> >> link_elf_obj: symbol ihfc_filter_info_start undefined >> linker_load_file: Unsupported file type >> > > This error is almost guaranteed to be caused by the kernel you're > running having been generated from other (e.g. older) sources > than the module. The remedy is to make usre that the sources > are the same for both the kernel and the module. Hi, It turns out I should use "sys/linker_set.h" instead of my own hand-rolled linker sets. I've updated the port and it should now load on FreeBSD-10 and FreeBSD-11. Thanks to everyone using and supporting ISDN4BSD. --HPS