[Samba] samba-4.1.0 wont compile- help!

lux-integ lux-integ at btconnect.com
Wed Oct 30 14:34:57 MDT 2013


Greetings,

I am attempting to compile samba-.1.0 on a machine with these:-
--cpu amd64 3cores
--ozs blfs linux gcc-4.8.1, linux-3.10.17, glibc-2.17

waf build  ( i.e. make ) ends like so"":-
################################## 
In file included from ../source3/lib/smbconf/smbconf_reg.c:26:0:
../source3/registry/reg_api_util.h:39:17: warning: 'enum winreg_CreateAction' 
declared inside parameter list [enabled by default]
          struct registry_key **pkey);
                 ^
../source3/lib/smbconf/smbconf_reg.c: In function 
'smbconf_reg_create_service_key':
../source3/lib/smbconf/smbconf_reg.c:140:7: error: variable 'action' has 
initializer but incomplete type
  enum winreg_CreateAction action = REG_ACTION_NONE;
       ^
../source3/lib/smbconf/smbconf_reg.c:140:36: error: 'REG_ACTION_NONE' 
undeclared (first use in this function)
  enum winreg_CreateAction action = REG_ACTION_NONE;
                                    ^
../source3/lib/smbconf/smbconf_reg.c:140:36: note: each undeclared identifier 
is reported only once for each function it appears in
../source3/lib/smbconf/smbconf_reg.c:140:27: error: storage size of 'action' 
isn't known
  enum winreg_CreateAction action = REG_ACTION_NONE;
                           ^
../source3/lib/smbconf/smbconf_reg.c:148:9: error: 'REG_KEY_WRITE' undeclared 
(first use in this function)
         REG_KEY_WRITE, newkey, &action);
         ^
../source3/lib/smbconf/smbconf_reg.c:149:40: error: 'REG_CREATED_NEW_KEY' 
undeclared (first use in this function)
  if (W_ERROR_IS_OK(werr) && (action != REG_CREATED_NEW_KEY)) {
                                        ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_set_value':
../source3/lib/smbconf/smbconf_reg.c:199:28: error: 'struct registry_key' has 
no member named 'key'
  subkeyname = strrchr_m(key->key->name, '\\');
                            ^
In file included from ../source3/include/includes.h:382:0,
                 from ../source3/lib/smbconf/smbconf_reg.c:20:
../source3/lib/smbconf/smbconf_reg.c:202:31: error: 'struct registry_key' has 
no member named 'key'
      "smbconf section.\n", key->key->name));
                               ^
../source3/../lib/util/debug.h:181:20: note: in definition of macro 'DEBUG'
        && (dbgtext body) )
                    ^
../source3/lib/smbconf/smbconf_reg.c:219:5: error: 'struct registry_value' has 
no member named 'type'
  val.type = REG_SZ;
     ^
In file included from ../source3/include/includes.h:382:0,
                 from ../source3/lib/smbconf/smbconf_reg.c:20:
../source3/lib/smbconf/smbconf_reg.c:229:24: error: 'struct registry_key' has 
no member named 'key'
      canon_valname, key->key->name, win_errstr(werr)));
                        ^
../source3/../lib/util/debug.h:181:20: note: in definition of macro 'DEBUG'
        && (dbgtext body) )
                    ^
../source3/lib/smbconf/smbconf_reg.c: In function 
'smbconf_reg_set_multi_sz_value':
../source3/lib/smbconf/smbconf_reg.c:268:7: error: 'struct registry_value' has 
no member named 'type'
  value->type = REG_MULTI_SZ;
       ^
In file included from ../source3/include/includes.h:382:0,
                 from ../source3/lib/smbconf/smbconf_reg.c:20:
../source3/lib/smbconf/smbconf_reg.c:286:18: error: 'struct registry_key' has 
no member named 'key'
      valname, key->key->name, win_errstr(werr)));
                  ^
../source3/../lib/util/debug.h:181:20: note: in definition of macro 'DEBUG'
        && (dbgtext body) )
                    ^
../source3/lib/smbconf/smbconf_reg.c: In function 
'smbconf_format_registry_value':
../source3/lib/smbconf/smbconf_reg.c:312:15: error: 'struct registry_value' 
has no member named 'type'
  switch (value->type) {
               ^
../source3/lib/smbconf/smbconf_reg.c: In function 
'smbconf_reg_get_includes_internal':
../source3/lib/smbconf/smbconf_reg.c:382:11: error: 'struct registry_value' 
has no member named 'type'
  if (value->type != REG_MULTI_SZ) {
           ^
In file included from ../source3/include/includes.h:382:0,
                 from ../source3/lib/smbconf/smbconf_reg.c:20:
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_delete_values':
../source3/lib/smbconf/smbconf_reg.c:570:9: error: 'struct registry_key' has 
no member named 'key'
      key->key->name,
         ^
../source3/../lib/util/debug.h:181:20: note: in definition of macro 'DEBUG'
        && (dbgtext body) )
                    ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_init':
../source3/lib/smbconf/smbconf_reg.c:599:10: error: 'KEY_SMBCONF' undeclared 
(first use in this function)
   path = KEY_SMBCONF;
          ^
../source3/lib/smbconf/smbconf_reg.c:630:9: error: 'KEY_ENUMERATE_SUB_KEYS' 
undeclared (first use in this function)
         KEY_ENUMERATE_SUB_KEYS | REG_KEY_WRITE,
         ^
../source3/lib/smbconf/smbconf_reg.c:630:34: error: 'REG_KEY_WRITE' undeclared 
(first use in this function)
         KEY_ENUMERATE_SUB_KEYS | REG_KEY_WRITE,
                                  ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_drop':
../source3/lib/smbconf/smbconf_reg.c:729:27: error: storage size of 'action' 
isn't known
  enum winreg_CreateAction action;
                           ^
../source3/lib/smbconf/smbconf_reg.c:750:38: error: 'REG_KEY_WRITE' undeclared 
(first use in this function)
  werr = reg_open_path(mem_ctx, path, REG_KEY_WRITE, token,
                                      ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_share_exists':
../source3/lib/smbconf/smbconf_reg.c:868:9: error: 'REG_KEY_READ' undeclared 
(first use in this function)
         REG_KEY_READ, &key);
         ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_get_share':
../source3/lib/smbconf/smbconf_reg.c:911:9: error: 'REG_KEY_READ' undeclared 
(first use in this function)
         REG_KEY_READ, &key);
         ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_set_parameter':
../source3/lib/smbconf/smbconf_reg.c:979:9: error: 'REG_KEY_WRITE' undeclared 
(first use in this function)
         REG_KEY_WRITE, &key);
         ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_get_parameter':
../source3/lib/smbconf/smbconf_reg.c:1006:9: error: 'REG_KEY_READ' undeclared 
(first use in this function)
         REG_KEY_READ, &key);
         ^
../source3/lib/smbconf/smbconf_reg.c: In function 
'smbconf_reg_delete_parameter':
../source3/lib/smbconf/smbconf_reg.c:1051:9: error: 'REG_KEY_ALL' undeclared 
(first use in this function)
         REG_KEY_ALL, &key);
         ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_get_includes':
../source3/lib/smbconf/smbconf_reg.c:1087:9: error: 'REG_KEY_READ' undeclared 
(first use in this function)
         REG_KEY_READ, &key);
         ^
../source3/lib/smbconf/smbconf_reg.c: In function 'smbconf_reg_set_includes':
../source3/lib/smbconf/smbconf_reg.c:1114:9: error: 'REG_KEY_ALL' undeclared 
(first use in this function)
         REG_KEY_ALL, &key);
         ^
../source3/lib/smbconf/smbconf_reg.c: In function 
'smbconf_reg_delete_includes':
../source3/lib/smbconf/smbconf_reg.c:1148:9: error: 'REG_KEY_ALL' undeclared 
(first use in this function)
         REG_KEY_ALL, &key);
         ^
Waf: Leaving directory `/home/linteg/samba-4.1.0/bin'
Build failed:
 -> task failed (err #1): 
	{task: cc reg_backend_smbconf.c -> reg_backend_smbconf_49.o}
 -> task failed (err #1): 
	{task: cc smbconf_reg.c -> smbconf_reg_84.o}

########################
( I tried te stuff from git with the same result,   )

help/advice would be apreciated

sincerely
luxInteg




More information about the samba mailing list