Cannot build samba 3.3.8 (configure: WARNING: krb5/locate_plugin.h: section "Present But Cannot Be Compiled")

Pierre Carrier geoffroy.carrier at
Fri Sep 10 04:27:53 MDT 2010

Hello list,

Following instructions to report it from ./configure... Anything else
needed to investigate?

On tag release-3-3-8, after a git reset --hard, git clean -fd:

% ./configure.developer --prefix=/opt/samba
checking for Active Directory and krb5 support... auto
checking for ldap_initialize... (cached) yes
checking for ldap_add_result_entry... yes
checking for kerberos 5 install path... no krb5-path given
checking for krb5-config... /usr/bin/krb5-config
checking for working krb5-config... yes
checkyes krb5.h usability...
checking krb5.h presence... yes
checking for krb5.h... yes
checking krb5/locate_plugin.h usability... no
checking krb5/locate_plugin.h presence... yes
configure: WARNING: krb5/locate_plugin.h: present but cannot be compiled
configure: WARNING: krb5/locate_plugin.h:     check for missing
prerequisite headers?
configure: WARNING: krb5/locate_plugin.h: see the Autoconf documentation
configure: WARNING: krb5/locate_plugin.h:     section "Present But
Cannot Be Compiled"
configure: WARNING: krb5/locate_plugin.h: proceeding with the compiler's result
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to samba-technical at ##
configure: WARNING:     ## ---------------------------------------- ##

% make
Using FLAGS      =  -O -g -D_SAMBA_BUILD_=3 -g -Wall -Wshadow
-Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD
-DDEVELOPER -Wdeclaration-after-statement
-I/home/pcarrier/samba/source/iniparser/src -Iinclude -I./include  -I.
-I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns
-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 -DLDAP_DEPRECATED   -I/include
-I/home/pcarrier/samba/source/lib -D_SAMBA_BUILD_=3
      PICFLAG    = -fPIC
      LIBS       = -lcrypt -lcap -lresolv -lnsl -ldl
      LDFLAGS    = -pie -Wl,-z,relro -L./bin
      DYNEXP     = -Wl,--export-dynamic
      LDSHFLAGS  = -shared -Wl,-Bsymbolic -Wl,-z,relro -L./bin
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-soname=
Compiling libsmb/clikrb5.c
In file included from /usr/include/krb5.h:825:0,
                 from include/includes.h:167,
                 from libsmb/clikrb5.c:26:
/usr/include/krb5-protos.h: In function ‘krb5_425_conv_principal’:
/usr/include/krb5-protos.h:45:6: error: expected declaration
specifiers before numeric constant
/usr/include/krb5-protos.h:56:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before numeric constant
/usr/include/krb5-protos.h:485:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before numeric constant
/usr/include/krb5-protos.h:633:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before numeric constant

% pacman -Qi heimdal
Name           : heimdal
Version        : 1.3.3-1
URL            :
Licences       : custom
Groups         : None
Provides       : None
Depends On     : db  openssl  sqlite3  e2fsprogs
Optional Deps  : None
Required By    : autofs  gnome-vfs  gtk2  libcups  librpcsecgss
libtirpc  neon  nss_ldap  openssh  samba  smbclient
Conflicts With : None
Replaces       : None
Installed Size : 12788.00 K
Packager       : Allan McRae <allan at>
Architecture   : x86_64
Build Date     : Thu 27 May 2010 16:16:37 BST
Install Date   : Tue 07 Sep 2010 12:23:15 BST
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description    : Implementation of Kerberos V5 libraries


More information about the samba-technical mailing list