Compiling Samba with -O2 flag

Beschorner Daniel Daniel.Beschorner at facton.de
Mon Aug 23 23:53:58 GMT 2004


I'm observing this issue for some time now. 

If I compile our Samba PDC (Linux, x86, LDAP) with CFLAGS="-O2" and GCC >=3
every domain joining of a windows workstation ends up with

[2004/08/23 19:29:58, 0] rpc_server/srv_samr.c:api_samr_set_userinfo(786)
  api_samr_set_userinfo: Unable to unmarshall SAMR_Q_SET_USERINFO.
[2004/08/23 19:29:58, 0] libsmb/smbencrypt.c:decode_pw_buffer(521)
  decode_pw_buffer: incorrect password length (-1061250291).
[2004/08/23 19:29:58, 0] libsmb/smbencrypt.c:decode_pw_buffer(522)
  decode_pw_buffer: check that 'encrypt passwords = yes'

in the log and "incorrect user name" is displayed by the client.

Everything else in Samba beside this problem seems to work fine.

CFLAGS="-O" or GCC<3 with CFLAGS="-O2" solve the problem.

Tested with GCC 3.3.1 and 3.3.3 (SuSE).

Rather a Samba bug than the compiler?

Thanks
Daniel


More information about the samba-technical mailing list