From: Volker Lendecke on
On Tue, Apr 13, 2010 at 10:46:22PM +0200, Christophe Deze wrote:
> but i cant install libldap2-dev that seem to be required
>
> My server is a ubuntu hardy

Ok, then it's a bit difficult. Maybe Olivier can figure it
out without line numbers.

Volker
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Christophe Deze on
Le 14/04/2010 21:39, Volker Lendecke a écrit :
> On Tue, Apr 13, 2010 at 10:46:22PM +0200, Christophe Deze wrote:
>
>> but i cant install libldap2-dev that seem to be required
>>
>> My server is a ubuntu hardy
>>
> Ok, then it's a bit difficult. Maybe Olivier can figure it
> out without line numbers.
>
> Volker
>
>
>
I m bit lost
in fact i still can't compile samba 3.5.2 sources
same error after having installed libldap2-dev
something else must be missing

Using CFLAGS = -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER
-Wdeclaration-after-statement -Werror-implicit-function-declaration -I.
-I/root/samba-3.5.2/source3 -I/root/samba-3.5.2/source3/../lib/popt
-I/root/samba-3.5.2/source3/iniparser/src -Iinclude -I./include -I. -I.
-I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./..
-I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude
-I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns
-I./librpc -I./.. -I./../lib/popt -I/root/samba-3.5.2/source3/lib -I..
-I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
PICFLAG = -fPIC
LIBS = -lresolv -lresolv -lnsl -ldl
LDFLAGS = -pie -Wl,-z,relro -Wl,--as-needed -L./bin
DYNEXP = -Wl,--export-dynamic
LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-z,relro -Wl,--as-needed
-L./bin -lc -Wl,-z,defs
SHLIBEXT = so
SONAMEFLAG = -Wl,-soname=
Compiling libsmb/clispnego.c
libsmb/clispnego.c: Dans la fonction «spnego_gen_negTokenTarg» :
libsmb/clispnego.c:391: erreur: déclaration implicite de la fonction «
«cli_krb5_get_ticket» »
The following command failed:
gcc -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings
-DDEBUG_PASSWORD -DDEVELOPER -Wdeclaration-after-statement
-Werror-implicit-function-declaration -I. -I/root/samba-3.5.2/source3
-I/root/samba-3.5.2/source3/../lib/popt
-I/root/samba-3.5.2/source3/iniparser/src -Iinclude -I./include -I. -I.
-I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./..
-I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude
-I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns
-I./librpc -I./.. -I./../lib/popt -I/root/samba-3.5.2/source3/lib -I..
-I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c
libsmb/clispnego.c -o libsmb/clispnego.o
make: *** [libsmb/clispnego.o] Erreur 1



Olivier wrote me :
do you have the option to edit vfs_scannedonly.c and change
#define SCANNEDONLY_DEBUG 9
to
#define SCANNEDONLY_DEBUG 5
and set the samba logging to 5 or higher ?

I hope that will give a little more logging.

regards





--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Volker Lendecke on
On Wed, Apr 14, 2010 at 10:10:58PM +0200, Christophe Deze wrote:
> I m bit lost
> in fact i still can't compile samba 3.5.2 sources
> same error after having installed libldap2-dev
> something else must be missing

It's the kerberos development libs you're missing, or
alternatively the bug fix for bug 7327,
http://git.samba.org/?p=samba.git;a=commitdiff;h=7ccd68073dd

Volker
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Christophe Deze on
good news ... or not

I just try to add vfs object = audit to print$ share

and the bug dispear

strange ...


Le 13/04/2010 19:34, Volker Lendecke a écrit :
> On Tue, Apr 13, 2010 at 05:26:57PM +0200, Christophe Deze wrote:
>
>> here is my valgrind.log
>> I hope it helps!
>>
> It does -- a bit:
>
> ==32107== Invalid read of size 4
> ==32107== at 0x4B86AF9: (within /usr/lib/samba/vfs/scannedonly..so)
> ==32107== by 0x815234F: smb_vfs_call_open (in /usr/sbin/smbd)
> ==32107== by 0x8149F56: (within /usr/sbin/smbd)
> ==32107== by 0x814C059: create_file_default (in /usr/sbin/smbd)
> ==32107== by 0x8189161: (within /usr/sbin/smbd)
> ==32107== by 0x81523FE: smb_vfs_call_create_file (in /usr/sbin/smbd)
> ==32107== by 0x83E165A: (within /usr/sbin/smbd)
> ==32107== by 0x83E1B7B: clean_up_driver_struct (in /usr/sbin/smbd)
> ==32107== by 0x82D179D: _spoolss_AddPrinterDriver (in /usr/sbin/smbd)
> ==32107== by 0x82D1E07: _spoolss_AddPrinterDriverEx (in /usr/sbin/smbd)
> ==32107== by 0x82E362C: (within /usr/sbin/smbd)
> ==32107== by 0x83272EA: api_pipe_request (in /usr/sbin/smbd)
> ==32107== Address 0x18 is not stack'd, malloc'd or (recently) free'd
>
> It would be very helpful if you could recompile with -g to
> get line numbers. From the message we see that apparently
> some pointer (very likely "fsp") is NULL while
> scannedonly_open is called. You might want to contact the
> author of the scannedonly module, Olivier Sessink, directly
> with this analysis. Either he is listening here on this
> list, or you can find his email address from the checkin
> reachable under
>
> http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=31e14285
>
> Volker
>

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