With the v4-0-test branch of samba git, tevent only installs tevent.h (from tevent.mk). but samba (4.0.0alpha6 at least) requires tevent_util.h as well. $ ./configure && make ... Linking bin/python/samba/dcerpc/security.so Compiling ../lib/tevent/pytevent.c ../lib/tevent/pytevent.c:27:25: error: tevent_util.h: No such file or directory The following command failed: gcc -march=core2 -m32 -pipe -DPIC -fPIC -O2 -fomit-frame-pointer -I/usr/include/python2.6 -I/usr/include/python2.6 -Ilib/replace -march=core2 -m32 -pipe -DPIC -fPIC -O2 -fomit-frame-pointer -I/usr/include/python2.6 -I/usr/include/python2.6 -fPIC -I./include -I. -I./lib -I./../lib/replace -I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H -c ../lib/tevent/pytevent.c -o ../lib/tevent/pytevent.o make: *** [../lib/tevent/pytevent.o] Error 1 Looks like this is looking specifically inside the git directory for tevent_util.h, but doesn't include -I../../lib/tevent.
Created attachment 4073 [details] For tevent to install tevent_util.h This patch is for the future when samba4 builds using external libraries. With this patch, tevent now installs tevent_util.h which is required by samba4.
Just tried it with samba 4.0.0alpha6: $ cd samba-4.0.0alpha6/source4 $ ./configure $ make -j3 ... Linking bin/python/samba/dcerpc/security.so Compiling ../lib/tevent/pytevent.c Linking bin/python/tevent.so Linking bin/shared/libdcerpc_atsvc.so.0.0.1 May be another flag causing the issue, I'll try to narrow it down.
I found why it's working, I had tevent installed with my patch above. :) It appears samba4 *is* using the external tevent.
Fixed