[Buildroot] package/erlang: OpenSSL is configured for kerberos but no krb5.h found

Johan Oudinet johan.oudinet at gmail.com
Tue Mar 24 12:47:46 UTC 2015


Hi again,

On Tue, Mar 24, 2015 at 11:39 AM, Johan Oudinet <johan.oudinet at gmail.com> wrote:
> I'm having trouble to get the ssl.app from Erlang installed on my target.
> Since BR2_ERLANG_OPENSSL is activated, it does configure Erlang with
> --with-ssl but there is a test for krb5.h that fails in
> $BUILD_DIR/erlang-17.4/erts/configure.in
>
> Actually, I don't even understand why it's trying to look for krb5.h
> since opensslconf.h defines OPENSSL_NO_KRB5. So, the test for kerberos
> support should fail.

>
> The configure.in test that should fail is as follows:
> -----8<----------8<----------8<----------8<----------8<----------8<----------8<-----
> if test "x$SSL_APP" != "x" ; then
>     dnl We found openssl, now check if we use kerberos 5 support
>     AC_MSG_CHECKING(for OpenSSL kerberos 5 support)
>     old_CPPFLAGS=$CPPFLAGS
>     CPPFLAGS=$SSL_INCLUDE
>     AC_EGREP_CPP(yes,[
> #include <openssl/opensslconf.h>
> #ifndef OPENSSL_NO_KRB5
>   yes
> #endif
> -----8<----------8<----------8<----------8<----------8<----------8<----------8<-----

I found out why the test doesn't fail. it uses AC_EGREP_CPP and grep
for 'yes'. Unfortunately, my path to buildroot contains the string
yes. Therefore, this test always return true :-\
I'm going to patch this test, then send the patch to Erlang upstream
and to buildroot.
-- 
Johan



More information about the buildroot mailing list