[OpenAFS] Build samba 3.2.2 with openafs 1.4.7
Gémes Géza
geza@kzsdabas.hu
Fri, 05 Sep 2008 18:35:00 +0200
Hi,
sorry for posting it here, as it seems to be a samba build related
problem, but I was advised on the samba-technical mailing list to do so.
I've tried to build samba-3.2.2 with afs support, so I cofigured it with:
./configure --with-afs --with-fake-kaserver --with-vfs-afsacl
It gave the following warnings:
configure: WARNING: afs.h: present but cannot be compiled
configure: WARNING: afs.h: check for missing prerequisite headers?
configure: WARNING: afs.h: see the Autoconf documentation
configure: WARNING: afs.h: section "Present But Cannot Be Compiled"
configure: WARNING: afs.h: proceeding with the preprocessor's result
configure: WARNING: afs.h: in the future, the compiler will take precedence
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: ## Report this to samba-technical@samba.org ##
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: afs/afs.h: present but cannot be compiled
configure: WARNING: afs/afs.h: check for missing prerequisite headers?
configure: WARNING: afs/afs.h: see the Autoconf documentation
configure: WARNING: afs/afs.h: section "Present But Cannot Be Compiled"
configure: WARNING: afs/afs.h: proceeding with the preprocessor's result
configure: WARNING: afs/afs.h: in the future, the compiler will take
precedence
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: ## Report this to samba-technical@samba.org ##
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: com_err.h: present but cannot be compiled
configure: WARNING: com_err.h: check for missing prerequisite headers?
configure: WARNING: com_err.h: see the Autoconf documentation
configure: WARNING: com_err.h: section "Present But Cannot Be Compiled"
configure: WARNING: com_err.h: proceeding with the preprocessor's result
configure: WARNING: com_err.h: in the future, the compiler will take
precedence
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: ## Report this to samba-technical@samba.org ##
configure: WARNING: ## ---------------------------------------- ##
Going further, make gives:
Compiling lib/talloc/talloc.c
In file included from include/includes.h:219,
from lib/talloc/talloc.c:36:
/usr/include/afs/com_err.h:15: error: expected declaration specifiers or
‘...’ before ‘afs_int32’
/usr/include/afs/com_err.h:16: error: expected declaration specifiers or
‘...’ before ‘afs_int32’
/usr/include/afs/com_err.h:18: warning: parameter names (without types)
in function declaration
/usr/include/afs/com_err.h:19: warning: parameter names (without types)
in function declaration
/usr/include/afs/com_err.h:22: error: expected declaration specifiers or
‘...’ before ‘afs_int32’
/usr/include/afs/com_err.h:23: error: expected declaration specifiers or
‘...’ before ‘afs_int32’
/usr/include/afs/com_err.h:24: error: expected declaration specifiers or
‘...’ before ‘afs_int32’
The following command failed:
gcc -I. -I/home/kzsdabas/tmp/samba-3.2.2/source -O -D_SAMBA_BUILD_=3
-I/usr/include/afs
-I/home/kzsdabas/tmp/samba-3.2.2/source/iniparser/src -Iinclude
-I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include
-I./libaddns -I./librpc -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I.
-I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns
-I./librpc -I./popt -I/usr/include/afs -DLDAP_DEPRECATED -I/include
-I/home/kzsdabas/tmp/samba-3.2.2/source/lib -D_SAMBA_BUILD_=3 -fPIC -c
lib/talloc/talloc.c -o lib/talloc/talloc.o
make: *** [lib/talloc/talloc.o] Error 1
Any ideas what needs to get fixed?
Thanks in advance
Geza