Build Problem with 3.6.0rc2 and --with-fake-kaserver

John P Janosik jpjanosi at us.ibm.com
Thu Jun 23 10:09:16 MDT 2011


I'm getting the following when trying to build 3.6.0rc2 when configured 
with --with-fake-kaserver:

Using CFLAGS     = -I../lib/zlib -I/usr/afsws/include 
-D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -D_LINUX_SOURCE_COMPAT 
-qmaxmem=32000 -qhalt=e -I.  -I/usr/src/samba-3.6.0rc2/source3 
-I/usr/src/samba-3.6.0rc2/source3/../lib/popt 
-I/usr/src/samba-3.6.0rc2/source3/../lib/iniparser/src  -Iinclude 
-I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc 
-I./.. -I./../lib/talloc -I../lib/tdb/include   -DHAVE_CONFIG_H  -Iinclude 
-I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc -I./.. 
-I./../lib/popt -I/usr/smb_cluster/include 
-I/usr/src/samba-3.6.0rc2/source3/lib  -I..  -D_SAMBA_BUILD_=3 
-D_SAMBA_BUILD_=3
      PICFLAG    = -O2
      LIBS       = -liconv -lcrypto
      LDFLAGS    = -bI:afs.exp -L/usr/local/samba/lib -L./bin 
-L/usr/smb_cluster/lib
      DYNEXP     = -Wl,-brtl,-bexpfull,-bbigtoc
      LDSHFLAGS  = -O2 -Wl,-G,-bexpfull,-bbigtoc,-brtl  -bI:afs.exp 
-L/usr/local/samba/lib -L./bin -L/usr/smb_cluster/lib -lc 
      SHLIBEXT   = so
      SONAMEFLAG = #
Compiling lib/afs.c
"lib/afs.c", line 91.16: 1506-007 (S) "struct afs_key" is undefined.
"lib/afs.c", line 238.49: 1506-285 (S) The indirection operator cannot be 
applied to a pointer to an incomplete struct or union.
"lib/afs.c", line 239.56: 1506-285 (S) The indirection operator cannot be 
applied to a pointer to an incomplete struct or union.
"lib/afs.c", line 240.37: 1506-285 (S) The indirection operator cannot be 
applied to a pointer to an incomplete struct or union.
"lib/afs.c", line 241.52: 1506-285 (S) The indirection operator cannot be 
applied to a pointer to an incomplete struct or union.
"lib/afs.c", line 238.33: 1506-280 (W) Function argument assignment 
between types "const char*" and "int" is not allowed.
"lib/afs.c", line 241.47: 1506-280 (W) Function argument assignment 
between types "const char*" and "int" is not allowed.
"lib/afs.c", line 247.25: 1506-285 (S) The indirection operator cannot be 
applied to a pointer to an incomplete struct or union.

I see that afs_key is defined in secrets.h, which was included via 
includes.h in the last version I tested(3.5.8).  I added an include for 
secrets.h into lib/afs.c to work around the first error.

I also see that the struct holding the user info causing the rest of the 
errors above was renamed from server_info to session_info and was properly 
updated in lib/afs.c.  I'm looking at the code in 
smbd/service.c:make_connection_snum to see if I can find some difference 
with how the session_info script is filled in before the call to 
afs_login.  This might take me a bit so if anyone has any ideas please let 
me know.

Thanks,

John Janosik
jpjanosi at us.ibm.com


More information about the samba-technical mailing list