building from cvs snapshot (12.4.06)

Markus Krause krause at biochem.mpg.de
Wed Apr 12 20:10:19 CEST 2006


dear all developers,

maybe it is to early for a report and things are under heavy development anyway
but maybe someone is interested in some feedback on building freeradius from
todays (12.4.2006) cvs snapshot on debian and suse. (if not just ignore this
email and sorry for bothering ;-) )

first platform(s): opensuse 10.0 and suse linux enterprise server 9, they
behaved almost the same

as always for all suse builds (don't know why this is a problem every time) i
had to remove some packages mentioned in "BuildRequires": postgresql, apache2
i dont see a reason for them to exists while building, but i am far from beeing
an expert, nevertheless it is building without them ..

for sles9 i had (in addition to the above) to change "krb5 krb5-devel" into
"heimdal heimdal-devel" and remove "klogd"

in the %files section of the freeradius.spec from cvs there are some files
mentioned that are nonexistant, others produce the error "Installed (but
unpackaged) file(s) found". here the lines i had to comment out:

  ###%attr(640,-,radiusd) %ghost %config(noreplace) /etc/raddb/clients
  ###%ghost %config(noreplace) /etc/raddb/naslist
  ###%attr(640,-,radiusd) %config(noreplace) /etc/raddb/sqlippool.conf
  ###%attr(640,-,radiusd) /etc/raddb/otppasswd.sample

then i added (not sure if these are correct though!)

  %attr(640,-,radiusd) %config(noreplace) /etc/raddb/attrs.pre-proxy
  %attr(640,-,radiusd) %config(noreplace) /etc/raddb/radrelay.conf

and at the end (in the section %files devel) i added:

  %attr(644,root,root) /usr/include/freeradius/*.h


with these the build runs until:

  /usr/src/packages/BUILD/freeradius-2.0.0/libtool --mode=install
  /usr/src/packages/BUILD/freeradius-2.0.0/install-sh -c -m 755 -s radsniff
  /var/tmp/freeradius-2.0.0-build/usr/bin
  /usr/src/packages/BUILD/freeradius-2.0.0/install-sh -c -m 755 -s radsniff
  /var/tmp/freeradius-2.0.0-build/usr/bin/radsniff
  install:  radsniff does not exist
  gmake[4]: *** [install] Error 1
  gmake[4]: Leaving directory
`/usr/src/packages/BUILD/freeradius-2.0.0/src/main'
  gmake[3]: *** [common] Error 2

i had (at that time) no pcap libs installed on theses systems, i propose the
following in src/main/Makefile.in near "install:":

  ifneq ($(PCAP_LIBS),)
        $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) radsniff$(EX
EEXT)   $(R)$(bindir)
  endif


with these modifications i can build freeradius-2 suse-rpms on both
opensuse-10.0 and sles 9. and they seem to work as expected! (unlike debian,
see below!)



now for second platform: debian 3.1
as the file "changelog" in "debian" does not contain any info for 2.0.0-pre i
just made a "./configure" with the options in "debian/rules" and "make; make
install" and the compilation finished without problems. but ...
reconfiguring (actually i reused the files from v1.1.0 as i am not using
something "exotic" or a new feature) and starting the server with "radiusd
-XAs" got me:

  root at merlin:/etc/freeradius# freeradius -XAs
  Starting - reading configuration files ...
  reread_config:  reading radiusd.conf
  Config:   including file: /etc/freeradius/proxy.conf
  Config:   including file: /etc/freeradius/clients.conf
  Config:   including file: /etc/freeradius/snmp.conf
  Config:   including file: /etc/freeradius/eap.conf
  Config:   including file: /etc/freeradius/sql.conf
  main: prefix = "/usr"
    [ ... skipping several lines which do not seem to show a problem ... ]
  read_config_files:  reading dictionary
  read_config_files:  reading naslist
  read_config_files:  reading clients
  read_config_files:  reading realms
  radiusd:  entering modules setup
  Module: Library search path is /usr/lib/freeradius
  Segmentation fault
  root at merlin:/etc/freeradius#

the same config file with 1.1.0 works without problems ...

hope someone finds this usefull ;-)

with best regards,
   markus




--
Markus Krause                           email: krause at biochem.mpg.de
Computing Center                        Tel.: 089 - 89 40 85 99
Group Lottspeich / Proteomics           Fax.: 089 - 89 40 85 98

---------------------------------------------------------------------
     This message was sent using https://webmail.biochem.mpg.de
If you encounter any problems please report to rz-linux at biochem.mpg.de




More information about the Freeradius-Devel mailing list