Git master branch & Debian build

Zenon Mousmoulas zmousm at noc.grnet.gr
Tue Nov 27 17:12:18 CET 2012


Hi,

I am also trying to build Debian packages from git master.

On Fri Nov 23 20:52:32 CET 2012, Olivier Beytrison wrote:
> I also noticed the following messages during package creation :
>
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-eap.so
> needed by debian/freeradius/usr/lib/freeradius/rlm_eap_peap.so (ELF
> format: 'elf64-x86-64'; RPATH: '/usr/lib/
> freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius/usr/sbin/radmin (ELF format: 'elf64-x86-64';
> RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-eap.so
> needed by debian/freeradius/usr/lib/freeradius/rlm_eap.so (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-eap.so
> needed by debian/freeradius/usr/lib/freeradius/rlm_eap_tls.so (ELF
> format: 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius/usr/sbin/freeradius (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-eap.so
> needed by debian/freeradius/usr/lib/freeradius/rlm_eap_ttls.so (ELF
> format: 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius-utils/usr/bin/radwho (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius-utils/usr/bin/smbencrypt (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius-utils/usr/bin/radclient (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius-utils/usr/bin/rlm_dbm_parser (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius-utils/usr/bin/radsniff (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius-utils/usr/bin/rlm_ippool_tool (ELF format:
> 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').

The packages are built but I also see the warnings the OP noted above.

The freeradius binary installed by this package does not run:

/usr/sbin/freeradius: error while loading shared libraries: 
build/lib/.libs/rlm_acctlog.so: cannot open shared object file: No such 
file or directory

# ldd /usr/sbin/freeradius
     linux-vdso.so.1 =>  (0x00007fff85fff000)
     libfreeradius-radius.so => 
/usr/lib/freeradius/libfreeradius-radius.so (0x00007faff937b000)
     build/lib/.libs/rlm_acctlog.so => not found
     build/lib/.libs/rlm_always.so => not found
     build/lib/.libs/rlm_attr_filter.so => not found
     build/lib/.libs/rlm_attr_rewrite.so => not found
     build/lib/.libs/rlm_cache.so => not found
     build/lib/.libs/rlm_chap.so => not found
     build/lib/.libs/rlm_checkval.so => not found
     build/lib/.libs/rlm_counter.so => not found
     build/lib/.libs/rlm_cram.so => not found
     build/lib/.libs/rlm_dbm.so => not found
     build/lib/.libs/rlm_detail.so => not found
     build/lib/.libs/rlm_dhcp.so => not found
     build/lib/.libs/rlm_digest.so => not found
     build/lib/.libs/rlm_dynamic_clients.so => not found
     build/lib/.libs/rlm_eap.so => not found
     build/lib/.libs/rlm_eap_gtc.so => not found
     build/lib/.libs/rlm_eap_leap.so => not found
     build/lib/.libs/rlm_eap_md5.so => not found
     build/lib/.libs/rlm_eap_mschapv2.so => not found
     build/lib/.libs/rlm_eap_peap.so => not found
     build/lib/.libs/rlm_eap_pwd.so => not found
     build/lib/.libs/rlm_eap_tls.so => not found
     build/lib/.libs/rlm_eap_ttls.so => not found
     build/lib/.libs/rlm_exec.so => not found
     build/lib/.libs/rlm_expiration.so => not found
     build/lib/.libs/rlm_expr.so => not found
     build/lib/.libs/rlm_fastusers.so => not found
     build/lib/.libs/rlm_files.so => not found
     build/lib/.libs/rlm_ippool.so => not found
     build/lib/.libs/rlm_jradius.so => not found
     build/lib/.libs/rlm_krb5.so => not found
     build/lib/.libs/rlm_ldap.so => not found
     build/lib/.libs/rlm_linelog.so => not found
     build/lib/.libs/rlm_logintime.so => not found
     build/lib/.libs/rlm_mschap.so => not found
     build/lib/.libs/rlm_otp.so => not found
     build/lib/.libs/rlm_pam.so => not found
     build/lib/.libs/rlm_pap.so => not found
     build/lib/.libs/rlm_passwd.so => not found
     build/lib/.libs/rlm_perl.so => not found
     build/lib/.libs/rlm_policy.so => not found
     build/lib/.libs/rlm_preprocess.so => not found
     build/lib/.libs/rlm_python.so => not found
     build/lib/.libs/rlm_radutmp.so => not found
     build/lib/.libs/rlm_realm.so => not found
     build/lib/.libs/rlm_replicate.so => not found
     build/lib/.libs/rlm_sim_files.so => not found
     build/lib/.libs/rlm_soh.so => not found
     build/lib/.libs/rlm_sometimes.so => not found
     build/lib/.libs/rlm_sql.so => not found
     build/lib/.libs/rlm_sql_iodbc.so => not found
     build/lib/.libs/rlm_sql_mysql.so => not found
     build/lib/.libs/rlm_sql_null.so => not found
     build/lib/.libs/rlm_sql_postgresql.so => not found
     build/lib/.libs/rlm_sqlcounter.so => not found
     build/lib/.libs/rlm_sqlippool.so => not found
     build/lib/.libs/rlm_unix.so => not found
     build/lib/.libs/rlm_utf8.so => not found
     build/lib/.libs/rlm_wimax.so => not found
     libfreeradius-eap.so => /usr/lib/freeradius/libfreeradius-eap.so 
(0x00007faff915a000)
     libnsl.so.1 => /lib/libnsl.so.1 (0x00007faff8f3d000)
     libresolv.so.2 => /lib/libresolv.so.2 (0x00007faff8d27000)
     libdl.so.2 => /lib/libdl.so.2 (0x00007faff8b22000)
     libpthread.so.0 => /lib/libpthread.so.0 (0x00007faff8906000)
     libreadline.so.6 => /lib/libreadline.so.6 (0x00007faff86c2000)
     libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007faff848a000)
     libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007faff80e9000)
     libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007faff7e94000)
     libc.so.6 => /lib/libc.so.6 (0x00007faff7b31000)
     /lib64/ld-linux-x86-64.so.2 (0x00007faff95ad000)
     libncurses.so.5 => /lib/libncurses.so.5 (0x00007faff78eb000)
     libz.so.1 => /usr/lib/libz.so.1 (0x00007faff76d4000)

It looks like something is wrong with the ELF attributes in the binaries:

# objdump -p /usr/sbin/freeradius | grep NEEDED
   NEEDED               libfreeradius-radius.so
   NEEDED               build/lib/.libs/rlm_acctlog.so
   NEEDED               build/lib/.libs/rlm_always.so
   NEEDED               build/lib/.libs/rlm_attr_filter.so
   NEEDED               build/lib/.libs/rlm_attr_rewrite.so
   NEEDED               build/lib/.libs/rlm_cache.so
   NEEDED               build/lib/.libs/rlm_chap.so
   NEEDED               build/lib/.libs/rlm_checkval.so
   NEEDED               build/lib/.libs/rlm_counter.so
   NEEDED               build/lib/.libs/rlm_cram.so
   NEEDED               build/lib/.libs/rlm_dbm.so
   NEEDED               build/lib/.libs/rlm_detail.so
   NEEDED               build/lib/.libs/rlm_dhcp.so
   NEEDED               build/lib/.libs/rlm_digest.so
   NEEDED               build/lib/.libs/rlm_dynamic_clients.so
   NEEDED               build/lib/.libs/rlm_eap.so
   NEEDED               build/lib/.libs/rlm_eap_gtc.so
   NEEDED               build/lib/.libs/rlm_eap_leap.so
   NEEDED               build/lib/.libs/rlm_eap_md5.so
   NEEDED               build/lib/.libs/rlm_eap_mschapv2.so
   NEEDED               build/lib/.libs/rlm_eap_peap.so
   NEEDED               build/lib/.libs/rlm_eap_pwd.so
   NEEDED               build/lib/.libs/rlm_eap_tls.so
   NEEDED               build/lib/.libs/rlm_eap_ttls.so
   NEEDED               build/lib/.libs/rlm_exec.so
   NEEDED               build/lib/.libs/rlm_expiration.so
   NEEDED               build/lib/.libs/rlm_expr.so
   NEEDED               build/lib/.libs/rlm_fastusers.so
   NEEDED               build/lib/.libs/rlm_files.so
   NEEDED               build/lib/.libs/rlm_ippool.so
   NEEDED               build/lib/.libs/rlm_jradius.so
   NEEDED               build/lib/.libs/rlm_krb5.so
   NEEDED               build/lib/.libs/rlm_ldap.so
   NEEDED               build/lib/.libs/rlm_linelog.so
   NEEDED               build/lib/.libs/rlm_logintime.so
   NEEDED               build/lib/.libs/rlm_mschap.so
   NEEDED               build/lib/.libs/rlm_otp.so
   NEEDED               build/lib/.libs/rlm_pam.so
   NEEDED               build/lib/.libs/rlm_pap.so
   NEEDED               build/lib/.libs/rlm_passwd.so
   NEEDED               build/lib/.libs/rlm_perl.so
   NEEDED               build/lib/.libs/rlm_policy.so
   NEEDED               build/lib/.libs/rlm_preprocess.so
   NEEDED               build/lib/.libs/rlm_python.so
   NEEDED               build/lib/.libs/rlm_radutmp.so
   NEEDED               build/lib/.libs/rlm_realm.so
   NEEDED               build/lib/.libs/rlm_replicate.so
   NEEDED               build/lib/.libs/rlm_sim_files.so
   NEEDED               build/lib/.libs/rlm_soh.so
   NEEDED               build/lib/.libs/rlm_sometimes.so
   NEEDED               build/lib/.libs/rlm_sql.so
   NEEDED               build/lib/.libs/rlm_sql_iodbc.so
   NEEDED               build/lib/.libs/rlm_sql_mysql.so
   NEEDED               build/lib/.libs/rlm_sql_null.so
   NEEDED               build/lib/.libs/rlm_sql_postgresql.so
   NEEDED               build/lib/.libs/rlm_sqlcounter.so
   NEEDED               build/lib/.libs/rlm_sqlippool.so
   NEEDED               build/lib/.libs/rlm_unix.so
   NEEDED               build/lib/.libs/rlm_utf8.so
   NEEDED               build/lib/.libs/rlm_wimax.so
   NEEDED               libfreeradius-eap.so
   NEEDED               libnsl.so.1
   NEEDED               libresolv.so.2
   NEEDED               libdl.so.2
   NEEDED               libpthread.so.0
   NEEDED               libreadline.so.6
   NEEDED               libcrypt.so.1
   NEEDED               libcrypto.so.0.9.8
   NEEDED               libssl.so.0.9.8
   NEEDED               libc.so.6

# objdump -p /usr/lib/freeradius/libfreeradius-radius.so | grep SONAME
# objdump -p /usr/lib/freeradius/libfreeradius-eap.so | grep SONAME

Compared to Debian's freeradius 2.1.10+dfsg-2+squeeze1:

# objdump -p /usr/sbin/freeradius | grep NEEDED
   NEEDED               libfreeradius-radius-2.1.10.so
   NEEDED               libnsl.so.1
   NEEDED               libresolv.so.2
   NEEDED               libpthread.so.0
   NEEDED               libcrypt.so.1
   NEEDED               libltdl.so.7
   NEEDED               libssl.so.0.9.8
   NEEDED               libcrypto.so.0.9.8
   NEEDED               libc.so.6

# objdump -p /usr/lib/freeradius/libfreeradius-radius-2.1.10.so | grep 
SONAME
   SONAME               libfreeradius-radius-2.1.10.so

# objdump -p /usr/lib/freeradius/libfreeradius-eap-2.1.10.so | grep SONAME
   SONAME               libfreeradius-eap-2.1.10.so


Any ideas?

Thanks,
Z.



More information about the Freeradius-Users mailing list