Re: [Samba] 3.0.23 + afsacl build problem

2006-06-20 Thread Volker Lendecke
On Mon, Jun 19, 2006 at 02:27:09PM +0200, Greszler Szilárd wrote:
 I've tried to compile samba 3.0.23rc2 --with-vfs-afsacl --fake-kaserver, 
 but I've got errors.

Thanks for pointing that out, trying to fix it.

Volker


pgp19hpEm97UN.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] 3.0.23 + afsacl build problem

2006-06-20 Thread Volker Lendecke
On Mon, Jun 19, 2006 at 02:27:09PM +0200, Greszler Szilárd wrote:
 I've tried to compile samba 3.0.23rc2 --with-vfs-afsacl --fake-kaserver, 
 but I've got errors.

Can you try with r16411?

 So the question is, how can I get a mem_ctx variable in that function, 
 where can I learn more about mem_ctx, because now I don't know what is it.

mem_ctx is a talloc context. This is a structure that you
can attach other memory to, and if you free the talloc
context all attached memory is also freed. There's more to
it, see
http://samba.org/ftp/unpacked/samba4/source/lib/talloc/talloc_guide.txt
for a reference.

In Samba3, we now have the easy tmp_talloc_ctx() that is a
per-smbrequest talloc context that is freed after every smb
request is done.

Volker


pgpL0eC7wwRdu.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] 3.0.23 + afsacl build problem

2006-06-19 Thread Greszler Szilárd

Hi!

I've tried to compile samba 3.0.23rc2 --with-vfs-afsacl --fake-kaserver, 
but I've got errors.


The first error and its solution is: I've to add -lssl to the LIBS line 
in the top level Makefile.


Then I've got this:

Compiling modules/vfs_afsacl.c with -fPIC
modules/vfs_afsacl.c: In function `new_afs_ace':
modules/vfs_afsacl.c:145: warning: passing arg 2 of `lookup_sid' from 
incompatible pointer type
modules/vfs_afsacl.c:145: warning: passing arg 3 of `lookup_sid' from 
incompatible pointer type
modules/vfs_afsacl.c:145: warning: passing arg 4 of `lookup_sid' from 
incompatible pointer type

modules/vfs_afsacl.c:145: error: too few arguments to function `lookup_sid'
modules/vfs_afsacl.c:153: warning: passing arg 2 of `strchr_m' makes 
integer from pointer without a cast
modules/vfs_afsacl.c:158: error: `LOOKUP_NAME_FULL' undeclared (first 
use in this function)
modules/vfs_afsacl.c:158: error: (Each undeclared identifier is reported 
only once

modules/vfs_afsacl.c:158: error: for each function it appears in.)
modules/vfs_afsacl.c:159: warning: passing arg 1 of `lookup_name' 
discards qualifiers from pointer target type
modules/vfs_afsacl.c:159: warning: passing arg 3 of `lookup_name' makes 
integer from pointer without a cast
modules/vfs_afsacl.c:159: warning: passing arg 4 of `lookup_name' from 
incompatible pointer type
modules/vfs_afsacl.c:159: warning: passing arg 5 of `lookup_name' from 
incompatible pointer type
modules/vfs_afsacl.c:159: warning: passing arg 6 of `lookup_name' from 
incompatible pointer type

modules/vfs_afsacl.c:159: error: too few arguments to function `lookup_name'
modules/vfs_afsacl.c: In function `nt_to_afs_acl':
modules/vfs_afsacl.c:754: warning: passing arg 2 of `lookup_sid' from 
incompatible pointer type
modules/vfs_afsacl.c:754: warning: passing arg 3 of `lookup_sid' from 
incompatible pointer type
modules/vfs_afsacl.c:754: warning: passing arg 4 of `lookup_sid' from 
incompatible pointer type

modules/vfs_afsacl.c:754: error: too few arguments to function `lookup_sid'
modules/vfs_afsacl.c: In function `afsacl_connect':
modules/vfs_afsacl.c:1012: warning: assignment discards qualifiers from 
pointer target type

make: *** [modules/vfs_afsacl.po] Error 1

Then I added to lookup_sid in line 145 and to lookup_name in line 159 
the mem_ctx argument, and changed LOOKUP_NAME_FULL to LOOKUP_NAME_ALL.


Now I should add the mystic mem_ctx argument in line 754, but it's not 
defined in this (nt_to_afs_acl) function, so I've stucked.
I've tried to pass a NULL instead of it to check for further build 
problems, but it has been compiled. (And made funny things with acls, if 
you tried to change them :) )


So the question is, how can I get a mem_ctx variable in that function, 
where can I learn more about mem_ctx, because now I don't know what is it.
The other purpose of this mail is to inform you about these problems. I 
hope this is the right place for it, and I can see the solution for 
these problems in the final 3.0.23 at least, if I can't get over this 
problem with your help.


Thanks for any help in advance!

Szilard


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba