hi, i am facing a problem in radius installation on red hat 5 this error displays while running "make" command resolv -lpthread -Wl,-soname -Wl,rlm_eap-1.1.6.so -o .libs/rlm_eap-1.1.6.so/usr/lib/libltdl.so: could not read symbols: File in wrong formatcollect2: ld returned 1 exit statusgmake[6]: *** [rlm_eap.la] Error 1gmake[6]: Leaving directory `/usr/src/radius-iptv/src/modules/rlm_eap'gmake[5]: *** [common] Error 2gmake[5]: Leaving directory `/usr/src/radius-iptv/src/modules'gmake[4]: *** [all] Error 2gmake[4]: Leaving directory `/usr/src/radius-iptv/src/modules'gmake[3]: *** [common] Error 2gmake[3]: Leaving directory `/usr/src/radius-iptv/src'gmake[2]: *** [all] Error 2gmake[2]: Leaving directory `/usr/src/radius-iptv/src'gmake[1]: *** [common] Error 2gmake[1]: Leaving directory `/usr/src/radius-iptv'make: *** [all] Error 2 but my radius package is running perfecly on my other system which is Fedora 8
On Thu, Oct 18, 2012 at 5:18 PM, QASIM RAO <qasim2490@hotmail.com> wrote:
hi,
i am facing a problem in radius installation on red hat 5
this error displays while running "make" command
resolv -lpthread -Wl,-soname -Wl,rlm_eap-1.1.6.so -o .libs/rlm_eap-1.1.6.so /usr/lib/libltdl.so: could not read symbols: File in wrong format
Hmmm ... what is your configure line? IIRC by default FR should use it's own libtool and libltdl, so it shouldn't use system one. Or, you can try using the same configure line as in RPM SPEC: %configure \ --libdir=%{_libdir}/freeradius \ --with-system-libtool \ --with-system-libltdl \ --disable-ltdl-install \ --with-udpfromto \ --with-gnu-ld \ --with-threads \ --with-thread-pool \ --with-docdir=%{docdir} \ --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \ --with-rlm-sql-postgresql-lib-dir=%{_libdir} \ --with-rlm-sql_mysql-include-dir=/usr/include/mysql \ --with-mysql-lib-dir=%{_libdir}/mysql \ --with-unixodbc-lib-dir=%{_libdir} \ --with-rlm-dbm-lib-dir=%{_libdir} \ --with-rlm-krb5-include-dir=/usr/kerberos/include \ --with-modules="rlm_wimax" \ --without-rlm_eap_ikev2 \ --without-rlm_sql_iodbc \ --without-rlm_sql_firebird \ --without-rlm_sql_db2 \ --without-rlm_sql_oracle (replacing the values for %{_*dir} manually as appropriate, of course) Or better yet, just use the included redhat/freeradius.spec, and othe files on that directory, to build your FR-2.2.0 RPM :D -- Fajar
Sir i use this command while configuring and it works ./configure --disable-libltdl-install --with-system-libtool but i want to know i some servers i just use "./configure" command and it works but in some it does not . so where is the problem acctually occurs in server or in my radius package.. ??? Thanks,
Date: Thu, 18 Oct 2012 17:28:55 +0700 Subject: Re: radius Installation error From: list@fajar.net To: freeradius-users@lists.freeradius.org
On Thu, Oct 18, 2012 at 5:18 PM, QASIM RAO <qasim2490@hotmail.com> wrote:
hi,
i am facing a problem in radius installation on red hat 5
this error displays while running "make" command
resolv -lpthread -Wl,-soname -Wl,rlm_eap-1.1.6.so -o .libs/rlm_eap-1.1.6.so /usr/lib/libltdl.so: could not read symbols: File in wrong format
Hmmm ... what is your configure line?
IIRC by default FR should use it's own libtool and libltdl, so it shouldn't use system one.
Or, you can try using the same configure line as in RPM SPEC:
%configure \ --libdir=%{_libdir}/freeradius \ --with-system-libtool \ --with-system-libltdl \ --disable-ltdl-install \ --with-udpfromto \ --with-gnu-ld \ --with-threads \ --with-thread-pool \ --with-docdir=%{docdir} \ --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \ --with-rlm-sql-postgresql-lib-dir=%{_libdir} \ --with-rlm-sql_mysql-include-dir=/usr/include/mysql \ --with-mysql-lib-dir=%{_libdir}/mysql \ --with-unixodbc-lib-dir=%{_libdir} \ --with-rlm-dbm-lib-dir=%{_libdir} \ --with-rlm-krb5-include-dir=/usr/kerberos/include \ --with-modules="rlm_wimax" \ --without-rlm_eap_ikev2 \ --without-rlm_sql_iodbc \ --without-rlm_sql_firebird \ --without-rlm_sql_db2 \ --without-rlm_sql_oracle
(replacing the values for %{_*dir} manually as appropriate, of course)
Or better yet, just use the included redhat/freeradius.spec, and othe files on that directory, to build your FR-2.2.0 RPM :D
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Thu, Oct 18, 2012 at 6:06 PM, QASIM RAO <qasim2490@hotmail.com> wrote:
Sir i use this command while configuring and it works
./configure --disable-libltdl-install --with-system-libtool
You should need more flags since ltdl and libtool go together. See the configure flags in my previous mail. If it worked for you, well, my best guess is either you're lucky, or the configure script is smarter now :)
but i want to know i some servers i just use "./configure" command and it works
Exactly. In general, it should be enough.
but in some it does not . so where is the problem acctually occurs in server or in my radius package.. ???
Not sure. Probably the difference is whether some packages are already installed or not (e.g. libtldl-devel, or something like that). Personally I prefer to use packages (e.g. RPM, or deb). Either distro provided, or self-compiled using the provided recipe (e.g. spec files, or debian directroy). That way: - I only need to compile once. Which also means I only need to install *-devel package once, on the compile server - All deployment using that package will be relatively homogenous. No sudden "surprise" because some module was included when compiling in server A but not when compiling on server B, or something like that - I can have clean upgrade path, no leftover files from previous versions. -- Fajar
participants (2)
-
Fajar A. Nugraha -
QASIM RAO