Bernd Paysan wrote:
On Wednesday 25 May 2005 11:44, Constantine 'Gus' Fantanas wrote:
9.3? Furthermore, take a look at part of the 'strace' out below:
----------------------------------------------------------------- gus@presario:~> strace acroread execve("/usr/X11R6/bin/acroread", ["acroread"], [/* 84 vars */]) = 0 uname({sys="Linux", node="presario", ...}) = 0 brk(0) = 0x592000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaac1000 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=170278, ...}) = 0 mmap(NULL, 170278, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aaaaaac2000 close(3) = 0 open("/lib64/libreadline.so.5", 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\240.\1\0"..., 640) = 640
/usr/X11R6/bin/acroread is just a shell script that starts the real acroread in /usr/X11R6/lib/Acrobat7/Reader/intellinux/bin/acroread. This shell script is a 64 bit application (bash ;-). As it links to libreadline, you can guess that it must be a GPL'd program.
--OK. What I cannot understand, then, is how can the 64-bit Mozilla successfully open the 32-bit acrobat? This is not supposed to happen, yet it does! Or is Mozilla (not Firefox) also compiled as 32 bit? So, can I write a 64-bit (bash) script which then invokes a 32-bit plugin, the end result being, say, 64-bit Mozilla invoking the 32-bit plugin via the script? It can't be that simple; otherwise 64=bit Mozilla would be able to play flash animations (Macromedia refuses to offer their closed source flash player in 64-bit form).