errors when compiling cvs version on Fedora Core 3

Ilia Chipitsine ilia at
Sat Jul 2 14:48:12 CEST 2005

I'm trying to compile cvs version of freeradius using attached spec file
on Fedora Core 3 (with gcc4), what can cause the following error ?


/usr/bin/libtool --mode=compile gcc  -O2 -g -march=i386 -mcpu=i686 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I../../include -I. -c rfcnb-io.c
  gcc -O2 -g -march=i386 -mcpu=i686 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I../../include -I. -c rfcnb-io.c  -fPIC -DPIC -o .libs/rfcnb-io.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
  gcc -O2 -g -march=i386 -mcpu=i686 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I../../include -I. -c rfcnb-io.c -o rfcnb-io.o >/dev/null 2>&1
/usr/bin/libtool --mode=compile gcc  -O2 -g -march=i386 -mcpu=i686 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I../../include -I. -c rfcnb-util.c
  gcc -O2 -g -march=i386 -mcpu=i686 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I../../include -I. -c rfcnb-util.c  -fPIC -DPIC -o .libs/rfcnb-util.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
rfcnb-util.c: In function 'RFCNB_Name_To_IP':
rfcnb-util.c:317: error: 'lrad_ipaddr_t' undeclared (first use in this function)
rfcnb-util.c:317: error: (Each undeclared identifier is reported only once
rfcnb-util.c:317: error: for each function it appears in.)
rfcnb-util.c:317: error: syntax error before 'ipaddr'
rfcnb-util.c:319: error: 'ipaddr' undeclared (first use in this function)
gmake[6]: *** [rfcnb-util.lo] Error 1
gmake[6]: Leaving directory `/usr/src/redhat/BUILD/freeradius-1.1/src/modules/rlm_smb'
gmake[5]: *** [common] Error 2
gmake[5]: Leaving directory `/usr/src/redhat/BUILD/freeradius-1.1/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/usr/src/redhat/BUILD/freeradius-1.1/src/modules'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/usr/src/redhat/BUILD/freeradius-1.1/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/src/redhat/BUILD/freeradius-1.1/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/usr/src/redhat/BUILD/freeradius-1.1'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.69431 (%build)

RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.69431 (%build)

Ilia Chipitsine
-------------- next part --------------
Summary: High-performance and highly configurable RADIUS server
Name: freeradius
Version: 1.1
Release: 1
License: GPL
Group: Networking/Daemons
Source0: %{name}-%{version}.tar.gz
Prereq: /sbin/chkconfig
BuildPreReq: libtool
# FIXME: snmpwalk, snmpget and rusers POSSIBLY needed by checkrad
Provides: radiusd
Conflicts: cistron-radius
BuildRoot: %{_tmppath}/%{name}-root

The FreeRADIUS Server Project is a high-performance and highly
configurable GPL'd RADIUS server. It is somewhat similar to the
Livingston 2.0 RADIUS server, but has many more features, and is much
more configurable.


%configure --prefix=%{_prefix} \
	--localstatedir=%{_localstatedir} \
	--sysconfdir=%{_sysconfdir} \
	--mandir=%{_mandir} \
	--with-threads \
	--with-thread-pool \
	--with-system-libtool \
	--disable-ltdl-install \
	--with-ltdl-lib=/usr/lib \
	--with-ltdl-include=/usr/include \
	--with-gnu-ld \
        --with-experimental-modules \
        --with-static-modules=python \
	--with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \
	--with-rlm-krb5-include-dir=/usr/kerberos/include \

[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,rc.d/init.d}

make install R=$RPM_BUILD_ROOT

# set radiusd as default user/group
perl -i -pe 's/^#user =.*$/user = radiusd/' $RADDB/radiusd.conf
perl -i -pe 's/^#group =.*$/group = radiusd/' $RADDB/radiusd.conf
# shadow password file MUST be defined on Linux
perl -i -pe 's/#	shadow =/shadow =/' $RADDB/radiusd.conf

# remove unneeded stuff
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/builddbm.8
rm -f $RPM_BUILD_ROOT%{_prefix}/sbin/rc.radiusd

cd redhat
install -m 755 rc.radiusd-redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd
install -m 644 radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
install -m 644 radiusd-pam       $RPM_BUILD_ROOT/etc/pam.d/radius
cd ..

/usr/sbin/useradd -c "radiusd user" -r -s /bin/false -u 95 -d / radiusd 2>/dev/null || :

if [ "$1" = "0" ]; then
	/sbin/service radiusd stop > /dev/null 2>&1
	/sbin/chkconfig --del radiusd

/sbin/chkconfig --add radiusd

# Done here to avoid messing up existing installations
for i in radius/radutmp radius/radwtmp radius/radius.log # radius/radwatch.log radius/checkrad.log
	touch /var/log/$i
	chown radiusd:radiusd /var/log/$i
	chmod 600 /var/log/$i

if [ "$1" -ge "1" ]; then
	/sbin/service radiusd condrestart >/dev/null 2>&1
if [ $1 = 0 ]; then
	/usr/sbin/userdel radiusd > /dev/null 2>&1 || :

[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%doc doc/ChangeLog doc/README* todo/ COPYRIGHT INSTALL
%config /etc/pam.d/radius
%config /etc/logrotate.d/radiusd
%config /etc/rc.d/init.d/radiusd
%config (noreplace) /etc/raddb/*
%attr(0700,radiusd,radiusd) %dir /var/log/radius
%attr(0700,radiusd,radiusd) %dir /var/log/radius/radacct
%attr(0700,radiusd,radiusd) %dir /var/run/radiusd

* Fri May 23 2003 Marko Myllynen
- update for 0.9

* Wed Sep  4 2002 Marko Myllynen
- fix libtool issues for good

* Thu Aug 22 2002 Marko Myllynen
- update for 0.7/0.8

* Tue Jun 18 2002 Marko Myllynen
- run as radiusd user instead of root
- added some options for configure

* Thu Jun  6 2002 Marko Myllynen
- set noreplace for non-dictionary files in /etc/raddb

* Sun May 26 2002 Frank Cusack <frank at>
- move /var dirs from %%post to %%files

* Thu Feb 14 2002 Marko Myllynen
- use dir name macros in all configure options
- libtool is required only when building the package
- misc clean ups

* Wed Feb 13 2002 Marko Myllynen
- use %%{_mandir} instead of /usr/man
- rename %%postin as %%post
- clean up name/version

* Fri Jan 18 2002 Frank Cusack <frank at>
- remove (noreplace) for /etc/raddb/* (due to rpm bugs)

* Fri Sep 07 2001 Ivan F. Martinez <ivanfm at>
- changes to make compatible with default config file shipped
- adjusts log files are on /var/log/radius instead of /var/log
- /etc/raddb changed to config(noreplace) to don't override
-   user configs

* Fri Sep 22 2000 Bruno Lopes F. Cabral <bruno at>
- spec file clear accordling to the libltdl fix and minor updates

* Wed Sep 12 2000 Bruno Lopes F. Cabral <bruno at>
- Updated to snapshot-12-Sep-00

* Fri Jun 16 2000 Bruno Lopes F. Cabral <bruno at>
- Initial release

More information about the Freeradius-Users mailing list