Bug 6270 - tevent v4-0-test does not install tevent_util.h (needed by samba 4.0.0alpha6)
Summary: tevent v4-0-test does not install tevent_util.h (needed by samba 4.0.0alpha6)
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Jelmer Vernooij
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-18 01:41 UTC by Eric Sandall
Modified: 2009-06-18 03:45 UTC (History)
0 users

See Also:


Attachments
For tevent to install tevent_util.h (440 bytes, patch)
2009-04-18 01:42 UTC, Eric Sandall
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Sandall 2009-04-18 01:41:46 UTC
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.
Comment 1 Eric Sandall 2009-04-18 01:42:47 UTC
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.
Comment 2 Eric Sandall 2009-04-18 02:11:03 UTC
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.
Comment 3 Eric Sandall 2009-04-18 03:18:59 UTC
I found why it's working, I had tevent installed with my patch above. :) It appears samba4 *is* using the external tevent.
Comment 4 Matthias Dieter Wallnöfer 2009-06-18 03:45:56 UTC
Fixed