Date: Wed, 23 Dec 2009 07:09:12 -0900 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org Cc: Ewald Jenisch <a@jenisch.at> Subject: Re: samba3.x - 3.0 won't compile, 3.2 and 3.3 can't be installed Message-ID: <200912230709.12666.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <20091223135124.GA4129@aurora.oekb.co.at> References: <20091223135124.GA4129@aurora.oekb.co.at>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912230709.12666.mel.flynn%2Bfbsd.questions>