Claudio Scordino ha scritto:
Claudio Scordino ha scritto:
Hi all,

I'm using the latest Scratchbox on git repository with a CodeSourcery toolchain (arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2) and a Maemo rootstrap (I tried both 4.01 and 4.1).

I have the following issues:

1) If I type:

sb2 -e apt-get install libncurses5-dev

I get

Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
  libncurses5-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1055kB of archives.
After unpacking 5386kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libncurses5-dev
Install these packages without verification [y/N]? y
/bin/sh: line 1: /usr/sbin/dpkg-preconfigure: No such file or directory
dpkg: requested operation requires superuser privilege
E: Sub-process /usr/bin/dpkg returned an error code (2)

Do I need fakeroot on my rootfs ? Can I use the fakeroot on my machine (i.e. the one out of sb2) ?


2) If, out of scratchbox2, I type:

gcc hello.c -lncurses

the program is compiled correctly.

If, inside scratchbox2, I type

sb2 host-gcc hello.c -lncurses

I get

collect2: ld terminated with signal 11 [Segmentation fault]

Note that I don't have ncurses on my rootfs, but I've it on my machine. And I suppose that using "host-gcc" it should use the external version of ncurses...

I found out that this problem is related to LD_PRELOAD.

If I type

export LD_PRELOAD=

before compiling with host-gcc, then it works.

I found out also that it is a regression: with an older release of scratchbox2 (when SBOX_CONFIG_VERSION=5) this does not happen.
Hi all,

I tried the host-gcc once again, using the latest git version of Scratcbox2.

The problem still remains: when I use the host-gcc toolchain, something wrong happens, unless I set LD_PRELOAD="".

For instance, I have problems with the lxdialog utility, which says "Error opening terminal: xterm." when I try a "make menuconfig" (which uses external ncurses libraries).

Since this is a regression (old versions of sbox2 didn't have this problem) I think it should be definitely fixed.

Regards,

             Claudio

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to