From owner-freebsd-stable@FreeBSD.ORG Fri Apr 12 17:12:58 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 922CA1ED for ; Fri, 12 Apr 2013 17:12:58 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) by mx1.freebsd.org (Postfix) with ESMTP id 5B02F12E7 for ; Fri, 12 Apr 2013 17:12:58 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::97:e65f:5932:821a] (unknown [IPv6:2001:7b8:3a7:0:97:e65f:5932:821a]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E1FD25C44; Fri, 12 Apr 2013 19:12:56 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: fusefs-kmod does not work on 8-STABLE? From: Dimitry Andric In-Reply-To: <20130412142802.GA1657@regency.nsu.ru> Date: Fri, 12 Apr 2013 19:12:39 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <20130410052710.GA36137@regency.nsu.ru> <20130412101746.GA68687@regency.nsu.ru> <20130412142802.GA1657@regency.nsu.ru> To: Alexey Dokuchaev X-Mailer: Apple Mail (2.1503) Cc: stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Apr 2013 17:12:58 -0000 On Apr 12, 2013, at 16:28, Alexey Dokuchaev wrote: ... > I've found the culprit: the problem is in this command of the build: > > ld -Bshareable -d -warn-common -o hello.ko.debug hello.kld > > I had put /usr/local/bin in my $PATH before /usr/bin for a reason I don't > currently recall, and have binutils-2.23.1 installed. As a result, ld(1) > in the quoted line above was called from /usr/local/bin/ld, which brought > in all the weird things I was observing: failure of fusefs-kmod, failure > of simple "hello world" KLD, "link_elf: symbol undefined" messages > when loading snd_hda(4) and nvidia(4) drivers. > > How, does anyone have a clue why new ld(1) plays so badly with our system > toolchain on 8.x (at least)? Maybe because there is almost 10 years difference between those implementations? :-) In any case, to figure out what is different, just try linking the kernel module with the system ld and the ports ld, and comparing "readelf -a" output. Or upload both module versions somewhere, so we can all have a look.