OpenWrt Forum Archive

Topic: kerberos 5

The content of this topic has been archived on 9 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Is there someone who tried to build kerberos 5 on kamikaze ?
I'm trying but :

checking for working regcomp... configure: error: Cannot test regcomp when cross compiling
configure: error: /bin/sh './configure' failed for plugins/kdb/db2
make[2]: *** [/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/build_dir/i386/krb5-1.6.3/.configured] Error 1
make[2]: Leaving directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/package/krb5-1.6.3'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686'
make: *** [world] Error 2

I have tried to edit configure avoiding some checks but it seems impossibile to come out sad .
Any advice ?

I tried it. But it's too hard for me. It compiles a bit further than yours. See the net/mit-krb5/Makefile below:

#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=mit-krb5
PKG_VERSION:=1.6.3
PKG_RELEASE:=1

PKG_SOURCE:=krb5-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://web.mit.edu/Kerberos/dist/krb5/1.6/
PKG_MD5SUM:=f32a9647deed175dd6bcc5e22d907541

PKG_FIXUP = libtool

include $(INCLUDE_DIR)/package.mk

define Package/mit-krb5
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Kerberos
  URL:=http://web.mit.edu/Kerberos/
endef

define Package/mit-krb5/description
    Kerberos
endef

CONFIGURE_PATH := ./src

CONFIGURE_VARS += \
    cross_compiling=${cross_compiling=yes,yes} \
    krb5_cv_attr_constructor_destructor=${krb5_cv_attr_constructor_destructor=yes,yes} \
    ac_cv_func_regcomp=${ac_cv_func_regcomp=yes,yes} \
    ac_cv_printf_positional=${ac_cv_printf_positional=yes,yes} \
    ac_cv_file__etc_environment=${ac_cv_file__etc_environment=no,no} \
    ac_cv_file__etc_TIMEZONE=${ac_cv_file__etc_TIMEZONE=no,no} \
    \
    enable_thread_support=${enable_thread_support=no,no} \
    enable_thread=${enable_thread_support=no,no} \
    KRB5_AC_ENABLE_THREADS=${KRB5_AC_ENABLE_THREADS=no,no} \

CONFIGURE_ARGS += \
    --disable-thread-support \
    --enable-shared \
    --without-krb4 \
    --without-tcl \
    --disable-ipv6 \
    \
    CFLAGS="$(TARGET_CFLAGS) -DENABLE_THREADS=0" \

define Build/Compile
    $(MAKE) -C $(PKG_BUILD_DIR)/src \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        CFLAGS="$(TARGET_CFLAGS) -DENABLE_THREADS=0" \
        CC_LINK="$(TARGET_CC)" \
        CC="$(TARGET_CC)" \
        all install
endef

define Package/mit-krb5/install
    $(INSTALL_DIR) $(1)/sbin
    # $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin
endef

$(eval $(call BuildPackage,mit-krb5))

(Last edited by forum2008 on 6 Mar 2008, 15:14)

I'll give your makefile a try and see what happens .......

I tried with your makefile:

kiaz@eniac:~/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686$ make V=99
make[1]: Entering directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686'
make[2]: Entering directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686'
make[3]: Entering directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/package/mit-krb5'
make -C /home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/build_dir/i386/mit-krb5-1.6.3 DESTDIR="/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/build_dir/i386/mit-krb5-1.6.3/ipkg-install" CFLAGS="-O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts -DENABLE_THREADS=0" CC_LINK="i386-linux-uclibc-gcc" CC="i386-linux-uclibc-gcc" all install
make[4]: Entering directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/build_dir/i386/mit-krb5-1.6.3'
Makefile:1: *** missing separator.  Stop.
make[4]: Leaving directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/build_dir/i386/mit-krb5-1.6.3'
make[3]: *** [/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/build_dir/i386/mit-krb5-1.6.3/.built] Error 2
make[3]: Leaving directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/package/mit-krb5'
make[2]: *** [package/mit-krb5/compile] Error 2
make[2]: Leaving directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686'
make[1]: *** [/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/staging_dir/i386/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686'
make: *** [world] Error 2

I can't understand what's wrong ...

Fix the tabs if you copy&paste the Makefile tongue

(Last edited by forum2008 on 7 Mar 2008, 11:03)

I tried to fix with unexpand but same result ...
Also, i noticed that the folder build_dir/i386/mit-krb5-1.6.3 is empty ...
i tried to force this coping the file from the untarred folder krb5-1.6.3 but no way ..
maybe the packet should be named just krb5-1.6.3 ?

The discussion might have continued from here.