maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Maemo SDK under Ubuntu Hardy/kernel 2.6.24 (https://talk.maemo.org/showthread.php?t=19590)

qwerty12 2008-04-27 09:42

Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Hi,

Anyone who goes on IRC knows about my scratchbox problems. Sbox worked great for me in Ubuntu 7.10 but when I upgraded to 8.04, that's when the problems started.

1. Problem 1.

faheem@faheem-desktop:~$ scratchbox
Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dos' failed!

VDSO needs to be disabled.

Thanks to pH5's blog: http://poh9.blogspot.com/

I found this:
su -i
echo 0 > /proc/sys/vm/vdso_enabled

Now, that will disable it for that session afaik. To set it permanently add vdso=0 to your kernel line in menu.lst (for grub).

Problem 2: (This affects you when you are installing the maemo-sdk, under Ubuntu Hardy at least).

Quick cut:
Quote:

subprocess post-installation script returned error exit status 255
dpkg: also configuring `hildon-update-category-database' (required by `hildon-application-framework-packages')
dpkg: also configuring `desktop-file-utils' (required by `hildon-application-framework-packages')
Setting up hildon-update-category-database (1.10.1-1) ...
mmap: Permission denied
dpkg: error processing hildon-update-category-database (--install):
subprocess post-installation script returned error exit status 255
dpkg: also configuring `hildon-update-category-database' (required by `libhildonmime0')
Setting up shared-mime-info (0.19-1) ...
mmap: Permission denied
dpkg: error processing shared-mime-info (--install):
subprocess post-installation script returned error exit status 255
dpkg: also configuring `shared-mime-info' (required by `libosso-gnomevfs2-common')
Setting up libsdl-image1.2-dev (1.2.4-5) ...
Setting up sudo (1.6.8p12-4osso7) ...
Updating sudoers
mmap: Permission denied
/etc/sudoers.d/01sudo changes break sudoers
dpkg: error processing sudo (--install):
subprocess post-installation script returned error exit status 1
dpkg: also configuring `sudo' (required by `maemo-core-runtime')
Setting up ifupdown (0.6.7osso) ...
mkdir wrapper: /dev/shm/network -> /targets/CHINOOK_ARMEL/dev/shm/network
/scratchbox/tools/bin/mkdir: cannot create directory `/targets/CHINOOK_ARMEL/dev/shm/network': File exists
dpkg: error processing ifupdown (--install):
subprocess post-installation script returned error exit status 1
dpkg: also configuring `ifupdown' (required by `netbase')
Setting up sudo (1.6.8p12-4osso7) ...
Updating sudoers
mmap: Permission denied
/etc/sudoers.d/01sudo changes break sudoers
dpkg: error processing sudo (--install):
subprocess post-installation script returned error exit status 1
dpkg: also configuring `sudo' (required by `osso-af-startup')
Setting up sudo (1.6.8p12-4osso7) ...
Updating sudoers
mmap: Permission denied
/etc/sudoers.d/01sudo changes break sudoers
dpkg: error processing sudo (--install):
subprocess post-installation script returned error exit status 1
dpkg: also configuring `sudo' (required by `osso-app-killer')
Setting up hildon-update-category-database (1.10.1-1) ...
mmap: Permission denied
dpkg: error processing hildon-update-category-database (--install):
subprocess post-installation script returned error exit status 255
Setting up desktop-file-utils (0.12-1osso2) ...
mmap: Permission denied
dpkg: error processing desktop-file-utils (--install):
subprocess post-installation script returned error exit status 255
dpkg: also configuring `hildon-update-category-database' (required by `hildon-application-framework-packages')
dpkg: also configuring `desktop-file-utils' (required by `hildon-application-framework-packages')
Setting up hildon-update-category-database (1.10.1-1) ...
mmap: Permission denied
dpkg: error processing hildon-update-category-database (--install):
subprocess post-installation script returned error exit status 255
dpkg: also configuring `hildon-update-category-database' (required by `libhildonmime0')
Setting up shared-mime-info (0.19-1) ...
mmap: Permission denied
dpkg: error processing shared-mime-info (--install):
subprocess post-installation script returned error exit status 255
dpkg: also configuring `shared-mime-info' (required by `libosso-gnomevfs2-common')
Setting up sudo (1.6.8p12-4osso7) ...
Updating sudoers
mmap: Permission denied
/etc/sudoers.d/01sudo changes break sudoers
dpkg: error processing sudo (--install):
subprocess post-installation script returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
lock
partial
shared-mime-info
sudo
desktop-file-utils
hildon-update-category-database
ifupdown
desktop-file-utils
hildon-update-category-database
shared-mime-info
sudo
ifupdown
sudo
sudo
hildon-update-category-database
desktop-file-utils
hildon-update-category-database
shared-mime-info
sudo
ifupdown
sudo
sudo
hildon-update-category-database
desktop-file-utils
hildon-update-category-database
shared-mime-info
sudo
ifupdown
sudo
sudo
hildon-update-category-database
desktop-file-utils
hildon-update-category-database
shared-mime-info
sudo
ifupdown
sudo
sudo
hildon-update-category-database
desktop-file-utils
Basically, it failed.

Thanks to inz here: http://maemo.org/news/planet-maemo/c...4d5d8a3e5c362/

the solution is (do this before you install) :
su -
echo 4096 > /proc/sys/vm/mmap_min_add
echo 4096 > /proc/sys/vm/mmap_min_addr

OSEmuTech 2008-04-27 13:43

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
I tried for a couple hours last night to copy/paste that error into a post here asking for assistance or confirmation. I figured someone else would before I woke up and tried again. :(

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

(I am using VMware on Windows to run Hardy and Scratchbox.)

qwerty12 2008-04-27 13:48

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Did you get it to work? :)

Disabling VDSO did it for me. But, if you don't mind me asking, isn't it easier to use the indt image that has the sdk with it? :)

OSEmuTech 2008-04-27 14:00

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
I have the Maemo SDK VMware image, but disk space on my hard drives are limited and I wanted to be able to use Ubuntu 8.04 for all my Linux\developmental\experimental needs.

I see that you got Scratchbox at least to run. I have low-speed Internet, so maybe I'll hold off tying up my bandwidth for hours downloading\installing the Maemo SDK as apparently even that has problems installing on Hardy.

qwerty12 2008-04-27 14:05

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Ah, I'd recommend (if you can get the bandwidth) to install it on 7.10. IMO, 7.10 is perfect for the sdk as the install works out of the box.

8.10 works fine with the tweaks above but it still needs tweaks :/

pjohnsen 2008-06-03 06:57

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
For making the tweaks permanent you can also edit /etc/sysctl.conf:

Change:

vm.mmap_min_addr = 65536

to

vm.mmap_min_addr = 4096

and add

vm.vdso_enabled = 0

-Pelle

thopiekar 2009-02-14 10:25

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
try sb_fix from my project easy-sdk...

I think it should fix all problems if not contact me on irc..
https://garage.maemo.org/projects/esdk/
https://garage.maemo.org/frs/?group_...elease_id=2435

start the program by -$ python sb_fix.py

greetings :)

gpmartinson 2009-02-16 14:39

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Thopiekar, I tried to use sb_fix and I get this:
Traceback (most recent call last):
File "sb_fix.py", line 115, in <module>
sb_fix('all')
File "sb_fix.py", line 24, in sb_fix
if chkcfg('sb_fix'):
NameError: global name 'chkcfg' is not defined
I think I'll find the prebuilt vmware build instead.

BrentDC 2009-02-16 16:11

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
Anyone get SB installed on 64-bit Ubuntu 8.10? That's what I've got running here...(for one, the installer script doesn't work).

ErikBam 2009-03-21 12:37

Re: Maemo SDK under Ubuntu Hardy/kernel 2.6.24
 
hi,
Anyone get SB installed on 64-bit Ubuntu 8.10? That's what I've got running here...(for one, the installer script doesn't work).

http://sentersoftech.com/senter/happy.gif


All times are GMT. The time now is 14:41.

vBulletin® Version 3.8.8