Le Mon, 19 Jun 2006 16:11:03 -0700 "Dan Nicholson" <[EMAIL PROTECTED]>
a écrit :
> Just a guess, but vmware probably builds a kernel module. It needs to
> build the kernel module against whatever kernel you plan on running.
> So, you need to keep around the source dir from when you compiled your
> kernel and point vmware-install.pl to it.
>
> Paldo installs the vmware kernel module without using the perl
> installer. Maybe you could read the vmware-install.pl script and try
> to recreate its actions without all the sanity checks it does.
Trouble is I can't understand perl. I thik the faulty code is
$header_page_offset = direct_command(
shell_string($gHelper{'echo'}) . ' '
. shell_string('#define __KERNEL__' . "\n" . '#include <asm/page.h>'
. "\n" . $pattern . ' __PAGE_OFFSET') . ' | '
. shell_string($gHelper{'gcc'}) . ' ' . shell_string('-I' . $answer)
. ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
. shell_string($pattern));
chomp($header_page_offset);
$header_page_offset =~ s/^$pattern \(?0x([0-9a-fA-F]{8,}).*$/$1/;
if ($header_page_offset =~ /[0-9a-fA-F]{8,}/) {
# We found a valid page offset
if (defined($gSystem{'page_offset'}) and
not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) {
if ($source eq 'user') {
print wrap('The kernel defined by this directory of header files
does ' . 'not have the same address space size as your running '
. 'kernel.' . "\n\n", 0);
}
return '';
}
}
So if I understand correctly, perl tries to build a c file, pass it to
gcc and note the answer. Trouble is I can't figure out :
1) what the $pattern is (it seems to be vmware version, or something like
that, but it could be a totally other thing !)
2) why this code works on Linux 2.6.13, and not 2.6.16.5...
3) what I could do to correct this...
Thanks for your help, anyway.
\bye
--
Nicolas FRANCOIS
http://nicolas.francois.free.fr
A TRUE Klingon programmer does NOT comment his code
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page