From owner-freebsd-questions@freebsd.org Sun Jan 3 17:35:00 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 02636A606A6 for ; Sun, 3 Jan 2016 17:34:59 +0000 (UTC) (envelope-from khitai.pang@outlook.com) Received: from BLU004-OMC4S18.hotmail.com (blu004-omc4s18.hotmail.com [65.55.111.157]) (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 ACB1E1795 for ; Sun, 3 Jan 2016 17:34:59 +0000 (UTC) (envelope-from khitai.pang@outlook.com) Received: from BLU437-SMTP39 ([65.55.111.137]) by BLU004-OMC4S18.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 3 Jan 2016 09:33:52 -0800 X-TMN: [Wxjy5hXo/BR6hlxoc8v2JqjGeukTkMX/Rd6nnkFzLpM=] X-Originating-Email: [khitai.pang@outlook.com] Message-ID: To: freebsd-questions@freebsd.org From: Khitai Pang Subject: building smbfs: undefined reference Date: Mon, 4 Jan 2016 01:33:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Jan 2016 17:33:51.0933 (UTC) FILETIME=[E97F06D0:01D1464C] 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: Sun, 03 Jan 2016 17:35:00 -0000 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