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
Actually, the ./configure command was for 'lib' folder, the samba4 itself is configured as > ./configure.developer -C --prefix=$SAMBA_PREFIX
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.
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.
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.