Rene Wintjens
compile on 5.3 : run on 5.3 -> OK 6.3 -> OK 7.0 -> "command not found" (!!!) 7.2 -> "command not found"
It seems 5.3 is libc.so.5 based. If I remember it right the package shlibs5 was installed in 6.3 by default but not in 7.x. Just install it there and the program will run. (The message "command not found" is misleading, the problem is not related to your PATH).
compile on 6.3 : run on 5.3 -> "command not found" 6.3 -> OK 7.0 -> OK 7.2 -> "BUG IN DYNAMIC LINKER ld.so: dynamic-link.h:62: elf_get_dynamic_info: Assertion `! "bad dynamic tag"'"
The problem with 5.3 is obvious - libc.so.6 isn't there. I don't know the reason for 7.2; it is probably related to changes in libc.so.6 (or gcc). If portability is in mind, generate static executables. $ gcc -o t_d t.c $ ldd t_d libc.so.6 => /lib/libc.so.6 (0x40028000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) $ gcc -static -o t_s t.c $ ldd t_s not a dynamic executable $ ls -l t_d t_s -rwxr-xr-x 1 malusek malusek 13324 Sep 14 12:25 t_d -rwxr-xr-x 1 malusek malusek 1451665 Sep 14 12:25 t_s -- Alexandr.Malusek@imv.liu.se
participants (1)
-
Alexandr Malusek