Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1057472
  • 博文数量: 166
  • 博客积分: 10217
  • 博客等级: 上将
  • 技术积分: 2133
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-09 19:45
文章分类

全部博文(166)

文章存档

2012年(3)

2011年(7)

2010年(18)

2009年(59)

2008年(79)

我的朋友

分类: LINUX

2008-09-03 19:30:20

今天装了个较新的ubuntu后,发现登录/scratchbox不正常了。还以为是/scratchbox坏了,于是重新解包,配置/scratchbox,结果还是登录不了,错误如下:
mxzh@mxzh-desktop:~/opt2/scratchbox-tar$ /scratchbox/login

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

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!
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

我的ubuntu是8.04,内核是2.6.24-16-generic
查了一些资料,感觉主要是高版本的内核引起的。主要解决如下

主要是参考:

其他的资料也大多是从上面的这个来的

Howto Installing Maemo SDK 4

Installing Scratchbox

The first tool you have to install is Scratchbox. I suggest you to use the script provided but you could choose also to install it manually (in this case please refer to [this site] for detailed instructions).

Before beginning the installation of Scratchbox, you have to become root.

First of all set the permission of the script file:

chmod a+x ./maemo-scratchbox-install_4.0.1.sh

Then run it with these parameters:

./maemo-scratchbox-install_4.0.1.sh

Scratchbox environment will be installed in /scratchbox/

Once Scratchbox is installed, you have to add a user to the environment, in this way:

/scratchbox/sbin/sbox_adduser USER yes

where USER is your Linux username.

Please note that you'll have to logout and login again to be able to log into you new Scratchbox environment. To test it you simply have to start Scratchbox from your local user:

andy80@noteboontu:~/download/maemo_4.0.1$ /scratchbox/login

NOTE: on Ubuntu installation, you have to disable VDSO to make Scratchbox work fine, or you'll get errors like this:

Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

you can fix that executing this command from root user:

echo 0 | sudo tee /proc/sys/vm/vdso_enabled

Another problem you could have is related to mmap under Ubuntu Hardy, you can fix with this command:

echo 4096 | sudo tee /proc/sys/vm/mmap_min_addr

To make all these changes permanent after each reboot, you can edit /etc/sysctl.conf and add these lines:

vm.vdso_enabled = 0
vm.mmap_min_addr = 4096

then apply it in this way:

sysctl -p
[]

Installing Maemo SDK



另外可看看
http://inz.fi/blog/2008/01/17/scratchbox-on-hardy/
http://blog.enterpriselab.ch/zdweber/2008/04/
阅读(1659) | 评论(0) | 转发(0) |
0

上一篇:安装svn和简单使用

下一篇:Linux热插拔

给主人留下些什么吧!~~