LINUX.ORG.RU
ФорумAdmin

[RADIUS] Не могу собрать модуль


0

0

Народ помогите... у меня не собирается радиус.. верней не сам радиус а его модуль rlm_pam Есть у меня радиус freeradius-1.1.8 на Debian GNU/Linux 5.0 делаю я ./configure

 ./configure sysconfdir=/etc --with-rlm_pam=yes --enable-pam=yes --with-static-modules=rlm_pam 

Конфигурация проходит без ошибок... и я делаю make... А он мне уже говорит:

 /usr/src/freeradius-1.1.8/libtool --mode=link gcc -export-dynamic -dlopen self \
         -pie  -o radiusd acct.lo auth.lo client.lo conffile.lo exec.lo files.lo log.lo mainconfig.lo modules.lo modcall.lo nas.lo proxy.lo radiusd.lo radius_snmp.lo request_list.lo session.lo smux.lo threads.lo util.lo valuepair.lo version.lo timestr.lo xlat.lo      \
        -dlpreopen ../modules/rlm_rlm_pam/rlm_rlm_pam.la -lnsl -lresolv  -lpthread  ../lib/libradius.la   \
        -lltdl 
libtool: link: cannot find the library `../modules/rlm_rlm_pam/rlm_rlm_pam.la' or unhandled argument `../modules/rlm_rlm_pam/rlm_rlm_pam.la'
make[4]: *** [radiusd] Ошибка 1
make[4]: Leaving directory `/usr/src/freeradius-1.1.8/src/main'
make[3]: *** [common] Ошибка 2
make[3]: Leaving directory `/usr/src/freeradius-1.1.8/src'
make[2]: *** [all] Ошибка 2
make[2]: Leaving directory `/usr/src/freeradius-1.1.8/src'
make[1]: *** [common] Ошибка 2
make[1]: Leaving directory `/usr/src/freeradius-1.1.8'
make: *** [all] Ошибка 2

Вопрос... что я делаю не так ?

Для справки опции configure:

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-strict-dependencies  Fail configure on lack of module dependancy.
  --enable-developer               Enables features of interest to developers.

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-system-libtool              try to use libtool installed in your system default=use our own
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]      include additional configurations [automatic]
  --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
  --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
  --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
  --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
  --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
  --with-threads          Use threads, if available.  (default=yes)
  --with-snmp             Compile in SNMP support. (default=yes)
  --with-snmp-include-dir=DIR  Directory to look for include files used by SNMP
  --with-large-files      Compile in large (2G+) file support. (default=no)
  --with-static-modules=QUOTED-MODULE-LIST
 --with-modules=QUOTED-MODULE-LIST
  --with-experimental-modules      Use experimental and unstable modules. (default=no)
  --with-openssl                   Use OpenSSL. (default=yes)
  --with-openssl-includes=DIR      Directory to look for OpenSSL include files
  --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
  --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
  --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
  --with-udpfromto        Compile in UDPFROMTO support. (default=no)
  --with-edir             Enable Novell eDirectory integration.  (default=no)

★★

Имя rlm_rlm_pam.la как-бы наводит на размышления. Видимо, он подставляет «rlm_» к имени модуля самостоятельно.

Скомпилируй так
./configure sysconfdir=/etc --with-rlm_pam=yes --enable-pam=yes --with-static-modules=pam

Chumka ★★★ ()
Ответ на: комментарий от Chumka
libtool: link: cannot find the library `../modules/rlm_pam/rlm_pam.la' or unhandled argument `../modules/rlm_pam/rlm_pam.la'
make[4]: *** [radiusd] Ошибка 1

Не помогло =(

Tok ★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.