安装了scratchbox,在login时发现下列问题:
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
原因如下:
This is related to the kernel you are running that require a feature not available in the glibc version
workaround:
- recompile your kernel using COMPAT_VDSO=y (in Processor type and features, Compat VDSO support)
- pass an option to the kernel on boot (add vdso=0 to the grub or lilo kernel line)
- disable compat vdso directly with echo 0 > /proc/sys/vm/vdso_enabled
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
原因如下:
This is related to the kernel you are running that require a feature not available in the glibc version
workaround:
- recompile your kernel using COMPAT_VDSO=y (in Processor type and features, Compat VDSO support)
- pass an option to the kernel on boot (add vdso=0 to the grub or lilo kernel line)
- disable compat vdso directly with echo 0 > /proc/sys/vm/vdso_enabled
按第三种办法解决:
sudo -i
echo 0 > /proc/sys/vm/vdso_enabled
再来启动/scratchbox/login,OK。
sudo -i
echo 0 > /proc/sys/vm/vdso_enabled
再来启动/scratchbox/login,OK。
第三种办法在每次重启动机器后会失效,若想永久保留此变量的值,需要修改配置文件。
You can set all of these permanently by adding the following lines to /etc/sysctl.conf vm.vdso_enabled = 0 vm.mmap_min_addr = 4096 net.ipv4.ip_local_port_range = 1024 65535 and running 'sysctl -p' as root. WARNING: You should try setting these values by echoing them to the given locations before adding them to sysctl.conf to see if they cause any problems. For example, in some Ubuntu Gutsy installations, it has been observed that changing the vdso settings will hang the system and thus making permanent changes in sysctl.conf may, in these cases, make your system unbootable.
也还可以参考官方文档: Documentation/Maemo 5 Final SDK Installation中的
Limitations of Scratchbox
部分