hello, ldd /opt/freeradius/current/lib/rlm_perl.so linux-vdso.so.1 => (0x00007ffd6fef7000) libperl.so => /usr/lib64/perl5/CORE/libperl.so (0x00007fc1c5c1b000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fc1c59ee000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fc1c57d5000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fc1c55d1000) libm.so.6 => /lib64/libm.so.6 (0x00007fc1c52ce000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fc1c5097000) libutil.so.1 => /lib64/libutil.so.1 (0x00007fc1c4e94000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc1c4c77000) libc.so.6 => /lib64/libc.so.6 (0x00007fc1c48b4000) /lib64/ld-linux-x86-64.so.2 (0x000055eedd16b000) libfreebl3.so => /lib64/libfreebl3.so (0x00007fc1c46b1000) this is the output of the machine that is working good and this the output of the machine where i have the problem that i have described above: ldd /opt/freeradius/current/lib/rlm_perl.so linux-vdso.so.1 => (0x00007ffdcc1a1000) libperl.so => /usr/local/lib/perl5/5.26.1/x86_64-linux/CORE/libperl.so (0x00007f3670394000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f367016a000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f366ff51000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f366fd4d000) libm.so.6 => /lib64/libm.so.6 (0x00007f366fa4a000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f366f813000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f366f610000) libc.so.6 => /lib64/libc.so.6 (0x00007f366f24c000) /lib64/ld-linux-x86-64.so.2 (0x0000559acff99000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f366f049000) if you make a simple comparaison you will see that it miss this module libresolv.so.2 i hope every this is clear now. Thanks in advance 2018-02-05 10:43 GMT+01:00 Nathan Ward <lists+freeradius@daork.net>:
On 5/02/2018, at 10:32 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have two machines runing both centos 7, in the first machine to make rlm_perl working i have installed all perl modules with: yum install perl* in the second machine, i have compiled the latest version of perl perl-5.26.1:
./Configure -Accflags='-fPIC' -Duseshrplib -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64" $ make $ make test # make install
because with yum install perl* this will install a lot of modules that i don't need.
So, it worked on machine A fine when you installed with yum, but on machine B you decided to compile perl from scratch, and have come to the FreeRADIUS list for support? It is clear what the problem here is. If machine A worked, do machine B the same way you did machine A. Once you understand what you are doing, you can start doing things like compiling perl from scratch by hand (but you won’t, because you’ll have learned by then that that’s almost always a silly thing to do).
If you’d like, here is a super cheat code for you, but this is off topic for the FreeRADIUS list and is something for the perl list(s) - don’t install “perl*” - install “perl” and if you need to compile something with perl headers (i.e. if you compile your own FreeRADIUS which it sounds like you probably do for some reason) you can install “perl-devel”. Then only install the perl modules you actually want to use in your code.
ine the first machine module rlm_perl is working good and i have the same configuration of freerdius in the two machines and the same example.pl file,
i have created a clone method to conncet to database and i have use this conncetion in the autorisation method, my problem is in the second machine every thing is working good however in the second machine when i run freerdaius and do an access request packet it doesn't see the connection property that i have declared on clone method. in order to make this work i have to declare the connection on autorisation method that is why i have provided the modules that dépends on rlm_perl and i thing the problem is with module
libresolv.so.2 so could any one has an ide on this?
I still see no information that you have provided where there is any reference to libresolv.so.2, or why you think it is related to FreeRADIUS. Please provide that information if you want assistance. We all know what libresolv.so.2 is for and what it does, but there’s no clear reason why you’re asking about it.
-- Nathan Ward
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html