freeradius 2.1.11 rpmbuild issue

Fred fred.maison at gmail.com
Fri Jun 10 19:52:59 CEST 2011


Hi all,
I would like to get some help, as I have not been able to rpmbuild
freeradius-2.1.11 form sources using git 2.1.x branch.
I already rpmbuild 2.1.10 with no problems, but may be redhat spec
included in 2.1.11 needs some changes .

I have been able to build/install/test 2.1.11 binary with default
settings to /usr/local, but I can't create installable RPMs for
upgrade my CentOS/RedHat servers to 2.1.11

Here is the script i use to create build environment, followed with
errors at the end of the rpmbuild.

Best regards,
Fred
#####################################
#!/bin/sh
#
RPMBUILDDIR="RPMBUILD"
SOURCE=freeradius-server
GITVERSION=v2.1.x
if [ -d ${SOURCE} ] ; then
	echo -n "Removing ${SOURCE} ... "
	rm -rf $SOURCE
	echo "DONE !"
fi
echo "GITVERSION   : ${GITVERSION}"
git clone git://git.freeradius.org/freeradius-server.git
cd freeradius-server
git fetch origin ${GITVERSION}:${GITVERSION}
git checkout v2.1.x
cd  ..
VERSION=`cat ${SOURCE}/VERSION`
TARGET=${SOURCE}-${VERSION}
PATCH=freeradius-${VERSION}.spec.diff
echo "VERSION     : ${VERSION}"
echo "TARGET      : ${TARGET}"
echo "PATCH       : ${PATCH}"
echo "RPMBUILDDIR : ${RPMBUILDDIR}"
cp ${SOURCE}/redhat/freeradius.spec .
if [ -f $PATCH ] ; then
	echo -n "Appplying ${PATCH} ... "
	patch < $PATCH
	echo " Done !"
else
	echo "FATAL : $PATCH not found, please create it !"
	exit 1
fi
echo -n "Moving freeradius.spec to freeradius.${VERSION}.spec ... "
mv freeradius.spec freeradius.${VERSION}.spec
echo "Done !"
if [ -d ${TARGET} ] ; then
	echo -n "${TARGET} already exist, removing ... "
	rm -rf ${TARGET}
	echo "${TARGET} removed !"
fi
echo -n "Moving ${SOURCE} to ${TARGET} ... "
mv ${SOURCE} ${TARGET}
echo "Done !"
echo "Building ${TARGET}.tar ... "
tar cvf ${TARGET}.tar ${TARGET} > /dev/null
echo "${TARGET}.tar done "
echo "building ${TARGET}.tar.bz2 ... "
bzip2 -f ${TARGET}.tar > /dev/null
echo "${TARGET}.tar.bz2 done"
if ! [  -d ${RPMBUILDDIR} ] ; then
	for i in BUILD RPMS SOURCES SPECS SRPMS
		do
		DIR="${RPMBUILDDIR}/$i"
		echo -n "Creating $DIR ... "
		mkdir -p ${DIR}
		echo "Done with code $?"
	done
fi

cp ${TARGET}.tar.bz2 ${RPMBUILDDIR}/SOURCES
cp freeradius-${VERSION}.spec ${RPMBUILDDIR}/SPECS/
cd ${RPMBUILDDIR}

rpmbuild -v -ba SPECS/freeradius-${VERSION}.spec

#./configure --prefix=/usr 			\
#	    --exec-prefix=/usr 			\
#	    --sysconfdir=/etc/raddb/		\
#	    --localstatedir=/var/

################################################
Traitement des fichiers: freeradius-2.1.11-1
Provides: config(freeradius) = 2.1.11-1 libfreeradius-eap-2.1.11.so
libfreeradius-radius-2.1.11.so rlm_acct_unique-2.1.11.so
rlm_acctlog-2.1.11.so rlm_always-2.1.11.so rlm_attr_filter-2.1.11.so
rlm_attr_rewrite-2.1.11.so rlm_chap-2.1.11.so rlm_checkval-2.1.11.so
rlm_copy_packet-2.1.11.so rlm_counter-2.1.11.so rlm_dbm-2.1.11.so
rlm_detail-2.1.11.so rlm_digest-2.1.11.so
rlm_dynamic_clients-2.1.11.so rlm_eap-2.1.11.so rlm_eap_gtc-2.1.11.so
rlm_eap_leap-2.1.11.so rlm_eap_md5-2.1.11.so
rlm_eap_mschapv2-2.1.11.so rlm_eap_peap-2.1.11.so
rlm_eap_sim-2.1.11.so rlm_eap_tls-2.1.11.so rlm_eap_ttls-2.1.11.so
rlm_exec-2.1.11.so rlm_expiration-2.1.11.so rlm_expr-2.1.11.so
rlm_fastusers-2.1.11.so rlm_files-2.1.11.so rlm_ippool-2.1.11.so
rlm_linelog-2.1.11.so rlm_logintime-2.1.11.so rlm_mschap-2.1.11.so
rlm_otp-2.1.11.so rlm_pam-2.1.11.so rlm_pap-2.1.11.so
rlm_passwd-2.1.11.so rlm_policy-2.1.11.so rlm_preprocess-2.1.11.so
rlm_radutmp-2.1.11.so rlm_realm-2.1.11.so rlm_sql-2.1.11.so
rlm_sql_log-2.1.11.so rlm_sqlcounter-2.1.11.so rlm_sqlippool-2.1.11.so
rlm_unix-2.1.11.so rlm_wimax-2.1.11.so
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh glibc-common shadow-utils
Requires(post): /bin/sh /sbin/chkconfig
Requires(preun): /bin/sh /sbin/chkconfig
Requires(postun): /bin/sh
Requires: /bin/sh /usr/bin/perl config(freeradius) = 2.1.11-1
libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3)
libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4)
libcrypt.so.1 libcrypt.so.1(GLIBC_2.0) libcrypto.so.6 libdl.so.2
libfreeradius-eap-2.1.11.so libfreeradius-radius-2.1.11.so
libgdbm.so.2 libltdl.so.3 libnsl.so.1 libpam.so.0
libpam.so.0(LIBPAM_1.0) libpthread.so.0 libpthread.so.0(GLIBC_2.0)
libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libreadline.so.5
libresolv.so.2 libssl.so.6 libtermcap.so.2 rlm_acct_unique-2.1.11.so
rlm_acctlog-2.1.11.so rlm_always-2.1.11.so rlm_attr_filter-2.1.11.so
rlm_attr_rewrite-2.1.11.so rlm_chap-2.1.11.so rlm_checkval-2.1.11.so
rlm_copy_packet-2.1.11.so rlm_counter-2.1.11.so rlm_dbm-2.1.11.so
rlm_detail-2.1.11.so rlm_digest-2.1.11.so
rlm_dynamic_clients-2.1.11.so rlm_eap-2.1.11.so rlm_eap_gtc-2.1.11.so
rlm_eap_leap-2.1.11.so rlm_eap_md5-2.1.11.so
rlm_eap_mschapv2-2.1.11.so rlm_eap_peap-2.1.11.so
rlm_eap_sim-2.1.11.so rlm_eap_tls-2.1.11.so rlm_eap_ttls-2.1.11.so
rlm_exec-2.1.11.so rlm_expiration-2.1.11.so rlm_expr-2.1.11.so
rlm_fastusers-2.1.11.so rlm_files-2.1.11.so rlm_ippool-2.1.11.so
rlm_linelog-2.1.11.so rlm_logintime-2.1.11.so rlm_mschap-2.1.11.so
rlm_otp-2.1.11.so rlm_pam-2.1.11.so rlm_pap-2.1.11.so
rlm_passwd-2.1.11.so rlm_policy-2.1.11.so rlm_preprocess-2.1.11.so
rlm_radutmp-2.1.11.so rlm_realm-2.1.11.so rlm_sql-2.1.11.so
rlm_sql_log-2.1.11.so rlm_sqlcounter-2.1.11.so rlm_sqlippool-2.1.11.so
rlm_unix-2.1.11.so rlm_wimax-2.1.11.so rtld(GNU_HASH)
Obsoletes: freeradius-devel freeradius-libs
Traitement des fichiers: freeradius-utils-2.1.11-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/sh /usr/bin/perl freeradius = 2.1.11-1 libc.so.6
libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4)
libcrypto.so.6 libfreeradius-eap-2.1.11.so
libfreeradius-radius-2.1.11.so libgdbm.so.2 libnsl.so.1 libpcap >=
0.9.4 libpcap.so.0.9.4 libpthread.so.0 libpthread.so.0(GLIBC_2.0)
libresolv.so.2 libssl.so.6 perl(DBI) perl(Fcntl) perl(Getopt::Long)
perl(Getopt::Std) perl(POSIX) perl(strict) perl(warnings)
rtld(GNU_HASH)
Traitement des fichiers: freeradius-ldap-2.1.11-1
Provides: config(freeradius-ldap) = 2.1.11-1 rlm_ldap-2.1.11.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: config(freeradius-ldap) = 2.1.11-1 freeradius = 2.1.11-1
libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4)
libfreeradius-radius-2.1.11.so libldap_r-2.3.so.0 libnsl.so.1
libpthread.so.0 libpthread.so.0(GLIBC_2.0) libresolv.so.2
rlm_ldap-2.1.11.so rtld(GNU_HASH)
Traitement des fichiers: freeradius-krb5-2.1.11-1
Provides: config(freeradius-krb5) = 2.1.11-1 rlm_krb5-2.1.11.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: config(freeradius-krb5) = 2.1.11-1 freeradius = 2.1.11-1
libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.4) libcom_err.so.2 libfreeradius-radius-2.1.11.so
libk5crypto.so.3 libkrb5.so.3 libkrb5.so.3(krb5_3_MIT) libnsl.so.1
libpthread.so.0 libresolv.so.2 rlm_krb5-2.1.11.so rtld(GNU_HASH)
Traitement des fichiers: freeradius-perl-2.1.11-1
Provides: rlm_perl-2.1.11.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: freeradius = 2.1.11-1 libc.so.6 libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4)
libcrypt.so.1 libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1)
libfreeradius-radius-2.1.11.so libm.so.6 libnsl.so.1 libperl.so
libpthread.so.0 libpthread.so.0(GLIBC_2.0) libresolv.so.2 libutil.so.1
perl(:MODULE_COMPAT_5.8.8) rlm_perl-2.1.11.so rtld(GNU_HASH)
Traitement des fichiers: freeradius-python-2.1.11-1
Provides: rlm_python-2.1.11.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: freeradius = 2.1.11-1 libc.so.6 libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4)
libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1)
libfreeradius-radius-2.1.11.so libm.so.6 libm.so.6(GLIBC_2.0)
libnsl.so.1 libpthread.so.0 libpthread.so.0(GLIBC_2.0)
libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libresolv.so.2
libutil.so.1 libutil.so.1(GLIBC_2.0) rlm_python-2.1.11.so
rtld(GNU_HASH)
Traitement des fichiers: freeradius-mysql-2.1.11-1
Provides: config(freeradius-mysql) = 2.1.11-1 rlm_sql_mysql-2.1.11.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: config(freeradius-mysql) = 2.1.11-1 freeradius = 2.1.11-1
libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libcrypt.so.1
libcrypto.so.6 libm.so.6 libmysqlclient_r.so.15
libmysqlclient_r.so.15(libmysqlclient_15) libnsl.so.1 libpthread.so.0
libssl.so.6 libz.so.1 rlm_sql_mysql-2.1.11.so rtld(GNU_HASH)
Traitement des fichiers: freeradius-postgresql-2.1.11-1
Provides: config(freeradius-postgresql) = 2.1.11-1 rlm_sql_postgresql-2.1.11.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: config(freeradius-postgresql) = 2.1.11-1 freeradius =
2.1.11-1 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libpq.so.4
rlm_sql_postgresql-2.1.11.so rtld(GNU_HASH)
Traitement des fichiers: freeradius-unixODBC-2.1.11-1
Provides: rlm_sql_unixodbc-2.1.11.so
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: freeradius = 2.1.11-1 libc.so.6 libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4)
libodbc.so.1 rlm_sql_unixodbc-2.1.11.so rtld(GNU_HASH)
Traitement des fichiers: freeradius-debuginfo-2.1.11-1
Provides: libfreeradius-eap-2.1.11.so.debug
libfreeradius-radius-2.1.11.so.debug rlm_acct_unique-2.1.11.so.debug
rlm_acctlog-2.1.11.so.debug rlm_always-2.1.11.so.debug
rlm_attr_filter-2.1.11.so.debug rlm_attr_rewrite-2.1.11.so.debug
rlm_chap-2.1.11.so.debug rlm_checkval-2.1.11.so.debug
rlm_copy_packet-2.1.11.so.debug rlm_counter-2.1.11.so.debug
rlm_dbm-2.1.11.so.debug rlm_detail-2.1.11.so.debug
rlm_digest-2.1.11.so.debug rlm_dynamic_clients-2.1.11.so.debug
rlm_eap-2.1.11.so.debug rlm_eap_gtc-2.1.11.so.debug
rlm_eap_leap-2.1.11.so.debug rlm_eap_md5-2.1.11.so.debug
rlm_eap_mschapv2-2.1.11.so.debug rlm_eap_peap-2.1.11.so.debug
rlm_eap_sim-2.1.11.so.debug rlm_eap_tls-2.1.11.so.debug
rlm_eap_ttls-2.1.11.so.debug rlm_exec-2.1.11.so.debug
rlm_expiration-2.1.11.so.debug rlm_expr-2.1.11.so.debug
rlm_fastusers-2.1.11.so.debug rlm_files-2.1.11.so.debug
rlm_ippool-2.1.11.so.debug rlm_krb5-2.1.11.so.debug
rlm_ldap-2.1.11.so.debug rlm_linelog-2.1.11.so.debug
rlm_logintime-2.1.11.so.debug rlm_mschap-2.1.11.so.debug
rlm_otp-2.1.11.so.debug rlm_pam-2.1.11.so.debug
rlm_pap-2.1.11.so.debug rlm_passwd-2.1.11.so.debug
rlm_perl-2.1.11.so.debug rlm_policy-2.1.11.so.debug
rlm_preprocess-2.1.11.so.debug rlm_python-2.1.11.so.debug
rlm_radutmp-2.1.11.so.debug rlm_realm-2.1.11.so.debug
rlm_replicate-2.1.11.so.debug rlm_soh-2.1.11.so.debug
rlm_sql-2.1.11.so.debug rlm_sql_log-2.1.11.so.debug
rlm_sql_mysql-2.1.11.so.debug rlm_sql_postgresql-2.1.11.so.debug
rlm_sql_unixodbc-2.1.11.so.debug rlm_sqlcounter-2.1.11.so.debug
rlm_sqlippool-2.1.11.so.debug rlm_unix-2.1.11.so.debug
rlm_wimax-2.1.11.so.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Vérification des fichiers non empaquetés: /usr/lib/rpm/check-files
/var/tmp/freeradius-2.1.11-1-root-root
erreur: Fichier(s) installé(s) (mais non empaquetés):
   /etc/raddb/modules/redis
   /etc/raddb/modules/rediswho
   /etc/raddb/modules/replicate
   /etc/raddb/modules/soh
   /usr/lib/freeradius/rlm_replicate-2.1.11.so
   /usr/lib/freeradius/rlm_replicate.so
   /usr/lib/freeradius/rlm_soh-2.1.11.so
   /usr/lib/freeradius/rlm_soh.so


Erreur de construction de RPM:
    Fichier(s) installé(s) (mais non empaquetés):
   /etc/raddb/modules/redis
   /etc/raddb/modules/rediswho
   /etc/raddb/modules/replicate
   /etc/raddb/modules/soh
   /usr/lib/freeradius/rlm_replicate-2.1.11.so
   /usr/lib/freeradius/rlm_replicate.so
   /usr/lib/freeradius/rlm_soh-2.1.11.so
   /usr/lib/freeradius/rlm_soh.so
[support at radius1 RPMBUILD]$ find .
.
./BUILD
./rpmbuild.log
./SRPMS
./SOURCES
./SOURCES/freeradius-server-2.1.11.tar.bz2
./SPECS
./SPECS/freeradius-2.1.11.spec
./RPMS
[support at radius1 RPMBUILD]$
##################################################################




More information about the Freeradius-Users mailing list