Quote:
Originally Posted by knc1
Use the strace utility on mc when you run it next time - - -
That will show what is being passed and in what format.
(Of course, take hints from the error messages, look first to see what is being passed to the dlopen's mode argument.)
|
Thank you so much for your help! I am learning so much!
error portion of the outside_chroot log:
Code:
User:/tmp/framework:/bin/sh\n", 1024) = 429
close(3) = 0
munmap(0x4001e000, 4096) = 0
mkdir("/tmp/mc-root", 0700) = -1 EEXIST (File exists)
lstat64("/tmp/mc-root", {st_mode=S_IFDIR|0700, st_size=40, ...}) = 0
getuid32() = 0
stat64("libX11.so", {st_mode=S_IFREG|0755, st_size=1126040, ...}) = 0
futex(0x404810a0, 0x81 /* FUTEX_??? */, 2147483647) = 0
writev(2, [{"./mc", 4}, {": ", 2}, {"error while loading shared libraries", 36}, {": ", 2}, {"", 0}, {"", 0}, {"invalid mode for dlopen()", 25}, {": ", 2}, {"Invalid argument", 16}, {"\n", 1}], 10) = 88
exit_group(127) = ?
I don't see what file it is trying to write to? I tried copying libX11 (so it could find it), it's on fat32 so it should be able to be opened for reading, mode 755, right? why would this not work?
I can run mc that I built inside the chroot just fine. I'm using the image twobob posted above, resized to 2Gb, on the Kindle, the latest version:
http://ftp.midnight-commander.org/mc-4.8.10.tar.bz2
I compiled it with the prefix twobob uses above (/mnt/us/extensions/mc) and added flags to not build the documentation. I might rebuild it later if I can get it to work! I exported the whole deal outside the chroot, and specify LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./mc on the command line.
Any more help would be GREATLY appreciated!
PS: congrats on the 5000 post barrier, knc1!