Bug 7969 - Cannot build samba4 due to missing server_id.h
Summary: Cannot build samba4 due to missing server_id.h
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Andrew Tridgell
QA Contact: samba4-qa@samba.org
URL:
Keywords:
Depends on:
Blocks: 7858
  Show dependency treegraph
 
Reported: 2011-02-23 01:26 UTC by Milan Crha
Modified: 2011-02-23 05:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Crha 2011-02-23 01:26:59 UTC
I've checkout of samba4 git from yesterday:

> HEAD is now at c399c28 s3-waf: add replacetort binary.

and when I configure it like this:

> ./configure -C --prefix=$SAMBA_PREFIX --enable-developer
>      --bundled-libraries=tdb

Then I end with the below error. Is there anything I'm missing, please?
When I "find -name server_id.h" in the samba4 directory then I get a result:
> ./source4/bin/default/source4/librpc/gen_ndr/server_id.h
so there seems to be missing some path in an include for the make?

[ 510/2287] Compiling default/source4/librpc/gen_ndr/ndr_s4_notify.c
In file included from ../source4/bin/default/source4/librpc/gen_ndr/ndr_opendb.h:4:0,
                 from default/source4/librpc/gen_ndr/ndr_opendb.c:4:
../source4/bin/default/source4/librpc/gen_ndr/opendb.h:10:38: fatal error: librpc/gen_ndr/server_id.h: No such file or directory
compilation terminated.
In file included from ../source4/bin/default/source4/librpc/gen_ndr/ndr_s4_notify.h:4:0,
                 from default/source4/librpc/gen_ndr/ndr_s4_notify.c:4:
../source4/bin/default/source4/librpc/gen_ndr/s4_notify.h:10:38: fatal error: librpc/gen_ndr/server_id.h: No such file or directory
compilation terminated.
default/source4/librpc/gen_ndr/ndr_winsif.c: In function ‘ndr_pull_winsif_RecordAction’:
default/source4/librpc/gen_ndr/ndr_winsif.c:227:14: warning: passing argument 3 of ‘ndr_pull_wrepl_nbt_name’ from incompatible pointer type
../source4/../libcli/nbt/libnbt.h:337:126: note: expected ‘const struct nbt_name **’ but argument is of type ‘struct nbt_name **’
default/source4/librpc/gen_ndr/ndr_winsif.c: In function ‘ndr_pull_winsif_WinsGetDbRecsByName’:
default/source4/librpc/gen_ndr/ndr_winsif.c:2473:14: warning: passing argument 3 of ‘ndr_pull_wrepl_nbt_name’ from incompatible pointer type
../source4/../libcli/nbt/libnbt.h:337:126: note: expected ‘const struct nbt_name **’ but argument is of type ‘struct nbt_name **’
Waf: Leaving directory `.../openchange/samba4/bin'
Build failed:
 -> task failed (err #1): 
	{task: cc ndr_opendb.c -> ndr_opendb_8.o}
 -> task failed (err #1): 
	{task: cc ndr_s4_notify.c -> ndr_s4_notify_9.o}
gmake[1]: *** [all] Error 1
Comment 1 Milan Crha 2011-02-23 02:16:15 UTC
Actually, the ./configure command was for 'lib' folder, the samba4 itself is configured as
>  ./configure.developer -C --prefix=$SAMBA_PREFIX
Comment 2 Matthias Dieter Wallnöfer 2011-02-23 02:46:47 UTC
Did you first try a "git clean -d -f -x ." in the root of the repo?

It could be related to some dead (autogenerated) files which were moved or not used anymore.
Comment 3 Milan Crha 2011-02-23 03:21:52 UTC
You've right, my old checkout doesn't work, but if I do a new clean checkout then it compiles as expected. I'm sorry for a buzz I caused.
Comment 4 Milan Crha 2011-02-23 05:10:57 UTC
when talking about build issues, is it possible that samba-util.pc us missing a link of samba-util-common unintentionally? When I try to build openchange against this version then I get an error about this and adding the library file to the samba-util.c fixes the issue.

The other error found was with include/samba/session.h, it points to wrong security.h.

And the last is that openchange is using
   dce_call->conn->auth_state.session_info->credentials
but that fails on dereferencing of an incomplete type.

I do not know how much are these changes intentional or not, so I didn't reopen this bug, neither filed new.