not working

Compilation and installation questions and stories
Post Reply
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

not working

Post by mlemaitre »

Hi,

Since a few commits (it seems to be since 405a4d8de0048aa77d09380b33a3f06149d16765), accel-ppp is not not working anymore on my debian strech. The program just won't start without any log message.

strace shows this error:

Code: Select all

access("/usr/lib64/accel-ppp/auth_pap", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib64/accel-ppp/libauth_pap.so", F_OK) = 0
open("/usr/lib64/accel-ppp/libauth_pap.so", O_RDONLY|O_CLOEXEC) = 10
read(10, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\16\0\0\0\0\0\0"..., 832) = 832
fstat(10, {st_mode=S_IFREG|0644, st_size=18296, ...}) = 0
mmap(NULL, 2109792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0x7f03503e9000
mprotect(0x7f03503eb000, 2097152, PROT_NONE) = 0
mmap(0x7f03505eb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x2000) = 0x7f03505eb000
close(10)                               = 0
mprotect(0x7f03505eb000, 4096, PROT_READ) = 0
access("/usr/lib64/accel-ppp/radius", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib64/accel-ppp/libradius.so", F_OK) = 0
open("/usr/lib64/accel-ppp/libradius.so", O_RDONLY|O_CLOEXEC) = 10
read(10, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`3\0\0\0\0\0\0"..., 832) = 832
fstat(10, {st_mode=S_IFREG|0644, st_size=109928, ...}) = 0
mmap(NULL, 2188936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0x7f03501d2000
mprotect(0x7f03501e7000, 2097152, PROT_NONE) = 0
mmap(0x7f03503e7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x15000) = 0x7f03503e7000
close(10)                               = 0
open("tls/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 10
fstat(10, {st_mode=S_IFREG|0644, st_size=61936, ...}) = 0
mmap(NULL, 61936, PROT_READ, MAP_PRIVATE, 10, 0) = 0x7f035294c000
close(10)                               = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/x86_64", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
open("/lib/tls/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/tls/x86_64", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/lib/tls/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/tls", 0x7ffef9c35310)        = -1 ENOENT (No such file or directory)
open("/lib/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64", 0x7ffef9c35310)     = -1 ENOENT (No such file or directory)
open("/lib/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/usr/lib/tls/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls", 0x7ffef9c35310)    = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7ffef9c35310) = -1 ENOENT (No such file or directory)
open("/usr/lib/libluasupp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
munmap(0x7f035294c000, 61936)           = 0
munmap(0x7f03501d2000, 2188936)         = 0
open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 10
fstat(10, {st_mode=S_IFREG|0644, st_size=2971, ...}) = 0
fstat(10, {st_mode=S_IFREG|0644, st_size=2971, ...}) = 0
read(10, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\r\0\0\0\r\0\0\0\0"..., 4096) = 2971
lseek(10, -1872, SEEK_CUR)              = 1099
read(10, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\r\0\0\0\r\0\0\0\0"..., 4096) = 1872
close(10)                               = 0
fstat(7, {st_mode=S_IFREG|0644, st_size=8902, ...}) = 0
write(7, "[2017-12-06 17:10:44.971]loader:"..., 131) = 131
exit_group(1)                           = ?
+++ exited with 1 +++
I tried with DLUA=TRUE, and with DLUA=5.3 (in this case, it still wants liblua5.1)

Any idea ?

Thanks,
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: not working

Post by Dmitry »

try to rebuild all from scratch
rm -rf build directory and run cmake again
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

Re: not working

Post by mlemaitre »

I tried from scratch with the latest code this morning, but it still won't work.
If I disable the radius module in the config file, then it starts, but it's not the goal.

I tried with DLUA = FALSE, and it works too.
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

Re: not working

Post by mlemaitre »

I found that libradius.so can't find libluasupp.so:

Code: Select all

# ldd /usr/lib64/accel-ppp/libradius.so 
	linux-vdso.so.1 (0x00007ffe4ffea000)
	libluasupp.so => not found
	liblua5.1.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 (0x00007f235dd8a000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f235da86000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f235d6e7000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f235d4e3000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f235e1cf000)

but libluasupp.so is in the same directory...

Code: Select all

# ls /usr/lib64/accel-ppp
libauth_chap_md5.so   libauth_pap.so	  libipoe.so	   libipv6_nd.so   liblog_file.so    liblogwtmp.so   libpppd_compat.so	libradius.so   libtriton.so
libauth_mschap_v1.so  libchap-secrets.so  libippool.so	   libipv6pool.so  liblog_syslog.so  libluasupp.so   libpppoe.so	libshaper.so   libvlan-mon.so
libauth_mschap_v2.so  libconnlimit.so	  libipv6_dhcp.so  libl2tp.so	   liblog_tcp.so     libnet-snmp.so  libpptp.so		libsigchld.so
any idea ?
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: not working

Post by Dmitry »

commit 28cafaac477170d9dabf970d33da0b45bafebe49
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

Re: not working

Post by mlemaitre »

perfect, thank you !
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

Re: not working

Post by mlemaitre »

another thing I noticed is that the ip-down script is not run anymore.
in this commit, a4ec2baf624ee3642b8fcb09d1c30229c8e17f91, you now use pd->started and pd->ip_up_hnd.pid, but maybe they are no defined in the ap_session struct ?
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: not working

Post by Dmitry »

commit d3c2680d0d8094b1c05d069c9cc8976359ce936b
mlemaitre
Posts: 27
Joined: 04 Dec 2014, 15:09

Re: not working

Post by mlemaitre »

ok, thank you
Post Reply