Hello, there is an error when building samba with current "samba-4.0.0alpha17" shipped with the sogo/openchange source. The error message is shown below.
"‘struct registry_value’ has no member named ‘type’" is caused by gpo_reg.c in "samba4/source3/libgpo/gpo_reg.c" line: 174: reg_val.type = REG_SZ;... 192: reg_val.type = REG_DWORD; 213: if (reg_val->type != REG_SZ) {... 238: if (reg_val->type != REG_DWORD) {... whereas "samba4/source4/lib/registry/registry.h" line 264-269 has: struct registry_value { const char *name; unsigned int data_type; /* <- this member is called "data_type", not "type" DATA_BLOB data; }; Here is my output of samba build progress (stripped): ______________________________________________________________________________ root@server:~/openchange/sogo-good# make samba ... ... [2232/3330] Compiling source3/librpc/rpc/rpc_common.c [2233/3330] Compiling source3/rpc_client/rpc_transport_np.c [2234/3330] Compiling source3/rpc_client/rpc_transport_sock.c [2235/3330] Compiling source3/rpc_client/rpc_transport_tstream.c [2236/3330] Compiling source3/librpc/rpc/dcerpc_helpers.c [2237/3330] Compiling libgpo/gpo_ldap.c [2238/3330] Compiling libgpo/gpo_ini.c [2239/3330] Compiling libgpo/gpo_util.c [2240/3330] Compiling libgpo/gpo_fetch.c [2241/3330] Compiling source3/libgpo/gpo_filesync.c [2242/3330] Compiling libgpo/gpo_sec.c [2243/3330] Compiling source3/libgpo/gpo_reg.c In file included from ../source3/libgpo/gpo_reg.c:26: ../source3/registry/reg_backend_db.h:35: warning: ‘struct regsubkey_ctr’ declared inside parameter list ../source3/registry/reg_backend_db.h:35: warning: its scope is only this definition or declaration, which is probably not what you want ../source3/registry/reg_backend_db.h:36: warning: ‘struct regsubkey_ctr’ declared inside parameter list ../source3/registry/reg_backend_db.h:37: warning: ‘struct regval_ctr’ declared inside parameter list ../source3/registry/reg_backend_db.h:38: warning: ‘struct regval_ctr’ declared inside parameter list ../source3/registry/reg_backend_db.h:39: warning: ‘struct regsubkey_ctr’ declared inside parameter list ../source3/registry/reg_backend_db.h:40: warning: ‘struct regval_ctr’ declared inside parameter list ../source3/libgpo/gpo_reg.c: In function ‘gp_store_reg_val_sz’: ../source3/libgpo/gpo_reg.c:174: error: ‘struct registry_value’ has no member named ‘type’ ../source3/libgpo/gpo_reg.c: In function ‘gp_store_reg_val_dword’: ../source3/libgpo/gpo_reg.c:192: error: ‘struct registry_value’ has no member named ‘type’ ../source3/libgpo/gpo_reg.c: In function ‘gp_read_reg_val_sz’: ../source3/libgpo/gpo_reg.c:213: error: ‘struct registry_value’ has no member named ‘type’ ../source3/libgpo/gpo_reg.c: In function ‘gp_read_reg_val_dword’: ../source3/libgpo/gpo_reg.c:238: error: ‘struct registry_value’ has no member named ‘type’ ../source3/libgpo/gpo_reg.c: In function ‘gp_reg_state_store’: ../source3/libgpo/gpo_reg.c:471: error: ‘KEY_GROUP_POLICY’ undeclared (first use in this function) ../source3/libgpo/gpo_reg.c:471: error: (Each undeclared identifier is reported only once ../source3/libgpo/gpo_reg.c:471: error: for each function it appears in.) ../source3/libgpo/gpo_reg.c: In function ‘gp_reg_state_read’: ../source3/libgpo/gpo_reg.c:646: error: ‘KEY_GROUP_POLICY’ undeclared (first use in this function) ../source3/libgpo/gpo_reg.c: In function ‘dump_reg_val’: ../source3/libgpo/gpo_reg.c:799: error: ‘struct registry_value’ has no member named ‘type’ ../source3/libgpo/gpo_reg.c:804: error: ‘struct registry_value’ has no member named ‘type’ ../source3/libgpo/gpo_reg.c:857: error: ‘struct registry_value’ has no member named ‘type’ ../source3/libgpo/gpo_reg.c: In function ‘reg_apply_registry_entry’: ../source3/libgpo/gpo_reg.c:967: error: ‘struct registry_value’ has no member named ‘type’ Waf: Leaving directory `/root/openchange/sogo-good/samba4/bin' Build failed: -> task failed (err #1): {task: cc gpo_reg.c -> gpo_reg_22.o} make[1]: *** [all] Error 1 make[1]: Leaving directory `/root/openchange/sogo-good/samba4' Error in samba4 make (error code 2) make: *** [samba] Error 1 root@server:~/openchange/sogo-good# ______________________________________________________________________________ after changing above lines, I could build samba without any errors. fyi. Thank you. regards Hasan Pekdemir -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba