|
From: Andre A. G. <and...@nl...> - 2011-05-26 16:24:57
|
Hi,
I'm trying to compile sudo with krb5 support.
The environment is as follows:
AIX 5.3 TL11SP04
NAS (krb5) 1.5.0.2
IBM xlC 10.1.0.0
sudo-1.8.1p2 (source code)
These are the options that I use to configure:
# ./configure --prefix=/opt/freeware --sbindir=/opt/freeware/sbin
--mandir=/opt/freeware/man --with-logging=syslog --with-logfac=auth
--without-pam --with-env-editor --with-ignore-dot --with-tty-tickets
--with-ldap=/opt/freeware --with-ldap-conf-file=/etc/openldap/ldap.conf
--with-ldap-secret-file=/etc/openldap/ldap.secret --with-noexec
And the make gives the following error as it cannot find libs k5crypto and
com_err.
# make
for d in compat common zlib plugins/sudoers src include doc
plugins/sample plugins/sample_group; do (cd $d && exec make all) &&
continue; exit $?; done
Target "all" is up to date.
Target "all" is up to date.
Target "all" is up to date.
/bin/sh ../../libtool --tag=disable-static --mode=link cc
-qlanglvl=extc89 -Wl,-bI:./aixcrypt.exp -L/opt/freeware/lib -o
sudoers.la sudo_auth.lo kerb5.lo getspwuid.lo passwd.lo boottime.lo
check.lo env.lo goodpath.lo group_plugin.lo find_path.lo interfaces.lo
logging.lo parse.lo set_perms.lo sudoers.lo sudo_nss.lo iolog.lo
iolog_path.lo ldap.lo plugin_error.lo libsudoers.la -lkrb5 -lk5crypto
-lcom_err -lldap -llber ../../common/libcommon.la
../../compat/libreplace.la ../../zlib/libz.la -module -export-symbols
./sudoers.sym -avoid-version -rpath /opt/freeware/libexec
libtool: link: cc -qlanglvl=extc89 -Wl,-bM:SRE -o .libs/sudoers.so
.libs/sudo_auth.o .libs/kerb5.o .libs/getspwuid.o .libs/passwd.o
.libs/boottime.o .libs/check.o .libs/env.o .libs/goodpath.o
.libs/group_plugin.o .libs/find_path.o .libs/interfaces.o .libs/logging.o
.libs/parse.o .libs/set_perms.o .libs/sudoers.o .libs/sudo_nss.o
.libs/iolog.o .libs/iolog_path.o .libs/ldap.o .libs/plugin_error.o
./.libs/libsudoers.a ../../common/.libs/libcommon.a
../../compat/.libs/libreplace.a ../../zlib/.libs/libz.a
-Wl,-blibpath:/opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib
-L/opt/freeware/lib -lkrb5 -lk5crypto -lcom_err -lldap
-L/opt/freeware/src/packages/BUILD/openldap-2.0.21/libraries -lssl
-lcrypto -ls -llber -lc -Wl,-bnoentry -qlanglvl=extc89
-Wl,-bI:./aixcrypt.exp -Wl,-bE:./sudoers.sym -Wl,-berok
ld: 0706-006 Cannot find or open library file: -l k5crypto
ld:open(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l com_err
ld:open(): No such file or directory
make: 1254-004 The error code from the last command is 255.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
I was told by IBM support that IBM's kerberos (NAS) have these libs
statically linked into the binaries.
How are we then supposed to compile opensource with kerberos support?
Can anyone give me a hand on this?
Regards,
Andre Guimaraes
Tenzij hierboven anders aangegeven: / Unless stated otherwise above:
IBM Nederland B.V.
Gevestigd te Amsterdam
Inschrijving Handelsregister Amsterdam Nr. 33054214
|