[maemo-developers] scratchbox question

From: Rainer Dorsch rdorsch at web.de
Date: Fri May 6 20:14:30 EEST 2011
Hello,

I tried to build navit inside scratchbox and have two configurations for that 
(FREMANTLE_X86 and FREMANTLE_ARMEL).

Seems I have colliding directories in /opt, e.g. when I build for x86, I get:

cc -shared  .libs/graphics_gtk_drawing_area.o  -lgtk-x11-2.0 -lgdk-x11-2.0 
/usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so -lpangoft2-1.0 -lgdk_pixbuf-2.0 
-lpangocairo-1.0 /usr/lib/libcairo.so -lpango-1.0 -lfreetype -lfontconfig 
/usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so 
/usr/lib/libImlib2.so -lm  -Wl,-soname -Wl,libgraphics_gtk_drawing_area.so -o 
.libs/libgraphics_gtk_drawing_area.so
/usr/lib/libImlib2.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[6]: *** [libgraphics_gtk_drawing_area.la] Error 1
make[6]: Leaving directory 
`/home/rd/20110506/navit-0.2.0+dfsg.1/navit/graphics/gtk_drawing_area'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory 
`/home/rd/20110506/navit-0.2.0+dfsg.1/navit/graphics'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/rd/20110506/navit-0.2.0+dfsg.1/navit'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/rd/20110506/navit-0.2.0+dfsg.1/navit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rd/20110506/navit-0.2.0+dfsg.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rd/20110506/navit-0.2.0+dfsg.1'
make: *** [debian/stamp-makefile-build] Error 2
[sbox-FREMANTLE_X86: ~/20110506/navit-0.2.0+dfsg.1] > file 
/usr/lib/libImlib2.so
/usr/lib/libImlib2.so: symbolic link to `libImlib2.so.1.4.0'
[sbox-FREMANTLE_X86: ~/20110506/navit-0.2.0+dfsg.1] > file 
/usr/lib/libImlib2.so.1.4.0
/usr/lib/libImlib2.so.1.4.0: symbolic link to 
`/opt/maemo/usr/lib/libImlib2.so.1.4.0'
[sbox-FREMANTLE_X86: ~/20110506/navit-0.2.0+dfsg.1] > file 
/opt/maemo/usr/lib/libImlib2.so.1.4.0
/opt/maemo/usr/lib/libImlib2.so.1.4.0: ELF 32-bit LSB shared object, ARM, 
version 1 (SYSV), stripped
[sbox-FREMANTLE_X86: ~/20110506/navit-0.2.0+dfsg.1] > ls -l /opt/
total 20
drwxr-xr-x  3 rd 1000 4096 Jun 29  2010 espeak
drwxr-xr-x  2 rd 1000 4096 May  6 19:04 lib
drwxrwxr-x  3 rd 1000 4096 Jun 29  2010 maemo
drwxr-xr-x  8 rd 1000 4096 Jun 29  2010 qt4-maemo5
drwxrwxr-x  3 rd 1000 4096 Jan  8 15:35 share
[sbox-FREMANTLE_X86: ~/20110506/navit-0.2.0+dfsg.1] > ls -l /opt/maemo/
total 4
drwxrwxr-x  6 rd 1000 4096 Jan  8 15:36 usr
[sbox-FREMANTLE_X86: ~/20110506/navit-0.2.0+dfsg.1] > ls -l /
total 44
lrwxrwxrwx    1 root root    18 Dec 12  2009 bin -> /targets/links/bin
lrwxrwxrwx    1 root root    19 Dec 12  2009 boot -> /targets/links/boot
lrwxrwxrwx    1 root root    20 Dec 12  2009 cdrom -> /targets/links/cdrom
drwxr-xr-x   16 root root  3560 May  6 14:11 dev
lrwxrwxrwx    1 root root    18 Dec 12  2009 etc -> /targets/links/etc
lrwxrwxrwx    1 root root    21 Dec 12  2009 floppy -> /targets/links/floppy
drwxr-xr-x    3 root root  4096 Dec 12  2009 home
drwxr-xr-x    3 rd   1000  4096 Dec 12  2009 host_usr
lrwxrwxrwx    1 root root    21 Dec 12  2009 initrd -> /targets/links/initrd
lrwxrwxrwx    1 root root    18 Dec 12  2009 lib -> /targets/links/lib
-rwxr-xr-x    1 rd   1000   424 Aug 27  2009 login_target.sh
lrwxrwxrwx    1 root root    20 Dec 12  2009 media -> /targets/links/media
lrwxrwxrwx    1 root root    18 Dec 12  2009 mnt -> /targets/links/mnt
drwxr-xr-x    7 rd   1000  4096 May  6 17:04 opt
dr-xr-xr-x  320 root root     0 May  6 11:26 proc
lrwxrwxrwx    1 root root    19 Dec 12  2009 root -> /targets/links/root
lrwxrwxrwx    1 root root    19 Dec 12  2009 sbin -> /targets/links/sbin
drwxr-xr-x   14 root root  4096 Jan  8 12:44 scratchbox
lrwxrwxrwx    1 root root    18 Dec 12  2009 srv -> /targets/links/srv
drwxr-xr-x   13 root root     0 May  6 11:26 sys
drwxr-xr-x    5 rd   root  4096 Dec 12  2009 targets
drwxrwxrwt   20 root root 20480 May  6 19:05 tmp
lrwxrwxrwx    1 root root    18 Dec 12  2009 usr -> /targets/links/usr
lrwxrwxrwx    1 root root    18 Dec 12  2009 var -> /targets/links/var
[sbox-FREMANTLE_X86: ~/20110506/navit-0.2.0+dfsg.1] >


Seems that my fundamental problem is that /opt is not a symlink to /targets.

Is that a known problem? If yes, what is the workaround/solution for that? 

Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch at web.de
jabber: rdorsch at jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20110506/a4e7ce4f/attachment.pgp>
More information about the maemo-developers mailing list