From owner-freebsd-questions@FreeBSD.ORG Wed Dec 23 16:09:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E205C1065692 for ; Wed, 23 Dec 2009 16:09:18 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id AF52B8FC12 for ; Wed, 23 Dec 2009 16:09:18 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id E42007E821; Wed, 23 Dec 2009 07:09:17 -0900 (AKST) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Wed, 23 Dec 2009 07:09:12 -0900 User-Agent: KMail/1.12.1 (FreeBSD/8.0-STABLE; KDE/4.3.1; i386; ; ) References: <20091223135124.GA4129@aurora.oekb.co.at> In-Reply-To: <20091223135124.GA4129@aurora.oekb.co.at> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200912230709.12666.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Ewald Jenisch Subject: Re: samba3.x - 3.0 won't compile, 3.2 and 3.3 can't be installed 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: Wed, 23 Dec 2009 16:09:19 -0000 On Wednesday 23 December 2009 04:51:24 Ewald Jenisch wrote: > Hi, > > For quite some time now I'm trying to get samba 3.x installed on my > FreeBSD 7.2 System. > > The symptoms in short: > > o) 3.0 - doesn't compile > > o) 3.2, 3.3 - can't be installed because of installation dependencies > to samba4-devel-4.0.0.a8_2, talloc-1.3.1 and tdb-1.1.5. > > System: > FreeBSD test.at 7.2-STABLE FreeBSD 7.2-STABLE #8: Mon Dec 7 12:21:59 CET > 2009 root@test.at:/usr/obj/usr/src/sys/GENERIC amd64 > > > Ports tree is updated and all ports installed up2date. > > Now for the Samba-port(s): Depending on the version of Samba it either > can't be built at all or fails upon installation. > > In detail: > > 1) Samba3.0: > > Bails out during compilation with the following error: > > Compiling locking/locking.c > locking/locking.c: In function 'unparse_share_modes': > locking/locking.c:701: error: invalid operands to binary - > The following command failed: > cc -I. -I/usr/ports/net/samba3/work/samba-3.0.37/source -O -pipe > -DLDAP_DEPRECATED -D_SAMBA_BUILD_=3 -I/usr/local/include > -I/usr/ports/net/samba3/work/samba-3.0.37/source/iniparser/src -Iinclude > -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include > -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/local/include > -I/usr/local/include -DLDAP_DEPRECATED > -I/usr/ports/net/samba3/work/samba-3.0.37/source/lib -D_SAMBA_BUILD_=3 > -fPIC -DPIC -c locking/locking.c -o locking/locking.o *** Error code 1 This is most likely caused by tdb-1.1.5 and the fact that -I/usr/local/include is in order before -I./tdb/include. To confirm this: 1) cd `make -C /usr/ports/net/samba3 -V WRKSRC`/locking 2) Copy the above compilation line 3) Paste but remove the first -I/usr/local/include 4) Run the result If it compiles cleanly, you need to fix it somewhere in the configure foo, but it's still no guarantee everything will work, especially when linking (though when linking removing the corresponding first -L/usr/local/lib may actually fix things too). -- Mel