From owner-freebsd-questions@freebsd.org Thu Jan 7 02:09:21 2016 Return-Path: Delivered-To: freebsd-questions@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 03F8AA6523F for ; Thu, 7 Jan 2016 02:09:21 +0000 (UTC) (envelope-from khitai.pang@outlook.com) Received: from BLU004-OMC4S35.hotmail.com (blu004-omc4s35.hotmail.com [65.55.111.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD4EF10CA for ; Thu, 7 Jan 2016 02:09:20 +0000 (UTC) (envelope-from khitai.pang@outlook.com) Received: from BLU437-SMTP82 ([65.55.111.137]) by BLU004-OMC4S35.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 6 Jan 2016 18:08:13 -0800 X-TMN: [L7c9HsnlbV2xWpXPE5KJWacnm90/ZPKe] X-Originating-Email: [khitai.pang@outlook.com] Message-ID: Subject: Re: building smbfs: undefined reference To: freebsd-questions@freebsd.org References: From: Khitai Pang Date: Thu, 7 Jan 2016 10:08:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Jan 2016 02:08:12.0572 (UTC) FILETIME=[431C15C0:01D148F0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 02:09:21 -0000 Does anyone has any clue? Thanks in advance Khitai On 2016/1/4 1:33, Khitai Pang wrote: > I tried mount_smbfs from ports net/samba-smbclient but got the > following error: > > mount_smbfs: kldload(smbfs): No such file or directory > > So I added 'options SMBFS' in my kernel config file, and kernel > building failed: > > /var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x94): undefined reference to > `smb_makescred' > /var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x367): undefined reference to > `smb_makescred' > /var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x37a): undefined reference to > `smb_read' > smbfs_io.o: In function `smbfs_vinvalbuf': > /var/src/sys/fs/smbfs/smbfs_io.c:(.text+0x6cb): undefined reference to > `smb_td_intr' > ... > > A lot of undefined references. By simple grep I found that the > missing functions are in sys/netsmb, so maybe I should also add > 'options NETSMB'? Anything else? Where can I find documentation > about this? > > > Thanks > Khitai