Problem to install parallens on openSuse 11.3

TyD

Bit poster
When I install parallels on openSuse 11.3, I have this problem, somebody have any idea? maybe dependencies or problems with kernel o dkms or another stuff?
Thank for ur help

2010-07-22T11:09:41-0500:

Parallels Desktop 4.0.6630.449744 Installer started.
2010-07-22T11:09:44-0500: execCmd: http_proxy= ./prl_updater_ctl.x86_64 check -u desktop_wl -ui > /dev/null 2>&1 [1]
2010-07-22T11:09:48-0500: execCmd: touch /tmp/prl_ceiprogram_enable [0]
2010-07-22T11:09:48-0500: execCmd: ./installer/conflict_check desktop [0]
2010-07-22T11:09:48-0500: check conflict products: ./installer/conflict_check return 0
2010-07-22T11:09:48-0500: Parallels CPU Check Tool

CPU Vendor: Intel
Hardware Virtualization: PRESENTED (VT-x)

Summary: Your CPU can run Virtual Machines
2010-07-22T11:09:48-0500: execCmd: ./installer/cpu_check [0]
2010-07-22T11:09:48-0500: check_hardware_virtualization: ./installer/cpu_check return 0
2010-07-22T11:09:48-0500: execCmd: ./installer/check_selinux.sh 2>&1 [1]
2010-07-22T11:09:48-0500: execCmd: ./installer/check_disk_space.sh 2>&1 [0]
2010-07-22T11:09:48-0500: The file /usr/bin/prlctl cannot be found.
2010-07-22T11:09:48-0500: execCmd: ./installer/pm.sh --check workstation [0]
make: Entering directory `/tmp/.yyXz3o3Pq/parallels-kernel-modules'
ln -sf ./ src/Monitor
make -C src/hypervisor-api/Linux
make[1]: Entering directory `/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux'
rm -rf *.o *.ko .*.cmd *.mod.c .tmp_versions *.symvers
make -C /lib/modules/2.6.34-12-default/build SUBDIRS=/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux SRCROOT=/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux modules
make[2]: Entering directory `/usr/src/linux-2.6.34-12-obj/x86_64/default'
make -C ../../../linux-2.6.34-12 O=/usr/src/linux-2.6.34-12-obj/x86_64/default/. modules
CC [M] /tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.o
In file included from /tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/../../interface/hyp_hypervisor_api.h:40:0,
from /tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.h:17,
from /tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c:23:
/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/../../Interfaces/ParallelsTypes.h:120:7: warning: "_MSC_VER" is not defined
/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c: In function ‘hypEventCreateObject’:
/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c:112:2: error: implicit declaration of function ‘kmalloc’
/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c:112:16: warning: cast to pointer from integer of different size
/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c:139:3: error: implicit declaration of function ‘kfree’
make[5]: *** [/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.o] Error 1
make[4]: *** [_module_/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux] Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.34-12-obj/x86_64/default'
make[1]: *** [prl_hypervisor_api] Error 2
make[1]: Leaving directory `/tmp/.yyXz3o3Pq/parallels-kernel-modules/src/hypervisor-api/Linux'
make: *** [all] Error 2
make: Leaving directory `/tmp/.yyXz3o3Pq/parallels-kernel-modules'
2010-07-22T11:09:54-0500: exec_with_progress: ./installer-cli --logfile=/var/log/parallels-desktop-install.log --progress --define="kversion=$(uname -r)" -i Manifest 2>&1 1
2010-07-22T11:09:54-0500: Error: Error during configuration Parallels Desktop. Look at /var/log/parallels-desktop-install.log for more information.
 
I hit the same problem when installing parallels on fedorea 13

It looks like the kmalloc and kfree are not defined anywhere. In order to fix this one needs to include linux/slab.h in certain places.

solution:
1.) $ sh parallels-desktop-4.0.6630.449744.run --target /tmp/parallels

exit the installer by clicking on cancel.

2.) $ cd /tmp/parallels/data/usr/lib/parallels-desktop/
3.) $ tar xzf parallels-kernel-modules.tar.gz
4.) $ vim /tmp/parallels/data/usr/lib/parallels-desktop/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c

add at line 20:

#include <linux/slab.h>

5.) $ vim /tmp/parallels/data/usr/lib/parallels-desktop/parallels-kernel-modules/src/host.Linux/lin_module.h

add at line 23:

#include <linux/slab.h>

6.) $ vim /tmp/parallels/data/usr/lib/parallels-desktop/parallels-kernel-modules/src/usb/prl_usb_connect.c

add at line 6:

#include <linux/slab.h>

7.) $ tar czf parallels-kernel-modules.tar.gz parallels-kernel-modules
8.) $ cd /tmp/parallels
9.) $ ./install
 
I did exactly what wojtur described, but still get the following errors:

...
CC [M] /tmp/.Cn51cqsie/parallels-kernel-modules/src/drivers/../host.Linux/lin_device.o
In file included from /tmp/.Cn51cqsie/parallels-kernel-modules/src/drivers/../host.Linux/lin_device.c:18:0:
/tmp/.Cn51cqsie/parallels-kernel-modules/src/drivers/../host.Linux/lin_module.h:21:28: fatal error: linux/autoconf.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[5]: *** [/tmp/.Cn51cqsie/parallels-kernel-modules/src/drivers/../host.Linux/lin_device.o] Fehler 1
make[4]: *** [_module_/tmp/.Cn51cqsie/parallels-kernel-modules/src/drivers] Fehler 2
make[3]: *** [sub-make] Fehler 2
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/usr/src/linux-2.6.34.7-0.5-obj/x86_64/desktop'
make[1]: *** [prl_hypervisor] Fehler 2
make[1]: Leaving directory `/tmp/.Cn51cqsie/parallels-kernel-modules/src/drivers'
make: *** [all] Fehler 2
make: Leaving directory `/tmp/.Cn51cqsie/parallels-kernel-modules'
2010-11-21T08:54:37+0100: exec_with_progress: ./installer-cli --logfile=/var/log/parallels-desktop-install.log --progress --define="kversion=$(uname -r)" -i Manifest 2>&1 1
2010-11-21T08:54:37+0100: Error: Error during configuration Parallels Desktop. Look at /var/log/parallels-desktop-install.log for more information.

Any ideas, what I need to do ?
 
Finally, I found a solution myself...

the problem is, that in SuSE 11.3 the autoconf.h has been moved. So the easiest solution is to define a link as follows:

a) $ cd /usr/src/linux-2.6.34.7-0.5-obj/x86_64/desktop/include/linux
b) $ ln -s /usr/src/linux-2.6.34.7-0.5-obj/x86_64/desktop/include/generated/autoconf.h autoconf.h

and then start with the procedure described by wojtur - it works !
 
I also have similar error on Fedora 14 Kernel 2.6.35.12,What should I do about this?Thanks..
1.gif
 
Well I solved the problem just like I said. Do the changes wojtur described in post 2 of this thread and then do in addition the changes described in this post here.

I did it with version 5, not the 6 beta version. But I was lucky by just trying out some things without really knowing what I did, so if that doesn't work I can't help you, sorry!
 
Installing parallels-desktop-4.0.6630.449744.run on opensuse11.4 as in namr's last post, I ended with errors like
/tmp/.5yQPBlsOe/parallels-kernel-modules/src/drivers/../host.Linux/lin_device.c:44:8: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
Solution: Rename DECLARE_MUTEX to DEFINE_SEMAPHORE

After that I get errors like
/tmp/.0QmW90FV7/parallels-kernel-modules/src/drivers/../host.Linux/lin_timer.c:65:19: error: ‘const struct file_operations’ has no member named ‘ioctl’

Solution: Change
#if defined(HAVE_UNLOCKED_IOCTL)
if (filp->f_op->unlocked_ioctl)
ret = filp->f_op->unlocked_ioctl(filp, cmd, arg);
else
#endif
{
lock_kernel();
ret = filp->f_op->ioctl(filp->f_dentry->d_inode, filp, cmd, arg);
unlock_kernel();
}
into
#if defined(HAVE_UNLOCKED_IOCTL)
if (filp->f_op->unlocked_ioctl) {
ret = filp->f_op->unlocked_ioctl(filp, cmd, arg);
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
lock_kernel();
ret = filp->f_op->ioctl(filp->f_dentry->d_inode, filp, cmd, arg);
unlock_kernel();
#endif

leading to errors concerning 'ioctl' in

parallels-kernel-modules/src/network/pvsnet/pvsnet.c:2025
parallels-kernel-modules/src/network/pvsvnic/vmvirtualnic.c:327

just packing the relavant lines into

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
#endif

solved the problem for me.
 
fixes for Ubuntu 11.04?

I'm seeing the same issue on Ubuntu 11.04. I've tried the fixes listed in this thread, but it still won't compile. Are there other tweaks that need to be made? Has anyone gotten it working on Ubuntu?

last error I get after following all of the above suggestions is:
/tmp/.d9tI9fJhP/parallels-kernel-modules/src/vtd/prl_os.c:345:2: error: void value not ignored as it ought to be
/tmp/.d9tI9fJhP/parallels-kernel-modules/src/vtd/prl_os.c:346:1: warning: control reaches end of non-void function
 
Back
Top