Bug 1744 - Error compiling "utils/ntlm_auth_diagnostics.c" on Solaris 9
Summary: Error compiling "utils/ntlm_auth_diagnostics.c" on Solaris 9
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: ntlm_auth tool (show other bugs)
Version: 3.0.6
Hardware: Sparc Solaris
: P3 normal
Target Milestone: none
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-09 15:59 UTC by Rejean Lepage
Modified: 2005-08-24 10:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rejean Lepage 2004-09-09 15:59:04 UTC
I cannot compile Samba 3.0.6 on Solaris 9, I have read many bug report. 
Here is my config.:

% gcc -v
Reading specs from /usr/local_8/opt/gcc-3.3/bin/../lib/gcc-lib/sparc-sun-
solaris2.8/3.3/specs
Configured with: ./configure --prefix=/usr/local/opt/gcc-3.3 --site=GRM-
Polytechnique
Thread model: posix
gcc version 3.3

path  = 
  /usr/local_8/opt/gcc-3.3/bin 
  /usr/bin /usr/sbin /usr/5bin /usr/ccs/bin /usr/openwin/bin 
  /usr/local_9/bin /usr/local_8/bin

% ./configure --prefix=/usr/local_9/opt/samba-3.0.6 --with-
lockdir=/var/lock/samba --with-configdir=/usr/local_9/opt/sa
mba-3.0.6/etc --with-smbwrapper --with-automount --with-syslog


It goes all well untill Compiling utils/ntlm_auth_diagnostics.c

/samba-3.0.6/source % make
Using FLAGS =  -O  -Iinclude -I/samba-3.0.6/source/include -I/samba-
3.0.6/source/ubiqx -I/samba-3.0.6/source/smbwrapper  -I. -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -I/samba-3.0.6/source   
      LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl
      LDSHFLAGS = -G
      LDFLAGS = 
Compiling utils/ntlm_auth_diagnostics.c
utils/ntlm_auth_diagnostics.c: In function `test_lm_ntlm_broken':
utils/ntlm_auth_diagnostics.c:61: error: invalid initializer
utils/ntlm_auth_diagnostics.c:103: error: incompatible types in assignment
utils/ntlm_auth_diagnostics.c: In function `test_ntlm_in_lm':
utils/ntlm_auth_diagnostics.c:182: error: invalid initializer
utils/ntlm_auth_diagnostics.c:202: error: incompatible types in assignment
utils/ntlm_auth_diagnostics.c: In function `test_ntlm_in_both':
utils/ntlm_auth_diagnostics.c:250: error: invalid initializer
utils/ntlm_auth_diagnostics.c:273: error: incompatible types in assignment
utils/ntlm_auth_diagnostics.c: In function `test_lmv2_ntlmv2_broken':
utils/ntlm_auth_diagnostics.c:320: warning: passing arg 1 of 
`NTLMv2_generate_names_blob' makes pointer from integer without a cast
utils/ntlm_auth_diagnostics.c:320: warning: passing arg 2 of 
`NTLMv2_generate_names_blob' makes pointer from integer without a cast
utils/ntlm_auth_diagnostics.c:323: error: invalid initializer
utils/ntlm_auth_diagnostics.c:364: error: incompatible types in assignment
utils/ntlm_auth_diagnostics.c: In function `test_plaintext':
utils/ntlm_auth_diagnostics.c:508: error: incompatible types in assignment
*** Error code 1
make: Fatal error: Command failed for target `utils/ntlm_auth_diagnostics.o'


Thank you.
Réjean
Comment 1 Gerald (Jerry) Carter (dead mail address) 2004-10-31 14:25:48 UTC
this seems ok on Solaris 9 x86 with gcc 3.4 (tested Samba 3.0.8pre2)
Comment 2 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:21:13 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.