[Samba] Samba 4.2.0rc4 build failure

Thomas Schulz schulz at adi.com
Thu Feb 5 12:32:05 MST 2015


I am not quite certain where to report this, so I will start here.
I am trying to do a test build of Samba 4.2.0rc4 on a Solaris 10 i386
machine. I ran configure as follows:

#! /bin/sh
CFLAGS="-O3 -I/opt/local/include" \
LDFLAGS="-R/opt/local/samba4/lib:/opt/local/samba4/lib/private:/opt/local/lib \
         -L/opt/local/lib -liconv -lintl" \
./configure --prefix=/opt/local/samba4


Configure finishes with no errors.
Make fails as follows:

Checking project rules ...
Project rules pass
Waf: Entering directory `/home/projects/tools/samba/samba-4.2.0rc4.i386gcc.pt/bi
n'
        Selected embedded Heimdal build
Waf: Leaving directory `/home/projects/tools/samba/samba-4.2.0rc4.i386gcc.pt/bin
'
target '.INIT' does not exist
*** Error code 1
make: Fatal error: Command failed for target `.INIT'
WAF_MAKE=1  ./buildtools/bin/waf --targets=.DONE
        Selected embedded Heimdal build
Waf: Entering directory `/home/projects/tools/samba/samba-4.2.0rc4.i386gcc.pt/bi
n'
        Selected embedded Heimdal build
Waf: Leaving directory `/home/projects/tools/samba/samba-4.2.0rc4.i386gcc.pt/bin
'
target '.DONE' does not exist
*** Error code 1



This is caused by the following in Makefile:

# Catch all rule to be able to call make service_repl in order to find the name
# of the submodule you want to build, look at the wscript
%:
       $(WAF) --targets=$@


If I use gnumake instead of make then that does not cause any trouble.
After fixing that, the build fails with:

[ 596/3918] Compiling lib/texpect/texpect.c
../lib/texpect/texpect.c:64:17: fatal error: err.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/projects/tools/samba/samba-4.2.0rc4.i386gcc.pt/bin'
Build failed:  -> task failed (err #1): 
        {task: cc texpect.c -> texpect_1.o}
*** Error code 1
make: Fatal error: Command failed for target `all'


I find a copy of err.h in both
./lib/ccan/err/err.h
./bin/default/source4/heimdal/lib/roken/err.h


Tom Schulz
Applied Dynamics Intl.
schulz at adi.com


More information about the samba mailing list