Fwd: S4a13 compilation fails on FreeBSD

Timur I. Bakeyev timur at com.bat.ru
Tue Nov 23 15:34:30 MST 2010


Hi all!

I'm trying to compile Samba4alpha13 on FreeBSD box so all installed local
packages are picked up by the configure(like SASL2, libintl, popt, etc).

By default these staff is installed into /usr/local, but GCC doesn't
automatically
look there, so I have to run configure with the environment set to:

CPPFLAGS="-I/usr/local/include " LDFLAGS=" -L/usr/local/lib -pthread"
PTHREAD_CFLAGS=""  PTHREAD_LIBS="-pthread" NOCOLOR=yes
PYTHON="/usr/local/bin/python2.5" SHELL=/bin/sh CONFIG_SHELL=/bin/sh

That helps to find that mentioned extra libs, but as old version of TDB is
installed into the same prefix the build fails latelly. The log file is
attached to the mail.

Configure is run with the options:

--enable-fhs  --prefix="/usr/local"  --exec-prefix="/usr/local"
--sysconfdir="/usr/local/etc"
--includedir="/usr/local/include/samba4"
--datadir="/usr/local/share/samba4"  --libdir="/usr/local/lib/samba4"
--with-modulesdir="/usr/local/lib/samba4/modules"
--localstatedir="/var"  --with-piddir="/var/run/samba4"
--with-winbindd-socket-dir="/var/run/samba4/winbindd"
--with-winbindd-privileged-socket-dir="/var/run/samba4/winbindd_privileged"
 --with-ntp-signd-socket-dir="/var/run/samba4/ntp_signd"
--with-lockdir="/var/db/samba4"
--with-privatedir="/var/db/samba4/private" --bundled-libraries=ALL
--disable-rpath --enable-developer --enable-socket-wrapper
--enable-nss-wrapper --enable-gnutls --jobs=`/sbin/sysctl -n
kern.smp.cpus`

So, it's not supposed to use any of the external libs(as there are no up to date
distribution packages for them).

I suspect that failure is the result of the order of -I flags, where
CPPFLAGS got inserted before any other -I flags, so old declarations
from the tdb.h take precedence.

With regards,
Timur Bakeyev.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba4.log.bz2
Type: application/octet-stream
Size: 85404 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101123/9b187bc0/attachment-0001.obj>


More information about the samba-technical mailing list