Bug 4487 - vfs_afsacl and afs not building.
Summary: vfs_afsacl and afs not building.
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: VFS (show other bugs)
Version: 3.0.25
Hardware: Other Solaris
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 22:48 UTC by Sean
Modified: 2007-08-24 13:53 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix compile problems with afsacl vfs module. (3.75 KB, patch)
2007-08-24 13:51 UTC, Johan Andersson
no flags Details
Patch to make log2pcap compile with --with-afs. (1.14 KB, patch)
2007-08-24 13:53 UTC, Johan Andersson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean 2007-04-04 22:48:47 UTC
I tried to build vfs_afsacl and it fails with
make: Fatal error: Don't know how to make target `modules/vfs_afsacl.po'
anarchist [smbbuild]:30 source> make
Using FLAGS      =  -O -DMSU_PRINTER_AUTH_PORT=91015 -DMSU_PRINTER_AUTH_HOST="prtauth.cl.msu.edu" -DMSU_PRINTER_QUOTA -DMSU_GID=65534 -DMSU_UID=65534 -DMSU_MODS -D_SAMBA_BUILD_=3 -I/home/smbbuild/samba-3.0.25pre2/source/popt -I/home/smbbuild/samba-3.0.25pre2/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -I/usr/vice/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include -DLDAP_DEPRECATED -DSUNOS5    -I/home/smbbuild/samba-3.0.25pre2/source/lib -D_SAMBA_BUILD_=3
      PICFLAG    = -KPIC
      LIBS       = -lsendfile -lresolv -lnsl -lsocket -liconv
      LDFLAGS    = -L/usr/vice/lib -lthread -L/usr/local/lib
      DYNEXP     =
      LDSHFLAGS  = -G -O -DMSU_PRINTER_AUTH_PORT=91015 -DMSU_PRINTER_AUTH_HOST="prtauth.cl.msu.edu" -DMSU_PRINTER_QUOTA -DMSU_GID=65534 -DMSU_UID=65534 -DMSU_MODS -D_SAMBA_BUILD_=3 -L/usr/vice/lib -lthread -L/usr/local/lib
      SHLIBEXT   = so
      SONAMEFLAG = -h
make: Fatal error: Don't know how to make target `modules/vfs_afsacl.po'
anarchist [smbbuild]:31 source>

This is with both sun CC and GCC built with 

CFLAGS='-O -DMSU_PRINTER_AUTH_PORT=91015 -DMSU_PRINTER_AUTH_HOST=\"prtauth.cl.msu.edu\" -DMSU_PRINTER_QUOTA -DMSU_GID=65534 -DMSU_UID=65534 -DMSU_MODS'
export CFLAGS
CPPFLAGS="-I/usr/vice/include"
export CPPFLAGS
LDFLAGS="-L/usr/vice/lib"
export LDFLAGS
./configure --prefix=/usr/local/samba --with-pam  --with-included-popt --disable-cups --with-syslog --with-vfs-afsacl --with-sys-quotas --without-afs
echo you still need to edit the Makefile to add LIBSMB_OBJ = msu/msu_print_quota.o


It also chokes miserably if i use the --with-afs flag but with different errors. 
mostly conflicts with the xdr.h includes with gcc. I havent tried it with cc yet. 

I am also getting a ton of warnings using sun cc like: 
"./librpc/gen_ndr/srvsvc.h", line 213: warning: enumerator value overflows INT_MAX (2147483647)
"./librpc/gen_ndr/srvsvc.h", line 216: warning: enumerator value overflows INT_MAX (2147483647)
"./librpc/gen_ndr/srvsvc.h", line 219: warning: enumerator value overflows INT_MAX (2147483647)
"./librpc/gen_ndr/srvsvc.h", line 223: warning: enumerator value overflows INT_MAX (2147483647)

I am trying to keep this short, so if you need more info let me know.
Comment 1 Johan Andersson 2007-08-24 13:50:46 UTC
I had the same problem. I'll attach 2 patches that should fix this.
One is to fix the afsacl vfs module. The other one is to remove /usr/include/afs from the include path. AFS installs assert.h into /usr/include/afs, which makes log2pcap fail to build.
Comment 2 Johan Andersson 2007-08-24 13:51:49 UTC
Created attachment 2882 [details]
Patch to fix compile problems with afsacl vfs module.
Comment 3 Johan Andersson 2007-08-24 13:53:03 UTC
Created attachment 2883 [details]
Patch to make log2pcap compile with --with-afs.