Hi all,

I tried to compile krb5 (as prerequisite for Samba4) but the make process 
failed with following error:

<snip>
...
making all in kadmin/testing/util...
make[3]: Entering directory `/tmp/build/krb5-1.11/src/kadmin/testing/util'
gcc  -DHAS_STDARG -I../../../include -I../../../include  -I../../../lib/kdb/ -
DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/usr/include/et -I/usr/include/ss -g -O2 -
Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -
Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -
Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -
Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-
compare -Werror=uninitialized -Werror=declaration-after-statement -
Werror=variadic-macros -Werror-implicit-function-declaration -pthread -c 
tcl_kadm5.c
tcl_kadm5.c: In Funktion »parse_keysalts«:
tcl_kadm5.c:804:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c:817:27: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c: In Funktion »parse_key_data«:
tcl_kadm5.c:859:27: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c:871:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c:878:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c: In Funktion »parse_tl_data«:
tcl_kadm5.c:899:27: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c:911:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c:932:27: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c:952:27: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c:965:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c: In Funktion »parse_config_params«:
tcl_kadm5.c:995:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c: In Funktion »parse_principal_ent«:
tcl_kadm5.c:1132:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
tcl_kadm5.c: In Funktion »parse_policy_ent«:
tcl_kadm5.c:1394:23: Fehler: »Tcl_Interp« hat kein Element namens »result«
make[3]: *** [tcl_kadm5.o] Fehler 1
make[3]: Leaving directory `/tmp/build/krb5-1.11/src/kadmin/testing/util'
make[2]: *** [all-recurse] Fehler 1
make[2]: Leaving directory `/tmp/build/krb5-1.11/src/kadmin/testing'
make[1]: *** [all-recurse] Fehler 1
make[1]: Leaving directory `/tmp/build/krb5-1.11/src/kadmin'
make: *** [all-recurse] Fehler 1
...
</snip>

"Fehler: »Tcl_Interp« hat kein Element namens »result«" 
means somewhat like
"Error: »Tcl_Interp« has no element named »result«"

Is there a known quick solution (except passing --without-tcl to configure 
which i than did); should I file a ticket for this failure?


krb5's configure does only check for Python version 2.3 and 2.5 but we now have 
2.7. Is this intentionally ignored or shouldn't that be fixed, too?  If yes, 
find a patch attached which tries to fix this. Yes, its not well designed - 
imho 
the checks should be implemented as a loop over used python version numbers...


--
Thomas
Submitted By: Thomas Trepl <thomas at linuxfromscratch dot org>
Date: 2013-01-27
Initial Package Version: 1.11
Upstream Status: none
Origin: Thomas Trepl
Description: This patch fixes a test on a unset variable (eDirectory)
             and adds the version 2.7 to the supported Python versions

diff -Naur krb5-1.11.orig/src/configure krb5-1.11/src/configure
--- krb5-1.11.orig/src/configure        2012-12-18 03:47:29.000000000 +0100
+++ krb5-1.11/src/configure     2013-01-27 09:33:26.146532430 +0100
@@ -5542,7 +5542,7 @@
 fi
 
 if test $with_ldap = yes; then
-  if test $with_edirectory = yes; then
+  if test x$with_edirectory = xyes; then
     as_fn_error $? "Cannot enable both OpenLDAP and eDirectory backends; choose one." "$LINENO" 5
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: enabling OpenLDAP database backend module support" >&5
@@ -12334,7 +12334,7 @@
 # default, so it's not a big deal that it isn't very good.  We should
 # use python-config instead.
 PYTHON_LIB=
-for ac_header in Python.h python2.3/Python.h python2.5/Python.h
+for ac_header in Python.h python2.3/Python.h python2.5/Python.h python2.7/Python.h
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -12412,6 +12412,41 @@
 $as_echo "$ac_cv_lib_python2_5_main" >&6; }
 if test "x$ac_cv_lib_python2_5_main" = xyes; then :
   PYTHON_LIB=-lpython2.5
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpython2.7" >&5
+$as_echo_n "checking for main in -lpython2.7... " >&6; }
+if ${ac_cv_lib_python2_7_main+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpython2.7  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+
+int
+main ()
+{
+return main ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_python2_7_main=yes
+else
+  ac_cv_lib_python2_7_main=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_python2_7_main" >&5
+$as_echo "$ac_cv_lib_python2_7_main" >&6; }
+if test "x$ac_cv_lib_python2_7_main" = xyes; then :
+  PYTHON_LIB=-lpython2.7
+fi
+
 fi
 
 fi

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to