The warning about "kernel-module version mismatch" is expected,
and always is in the log file.  It is not a problem or an indication
of a problem.

The real problem is that _M_max_num_sessions is not set properly.
This is because max_sessions is malfunctioning.  This is a really
simple plain C program.  I can't explain why it fails on your
system.  But this is what you can do:
Remove the /opt/win4lin/bin/max_sessions file and replace it with 
a small script that has these two lines:
        echo 1
        exit 0
Make it executable.  Then run /opt/win4lin/drivers/tools/loadem
to load the Win4Lin modules.

But it looks like other binaries are malfunctioning in a similar way.
I would guess that there is some library that is damaged.

-David

Pawel Golik wrote:
> 
> Hi!
>         I've been happily using Win4Lin2.0. With the upgrade to 3.0 I decided to
> give it a try. I downloaded, unpacked and ran the installer, gave it my 3.0
> license upgrade code. The graphical installer finished without any error
> messages. But I can't run win4lin!
>         First: I'm running Mandrake8.0, but my kernel is the stock 2.4.4 manually
> patched with win4lin (I never trust distro-modified kernels).
> 'grep mki_install_hook /proc/ksyms' gives "c0111520 mki_install_hook_2_4 ",
> so I assume the kernel is right. Installer detected it as "2.4.4-win4lin" and
> let me proceed.
>         In syslog I found a mesage "Failed to load Mmerge.o" so I looked at
> /var/win4lin/log/insmod.log and found:
> MERGE_TUNE: _M_max_num_sessions=
> SERIAL_TUNE: mcom1_irq=4 mcom2_irq=3
> Mmerge.o: too few values for _M_max_num_sessions (min 1)
> Warning: kernel-module version mismatch
>         Mmerge.o was compiled for kernel version 2.4.3-20mdk-win4lin
>         while this kernel is version 2.4.4-win4lin
> 
> So, it tries to load mdk module even though the kernel is not a mdk one. So I
> tried to move all the file in /opt/win4lin/drivers/2.4.mdk to a backup dir
> and replace them by copies from /opt/win4lin/drivers/2.4
> After reboot - same thing, only now the message in insmod.log is
> MERGE_TUNE: _M_max_num_sessions=
> SERIAL_TUNE: mcom1_irq=4 mcom2_irq=3
> Mmerge.o: too few values for _M_max_num_sessions (min 1)
> Warning: kernel-module version mismatch
>         Mmerge.o was compiled for kernel version 2.4.1-win4lin
>         while this kernel is version 2.4.4-win4lin
> So, maybe it tries the mdk module as it is 2.4.3 as opposed to 2.4.1, so
> closer to my 2.4.4. Anyway, I have versioning disabled in kernel, so I don't
> think this warning is the real problem. The problem must be "MERGE_TUNE:
> _M_max_num_sessions="
> 
> I looked at the scripts and realized that to get max number of sessions
> /opt/win4lin/bin/max_sessions is called. So I tried calling it from command
> line (everything as root of course). result: segmentation fault, core dumped.
> This is consistent with what happens at boot - I find core after the failed
> attempt to load Mmerge.o
> 
> So, what now?? Why can't I load Win4Lin modules. Kernel 2.4.4 should be
> supported, the patch is there, right. Other that win4lin patch and aic7xxx
> patch (required to compile the thing) this is stock kernel from kernel.org,
> no mdk peculiarities there. I tried uninstalling (rpm -e) and reinstalling
> the downloaded rpm. Invoking rpm from command line gives a whole bunch of
> error messages. Some pretty mundane "file exists" but also:
> 
> /opt/win4lin/Install/inst_mrg.sh: line 590:  2437 Segmentation fault
> (core dumped) $STATICMERGE/publicbin/dosexec +v >>$LOG_FILE
> /opt/win4lin/Install/inst_mrg.sh: line 11:  2503 Segmentation fault
> (core dumped) winadmin printer delete $i >>$NULL 2>&1
> ...
> and two more screens of similar stuff from inst_mrg.sh and mrg_setup.sh
> plus at the end
> expr: syntax error
> /opt/win4lin/drivers/tools/loadem: [: -lt: unary operator expected
> /opt/win4lin/drivers/tools/loadem: [: -gt: unary operator expected
> /opt/win4lin/adminbin/rlock_tune: [: -le: unary operator expected
> /opt/win4lin/adminbin/rlock_tune: [: -le: unary operator expected
> /opt/win4lin/adminbin/rlock_tune: [: -le: unary operator expected
> /opt/win4lin/adminbin/rlock_tune: [: -le: unary operator expected
> Failed to load Mmerge.o
> See /var/win4lin/log/insmod.log for load failure messages.
> Starting Merge virtual network (vnetd)
> 
> And still nothing works.
> Anyone???? BTW. I'd like to avoid having to wipe everything out and start
> from the scratch - lots of personalization went into my win configuration,
> lots of soft installed and configured, etc.
>         TIA
>         Pawel
> 
> --
> Pawel Golik
> http://www.gen.emory.edu/cmm/people/staff/pgolik.html
> Currently at 33*48'53"N 84*19'25"W
> Home is at 52*12'25"N 21*5'37"E
> _______________________________________________
> Win4Lin-users mailing list
> [EMAIL PROTECTED]
> https://lists.netraverse.com/mailman/listinfo/win4lin-users
_______________________________________________
Win4Lin-users mailing list
[EMAIL PROTECTED]
https://lists.netraverse.com/mailman/listinfo/win4lin-users

Reply via email to