Skip Menu |
 

Date: Sat, 22 Mar 2014 16:02:23 +0100
From: Julien ÉLIE <julien@trigofacile.com>
To: krb5-bugs@mit.edu
Subject: Error at configure time on AIX 7.1
Hi,

Configuring krb5 1.12.1 fails on AIX 7.1 with the following error:

[...]
checking keyutils.h usability... no
checking keyutils.h presence... no
checking for keyutils.h... no
checking for keyutils.h... (cached) no
checking if va_copy is available... yes
checking if va_list objects can be copied by assignment... yes
configure: error: Shared libraries are not yet supported on this platform.


I tried both:
./configure
and:
./configure --disable-shared --enable-static

Same result.
Is there a special trick to build krb5 on AIX? Why is configure
searching for a support of shared libraries even though
"--disable-shared --enable-static" is passed to configure?



I see in configure:

# avoid duplicate rules generation for AIX and such
SHLIBEXT=.so-nobuild

[...]

if test "$SHLIBEXT" = ".so-nobuild"; then
as_fn_error $? "Shared libraries are not yet supported on this platform." "$LINENO" 5
fi


so maybe there is an issue here.

--
Julien ÉLIE

« À vaincre sans péril, on évite des ennuis ! » (légionnaire
romain)
From: Russ Allbery <eagle@eyrie.org>
To: rt@krbdev.mit.edu
Subject: Re: [krbdev.mit.edu #7888] Error at configure time on AIX 7.1
Date: Sat, 22 Mar 2014 17:14:18 -0700
RT-Send-Cc:
"Julien ÉLIE via RT" <rt-comment@krbdev.mit.edu> writes:

Show quoted text
> Is there a special trick to build krb5 on AIX? Why is configure
> searching for a support of shared libraries even though
> "--disable-shared --enable-static" is passed to configure?

MIT Kerberos no longer supports static builds. That doesn't answer the
question of why the shared library builds don't work on AIX (which I
suspect may be lack of AIX support in general, but I'm not sure), but
that's why it's looking for shared library support even when you're trying
to build it statically.

--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
That's essentially true. In 2011 I added back in limited support for
static-only builds because gcov didn't work with shared libraries at the
time, but it was never complete.

We only have build system support for AIX 4 and 5. That's not to say the
current tree actually builds on AIX 4 and 5, but src/config/shlib.conf
recognizes them and sets up the correct commands for building shared
libraries. It's not clear to me from previous email exchanges whether
extending the AIX 5 support in shlib.conf to AIX 6 or 7 would be correct.
We will accept reasonable patches to make krb5 compile on AIX 7, but we
don't have the resources to develop or test them.