ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Пересобранный freeradius - error while loading shared libraries
@ 2004-06-10 14:44 Andrei M. Laptev
  0 siblings, 0 replies; only message in thread
From: Andrei M. Laptev @ 2004-06-10 14:44 UTC (permalink / raw)
  To: Sisyphus

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

Использую в конторе pptpd+freeradius+nibs, решил пересобрать 
что по новее из сизифа - freeradius-0.9.3-alt4.src.rpm.

Поставил исходники, раскоментировал и подредактировал spec 
(он в аттаче, если кому интересно), затем
rpm -ba --target i586 freeradius.spec
все собралось.

Ставлю пакет и получаю:
$ radclient
radclient: error while loading shared libraries: 
libradius-0.9.3.so: cannot open shared object file: No such 
file or directory

Хотя библиотека вроде лежит в /usr/lib/freeradius:

$ll /usr/lib/freeradius/libradius*
-rw-r--r--  1 root root 68696 Jun 10 11:51 
/usr/lib/freeradius/libradius-0.9.3.so
lrwxrwxrwx  1 root root    18 Jun 10 11:51 
/usr/lib/freeradius/libradius.so -> libradius-0.9.3.so

Возможно нужно как-то объявить что появилась эта самая 
libradius.so, но вот как ?

Система - сизиф примерно недельной давности.
-- 
С уважением,
Лаптев Андрей

[-- Attachment #2: freeradius.spec --]
[-- Type: text/plain, Size: 9378 bytes --]

%define dialup_admin_version 1.63
%define nibs_version 0.0.3

Name: freeradius
Version: 0.9.3
Release: alt4

Summary: FreeRADIUS server - GPLed RADIUS server
Summary(ru_RU.KOI8-R): FreeRADIUS - GPL ÒÅÁÌÉÚÁÃÉÑ RADIUS ÓÅÒ×ÅÒÁ

License: GPL
Group: System/Servers
Url: http://www.freeradius.org/
Packager: Victor V. Ismakaev <ivv@altlinux.ru>

Source: ftp://ftp.freeradius.org/pub/radius/%name-%version.tar.bz2

Source1: radiusd-logrotate
Source2: radiusd-alt
Source3: radiusd.conf-alt
Source4: radiusd-sysconfig
Source5: freenibs-0.0.3-release_freeradius-0.9.3.tar.bz2

Patch1: %name-0.9.1-alt-net-snmp.patch
Patch2: %name-0.9.3-alt-makefile.patch

%def_disable static

%add_findprov_lib_path %_libdir/%name

# Automatically added by buildreq on Mon Nov 24 2003
BuildRequires: libe2fs-devel libgdbm-devel libldap-devel libltdl-devel
BuildRequires: libpam-devel libpq3-devel libssl-devel libnet-snmp-devel
BuildRequires: perl-devel postgresql-devel python-devel
BuildRequires: net-snmp-utils zlib-devel libMySQL-devel

%description
The FreeRADIUS Server Project is an attempt to create a high-performance
and highly configurable GPL'd free RADIUS server.  The server is similar
to Livingston's 2.0 server.
FreeRADIUS is a variant of the Cistron RADIUS server, but they don't
share a lot in common any more.  You should use it because it has a lot
more features than Cistron and Livingston and is much more configurable.

%description -l ru_RU.KOI8-R
FreeRadius Server ÐÒÏÅËÔ ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÓÏÚÄÁÎÉÑ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÇÏ
Ó×ÏÂÏÄÎÏÇÏ RADIUS ÓÅÒ×ÅÒÁ Ó ÂÏÇÁÔÙÍ ÓÐÅËÔÒÏÍ ÎÁÓÔÒÏÅË É Ó×ÏÊÓÔ×.  üÔÏÔ
ÓÅÒ×ÅÒ ÐÏÄÏÂÅÎ Livingston 2.0 RADIUS ÓÅÒ×ÅÒÕ É Ñ×ÌÑÅÔÓÑ ×ÁÒÉÁÎÔÏÍ
Cistron RADIUS Server, ÏÄÎÁËÏ ÏÎ ÉÍÅÅÔ ÂÏÌØÛÅÅ ËÏÌÉÞÅÓÔ×Ï Ó×ÏÊÓÔ× É ÇÉÂÞÅ
× ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÉ.

%package ldap
Summary: libraries for  %name with ldap support
Group: System/Servers
Requires: %name = %version-%release

%description ldap
This package provides a support for ldap authorization in freeradius

%package mysql
Summary: libraries for %name with MySQL support
Group: System/Servers
Provides: %name-sql = %version-%release
Requires: %name = %version-%release

%description mysql
This package provides a support for mysql
authetication/authorization/accounting in freeradius

%package pgsql
Summary: libraries for  %name with PostgreSQL support
Group: System/Servers
Provides: %name-sql = %version-%release
Requires: %name = %version-%release

%description pgsql
This package provides a support for Postgresql
authetication/authorization/accounting in freeradius

%package python
Summary: Python module for freeradius
Group: System/Servers
Requires: %name = %version-%release, python

%description python
This module allows to write modules in python

%package perl
Summary: perl module for freeradius
Group: System/Servers
Requires: %name = %version-%release

%description perl
This module allows to write modules in perl

%package sqlcounter
Summary: sqlcounter module for %name
Group: System/Servers
Provides: %name-sqlcounter = %version-%release
Requires: %name-sql = %version-%release

%description sqlcounter
sqlcounter is module for counting all sessions of users and disabling
account if total time of all sessions is greater than limit.

%package -n freenibs-%nibs_version
Summary: NIBS is Neon Internet Billing System
Group: System/Servers
Provides: %name-freenibs billing nibs
Requires: %name-sql

%description -n freenibs-%nibs_version
FreeNIBS is billing and accounting system for FreeRADIUS

%prep
%setup -q -n %name-%version
%patch1 -p1
%patch2 -p1

#%setup  -q -n %SOURCE5
%__tar -jxf %SOURCE5
%__cp -r freenibs-0.0.3-release_freeradius-0.9.3/src/modules/rlm_nibs src/modules
echo "rlm_nibs" >> src/modules/stable
#%patch -p1

%build
export CC=gcc LTCC=gcc
%configure \
	%{subst_enable static} \
	--localstatedir=/var \
	--libdir=/usr/lib/freeradius \
	--includedir=/usr/include/freeradius \
	--with-rlm_sql_iodbc=no \
	--with-rlm_sql_unixodbc=no \
	--with-logdir=/var/log/freeradius \
	--mandir=/usr/share/man \
	--with-rlm_unix=no \
	--with-rlm-dbm-include-dir=/usr/include \
	--with-ltdl-include-dir=/usr/include \
	--with-rlm_sql_postgresql=yes \
	--with-experimental-modules \
	--with-rlm_perl=yes

%__subst "s#HAVE_NDBM#HAVE_GDBM_NDBM#" src/modules/rlm_dbm/Makefile

find -type f -print0 |
	xargs -r0 %__grep -FZl libradius.a -- | \
	xargs -r0 %__subst -p 's/libradius\.a/libradius.so/g' --

make

%install
make install R=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%prefix/sbin/rc.radiusd
mkdir -p %buildroot/etc/{logrotate.d,sysconfig,rc.d/init.d}

install -p -m755 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/rc.d/init.d/radiusd
install -p -m644 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/logrotate.d/radiusd
install -p -m640 %SOURCE3 $RPM_BUILD_ROOT%_sysconfdir/raddb/radiusd.conf
install -p -m640 %SOURCE4 $RPM_BUILD_ROOT%_sysconfdir/sysconfig/radiusd

install -d -p -m0755 %buildroot%_docdir/%name-%version
install -d -p -m0755 %buildroot%_docdir/%name-%version/rfc
rm -rf doc/00-OLD
cp -R doc %buildroot%_docdir/%name-%version
mkdir freenibs_doc
cp -R src/modules/rlm_nibs/doc freenibs_docs
cp -R src/modules/rlm_nibs/utils freenibs_docs
cp -R freenibs-0.0.3-release_freeradius-0.9.3/raddb freenibs_docs

%pre
/usr/sbin/groupadd -r -f radius
/usr/sbin/useradd -r -n -g radius -d /dev/null -s /dev/null -c RADIUS radius >/dev/null 2>&1 ||:

%preun
%preun_service radiusd

%post
%post_service radiusd

%files
%doc doc/*
%doc dialup_admin
%_bindir/*
%_sbindir/*
%_datadir/%name/*
%_libdir/%name/libradius*.so
%_libdir/%name/rlm_acct*.so
%_libdir/%name/rlm_always*.so
%_libdir/%name/rlm_attr*.so
%_libdir/%name/rlm_chap*.so
%_libdir/%name/rlm_checkval*.so
%_libdir/%name/rlm_counter*.so
%_libdir/%name/rlm_cram*.so
%_libdir/%name/rlm_dbm*.so
%_libdir/%name/rlm_detail*.so
%_libdir/%name/rlm_dictionary*.so
%_libdir/%name/rlm_digest*.so
%_libdir/%name/rlm_eap*.so
%_libdir/%name/rlm_ex*.so
%_libdir/%name/rlm_f*.so
%_libdir/%name/rlm_ip*.so
%_libdir/%name/rlm_ms*.so
%_libdir/%name/rlm_ns*.so
%_libdir/%name/rlm_pa*.so
%_libdir/%name/rlm_pr*.so
%_libdir/%name/rlm_r*.so
%_libdir/%name/rlm_smb*.so
%_libdir/%name/rlm_sql*.so
%_libdir/%name/rlm_x99*.so
%_man1dir/*
%_man5dir/*
%_man8dir/*
%config(noreplace) %_sysconfdir/raddb/*
%config(noreplace) /etc/logrotate.d/radiusd
%config(noreplace) /etc/sysconfig/radiusd
%config %_initdir/radiusd
%dir /var/log/freeradius
%dir /var/log/freeradius/radacct
%dir /var/run/radiusd
%dir %_datadir/%name
%dir %_libdir/%name
%attr(0750,radius,radius) %dir /var/run/radiusd
%attr(0750,radius,radius) %dir /var/log/freeradius/radacct

%files ldap
%_libdir/%name/rlm_ldap*.so

%files mysql
%doc src/modules/rlm_sql/drivers/rlm_sql_mysql/db_mysql.sql
%_libdir/%name/rlm_sql_mysql*.so

%files pgsql
%doc src/modules/rlm_sql/drivers/rlm_sql_postgresql/db_postgresql.sql
%_libdir/%name/rlm_sql_postgresql*.so

%files python
%doc src/modules/rlm_python/*.py
%doc src/modules/rlm_python/*.sql
%_libdir/%name/rlm_python*.so

%files perl
%doc src/modules/rlm_perl/example.pl
%_libdir/%name/rlm_perl*.so

%files sqlcounter
%_libdir/%name/rlm_sqlcounter*.so

%files -n freenibs-%nibs_version
%doc freenibs_docs/*
%_libdir/%name/rlm_nibs*.so

%changelog
* Fri May 14 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.3-alt4
- Do not build static plugins by default.
- Fixed dynamic linkage.
- Cleanup package install dependencies.
- Cleanup package build dependencies (#4073).

* Tue May 11 2004 ALT QA Team Robot <qa-robot@altlinux.org> 0.9.3-alt3.1
- Rebuilt with openssl-0.9.7d.

* Wed Mar 10 2004 Victor V Ismakaev <ivv@altlinux.ru> 0.9.3-alt3
- fixed unmet and buildreq

* Tue Dec 02 2003 Konstantin Timoshenko <kt@altlinux.ru> 0.9.3-alt2
- rebuild with net-snmp

* Mon Nov 24 2003 Victor V Ismakaev <ivv@altlinux.ru> 0.9.3-alt1
- new version
- fixed bug #3286
- removed package freenibs (because it not ready yet)

* Thu Nov 20 2003 Victor V Ismakaev <ivv@altlinux.ru> 0.9.2-alt2
- added package freenibs from nibs.net.ua

* Fri Oct 31 2003 Victor V Ismakaev <ivv@altlinux.ru> 0.9.2-alt1
- new version

* Mon Sep 22 2003 Victor V Ismakaev <ivv@altlinux.ru> 0.9.1-alt3
- splitted into subpackages

* Fri Sep 19 2003 Andy Gorev <horror@altlinux.ru> 0.9.1-alt2
- BuildRequires updated
- Rewritten start/stop scripts to new rc scheme
- Reload & Condreload fix
- Provide of oun libs
- Fix dictionary location for new version
- New /etc/sysconfig/radiusd options file implemented
- Small spec fixes

* Wed Sep 10 2003 Andy Gorev <horror@altlinux.ru> 0.9.1-alt1
- New version freeradius-0.9.1
- BuildRequires updated

* Wed Feb 12 2003 Victor V Ismakaev <ivv@altlinux.ru> 0.8.1-alt1.3
- fixed  creating /var/run/radiusd.pid file

* Tue Jan 28 2003 Victor V Ismakaev <ivv@altlinux.ru> 0.8.1-alt1.2
- rebuild for Master 2.2

* Mon Dec 16 2002 Victor V Ismakaev <ivv@altlinux.ru> 0.8.1-alt1.1
- Some fixes in SPEC(section %description -l ru_RU.KOI8-R )

* Sat Dec 15 2002 Victor V Ismakaev <ivv@altlinux.ru> 0.8.1-alt1
- New version freeradius-0.8.1

* Mon Dec 09 2002 Victor V Ismakaev <ivv@altlinux.ru> 0.8-alt1
- New version freeradius-0.8

* Fri Jun 21 2002 Victor V Ismakaev <ivv@altlinux.ru> 0.5-alt4
- fixed section %files

* Wed Jun 19 2002 IVV <ivv@altlinux.ru> 0.5-alt3
- Some fixes in freeradius.spec

* Thu Jun 11 2002 IVV <ivv@altlinux.ru> 0.5-alt2
- Changed init script
- Some fixes in freeradius.spec

* Tue Jun 06 2002 IVV <ivv@altlinux.ru> 0.5-alt1
- first  adaptations for ALTLinux

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-10 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10 14:44 [sisyphus] Пересобранный freeradius - error while loading shared libraries Andrei M. Laptev

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git