Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2008-04-27, 09:42
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default 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

Last edited by qwerty12; 2008-04-27 at 15:15.
Reply With Quote
The Following 5 Users Say Thank You to qwerty12 For This Useful Post:
  #2  
Old 2008-04-27, 13:43
OSEmuTech's Avatar
OSEmuTech OSEmuTech is offline
 
Join Date: Jan 2008
Location: Temple Terrorist, FL
Posts: 466
Thanks!: 78
Thanked 142 Times in 86 Posts
Default 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.)
__________________
16-Bit x86 DOS: DOSBox
Amiga 68k: UAE
Apple II: Winapple
Apple 68k Mac: Basilisk II
Commodore 64: Frodo
Palm OS: Access GarnetVM
TI-89 Calculator: TiEmu 2
Reply With Quote
  #3  
Old 2008-04-27, 13:48
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default 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?
Reply With Quote
  #4  
Old 2008-04-27, 14:00
OSEmuTech's Avatar
OSEmuTech OSEmuTech is offline
 
Join Date: Jan 2008
Location: Temple Terrorist, FL
Posts: 466
Thanks!: 78
Thanked 142 Times in 86 Posts
Default 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.
__________________
16-Bit x86 DOS: DOSBox
Amiga 68k: UAE
Apple II: Winapple
Apple 68k Mac: Basilisk II
Commodore 64: Frodo
Palm OS: Access GarnetVM
TI-89 Calculator: TiEmu 2
Reply With Quote
  #5  
Old 2008-04-27, 14:05
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default 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 :/
Reply With Quote
  #6  
Old 2008-06-03, 06:57
pjohnsen pjohnsen is offline
 
Join Date: Apr 2008
Posts: 1
Thanks!: 0
Thanked 1 Time in 1 Post
Default 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
Reply With Quote
The Following User Says Thank You to pjohnsen For This Useful Post:
  #7  
Old 2009-02-14, 10:25
thopiekar thopiekar is offline
 
Join Date: Feb 2008
Location: Solingen; Germany
Posts: 88
Thanks!: 52
Thanked 63 Times in 25 Posts
Send a message via Skype™ to thopiekar
Default 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

Last edited by thopiekar; 2009-02-14 at 10:27.
Reply With Quote
  #8  
Old 2009-02-16, 14:39
gpmartinson gpmartinson is offline
 
Join Date: Feb 2009
Location: Saint Paul, mn
Posts: 43
Thanks!: 11
Thanked 6 Times in 5 Posts
Default 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.
Reply With Quote
  #9  
Old 2009-02-16, 16:11
BrentDC's Avatar
BrentDC BrentDC is offline
 
Join Date: Apr 2008
Posts: 903
Thanks!: 272
Thanked 632 Times in 298 Posts
Default 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).
Reply With Quote
  #10  
Old 2009-03-21, 12:37
ErikBam ErikBam is offline
 
Join Date: Mar 2009
Posts: 2
Thanks!: 0
Thanked 0 Times in 0 Posts
Default 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).

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:34.