From owner-freebsd-questions@FreeBSD.ORG Thu Aug 16 05:45:26 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F6F3106566B for ; Thu, 16 Aug 2012 05:45:26 +0000 (UTC) (envelope-from jeff.t@mail.com) Received: from mailout-us.mail.com (mailout-us.mail.com [74.208.122.35]) by mx1.freebsd.org (Postfix) with SMTP id 08C128FC14 for ; Thu, 16 Aug 2012 05:45:25 +0000 (UTC) Received: (qmail invoked by alias); 16 Aug 2012 05:45:18 -0000 Received: from unknown (EHLO blazon-pc.runningwild.local) [78.84.105.231] by mail.gmx.com (mp-us009) with SMTP; 16 Aug 2012 01:45:18 -0400 X-Authenticated: #76218138 X-Provags-ID: V01U2FsdGVkX19FbzwsJcBF56HdqqHGhlLClqQPTlu7K3n9nl/NQR yD8qKBm6KbHH47 Message-ID: <502C88ED.4070804@mail.com> Date: Thu, 16 Aug 2012 08:45:17 +0300 From: Jeff Tipton User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <438406572.84878.1345082392987.JavaMail.root@mri-mail> In-Reply-To: <438406572.84878.1345082392987.JavaMail.root@mri-mail> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: can't build Samba 35 on FreeBSD 9.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 05:45:26 -0000 On 08/16/2012 04:59, James D. Parra wrote: > Hello, > > I am trying to install Samba35 on FreeBSD 9.0 but I keep getting a build error. > > portsnap extract&& portsnap fetch update > cd /usr/ports/devel/libtool&& make deinstall&& make install clean > cd /usr/ports/security/krb5&& make deinstall > make KRB5_HOME=/usr/local install clean > > and finally; > cd /usr/ports/net/samba35&& make KRB5_HOME=/usr/local install clean > > With my fingers crossed I hoped for the best and yet I received the following error during compiling; > > > Compiling libsmb/libsmb_setget.c > libsmb/libsmb_setget.c: In function 'smbc_getOptionUseCCache': > libsmb/libsmb_setget.c:427: error: 'SMB_CTX_FLAG_USE_CCACHE' undeclared (first use in this function) > libsmb/libsmb_setget.c:427: error: (Each undeclared identifier is reported only once > libsmb/libsmb_setget.c:427: error: for each function it appears in.) > libsmb/libsmb_setget.c: In function 'smbc_setOptionUseCCache': > libsmb/libsmb_setget.c:435: error: 'SMB_CTX_FLAG_USE_CCACHE' undeclared (first use in this function) > The following command failed: > cc -I/usr/local/include -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -I. -I/usr/ports/net/samba35/work/samba-3.5.15/source3 -I/usr/ports/net/samba35/work/samba-3.5.15/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -DHAVE_CONFIG_H -I/usr/local/include -I/usr/local/include -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/popt -I/usr/local/include -DLDAP_DEPRECATED -I/usr/ports/net/samba35/work/samba-3.5.15/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -DPIC -c libsmb/libsmb_setget.c -o libsmb/libsmb_setget.o > gmake: *** [libsmb/libsmb_setget.o] Error 1 > *** Error code 1 > > Stop in /usr/ports/net/samba35. > *** Error code 1 > > Stop in /usr/ports/net/samba35. > > > > Does anyone have any solutions on how I can get Samba installed and resolve the above error? > > Many thanks in advance. > > > James > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" Did you already have a ports tree? If so, you only needed to #portsnap fetch update By "portsnap extract" you are overwriting the existing ports tree, not updating. And I don't think it's a good idea to "make deinstall" from the ports tree other than the one from which you did "make install". Better use pkg_delete (add -f, if it doesn't want to remove the package/port). You may now have leftover from the older installation (say, some libraries). And you reinstalled libtool this way, which is invoked when building libraries. I would first make sure there are no leftovers, all the dependencies are up to date, and then deal with the build problem (if it still exists). And why do you set KRB5_HOME? Will you have kerberos? -Jeff