Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Kerberos on 6.5 : (3 Items)
   
Kerberos on 6.5  
Hello,

I'm trying to get a working Kerberos implementation on QNX 6.5. I found both heimdal and mit-krb in pkgsrc but neither 
build. Ultimately this is for a Samba 3.6 compile that utilizes Active Directory. I feel that mit-krb is my best bet but
 compiling with default configuration results in "Shared libraries are not supported on this platform". Trying to 
compile with static libraries results in other make issues (No rule to make target, etc). Anyone have any advice or has 
anyone gotten a working Kerberos on QNX 6.5?

Thank you!
Re: Kerberos on 6.5  
Hi Carlton,

I can't offer any guarantees for QNX 6.5, but I can pass along the patch we use for MIT krb5 to build for QNX 6.6.   It 
may not work out of the box but hopefully it'll give you a leg up.   Our build system is derived from Arch Linux's 
makepkg, so the build instruction we use were originally sourced from https://github.com/archlinux/svntogit-packages/
tree/packages/krb5/trunk .    Our system is currently building krb5 version 1.19.1 and requires libldap (from openldap) 
to be available in the environment.

----

# Build environment
CARCH="ntox86"
CHOST="x86-unknown-nto-qnx"
CBUILD="x86_64-unknown-linux-gnu"
export CC=qcc
export CXX=QCC
export CFLAGS="-O2"
export AR="${CARCH}-ar"
export AS="${CARCH}-as"
export ELFEDIT="${CARCH}-elfedit"
export LD="${CARCH}-ld"
export NM="${CARCH}-nm"
export OBJDUMP="${CARCH}-objdump"
export OBJCOPY="${CARCH}-objcopy"
export RANLIB="${CARCH}-ranlib"
export SIZE="${CARCH}-size"
export STRINGS="${CARCH}-strings"
export STRIP="${CARCH}-strip"


# Config overrides
export CFLAGS+=" -fno-strict-aliasing -fstack-protector-all"
export krb5_cv_attr_constructor_destructor=yes,yes
export ac_cv_func_regcomp=no
export ac_cv_printf_positional=no

# Prepare sources
# cf https://bugs.gentoo.org/show_bug.cgi?id=448778
patch -Np1 < krb5-config_LDFLAGS.patch
# QNX cross-build fixes
patch -Np1 < qnx-port.patch
# FS#25384
sed -i "/KRB5ROOT=/s/\/local//" src/util/ac_check_krb5.m4

# Configure and build
./configure --build=${CBUILD} --host=${CHOST} \
            --prefix=/usr \
            --sbindir=/usr/bin \
            --sysconfdir=/etc \
            --localstatedir=/var/lib \
            --enable-shared \
            --disable-rpath \
            --without-tcl \
            --enable-dns-for-realm \
            --with-ldap \
            --without-system-verto
               
make

----

I hope this is of some help.  Good luck!

-Will
Attachment: Text krb5-config_LDFLAGS.patch 482 bytes Text qnx-port.patch 4.34 KB
Re: Kerberos on 6.5  
Thank you for the information Will. I'll dive into this and see where I can get!