[Ilugc] Would copy pasting binary from one to another system work ?

Balasubramaniam Natarajan bala150985 at gmail.com
Sat Aug 18 15:29:50 IST 2012


On Sat, Aug 18, 2012 at 2:43 PM, Mohan R <mohan43u at gmail.com> wrote:

>
> Is it 'strace'? or 'ldd'?
>
> I think you didn't get the meaning of 'dependency
> hell'(http://en.wikipedia.org/wiki/Dependency_hell) Its not about the
> dependency files you see from ldd output. Its about how those dependency
> files installed into your machine. Just try to compile dnsutils from
> source, you will understand what it means. If you want more fun, go for
> Gtk (http://ftp.gnome.org/pub/gnome/sources/gtk+/3.4/gtk+-3.4.4.tar.xz)
>
>
# whatis strace
strace (1)           - trace system calls and signals
# strace nslookup google.com
execve("/usr/bin/nslookup", ["nslookup", "google.com"], [/* 26 vars */]) = 0
brk(0)                                  = 0x7ffbac24c000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ffbaae6b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
*open("/etc/ld.so.cache"*, O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=117365, ...}) = 0
mmap(NULL, 117365, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ffbaae4e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
*open("/usr/lib/liblwres.so.60"*, O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260-\0\0\0\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0644, st_size=71752, ...}) = 0

I took all that nslookup *open*ed to make it work, I won't be following
this for, others claimed that it may break the system.

-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/


More information about the ilugc mailing list