Hello Toni,

I know that I have installed a newest version of libc6. Well,
My final target is to compile gpsdrive and it needs gtk2.
First, I have tried to compile hello-world-gtk example
included in scratchbox but it needs gtk and libpango and
others libraries.  Gtk and libpango ask me to install a newest
version of libc6.

Well, I have try to install libc6-dev

[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] > dpkg -i
libc6-dev_2.3.2-sb1_arm.deb
dpkg - warning: downgrading libc6-dev from 2.3.6-7 to 2.3.2-sb1.
dpkg: regarding libc6-dev_2.3.2-sb1_arm.deb containing libc6-dev:
 linux-kernel-headers conflicts with libc6-dev (<< 2.3.2.ds1-6)
  libc6-dev (version 2.3.2-sb1) is to be installed.
dpkg: error processing libc6-dev_2.3.2-sb1_arm.deb (--install):
 conflicting packages - not installing libc6-dev
Errors were encountered while processing:
 libc6-dev_2.3.2-sb1_arm.deb



[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] > apt-get
remove libc6-dev
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  libatk1.0-dev libc6-dev libcairo2-dev libexpat1-dev
libfontconfig1-dev
  libfreetype6-dev libglib2.0-dev libgtk2.0-dev
libpango1.0-dev libpng12-dev
  libxft-dev zlib1g-dev
0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 25.4MB disk space will be freed.
Do you want to continue? [Y/n






[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] > dpkg -P
libc6-dev
dpkg: dependency problems prevent removal of libc6-dev:
 libfreetype6-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 libglib2.0-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 zlib1g-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 libxft-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 libexpat1-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 libfreetype6-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 libglib2.0-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 zlib1g-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 libxft-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
 libexpat1-dev depends on libc6-dev | libc-dev; however:
  Package libc6-dev is to be removed.
  Package libc-dev is not installed.
  Package libc6-dev which provides libc-dev is to be removed.
dpkg: error processing libc6-dev (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libc6-dev
[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] >






[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] > dpkg -i
libc6-dev_2.3.2-sb1_arm.deb
Selecting previously deselected package libc6-dev.
dpkg: regarding libc6-dev_2.3.2-sb1_arm.deb containing libc6-dev:
 linux-kernel-headers conflicts with libc6-dev (<< 2.3.2.ds1-6)
  libc6-dev (version 2.3.2-sb1) is to be installed.
dpkg: error processing libc6-dev_2.3.2-sb1_arm.deb (--install):
 conflicting packages - not installing libc6-dev
Errors were encountered while processing:
 libc6-dev_2.3.2-sb1_arm.deb
[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] > apt-get
remove linux-kernel-headers


apt-get remove linux-kernel-headers
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  linux-kernel-headers
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 10.3MB disk space will be freed.
Do you want to continue? [Y/n] Y

------------------------------------------------------------------
After
------------------------------------------------------------------

[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] > dpkg -i
libc6-dev_2.3.2-sb1_arm.deb
Selecting previously deselected package libc6-dev.
dpkg: regarding libc6-dev_2.3.2-sb1_arm.deb containing libc6-dev:
 linux-kernel-headers conflicts with libc6-dev (<< 2.3.2.ds1-6)
  libc6-dev (version 2.3.2-sb1) is to be installed.
dpkg: error processing libc6-dev_2.3.2-sb1_arm.deb (--install):
 conflicting packages - not installing libc6-dev
Errors were encountered while processing:
 libc6-dev_2.3.2-sb1_arm.deb
[sbox-MYTARGET10:
/scratchbox/compilers/arm-linux-ct401-2.3/packages] > apt-get
remove linux-kernel-headers


dpkg -i linux-kernel-headers_2.6.11.2-sb1_arm.deb
Selecting previously deselected package linux-kernel-headers.
(Reading database ... 8406 files and directories currently
installed.)
Unpacking linux-kernel-headers (from
linux-kernel-headers_2.6.11.2-sb1_arm.deb) ...
Setting up linux-kernel-headers (2.6.11.2-sb1) ...




[sbox-MYTARGET10: ~/MYTARGET10/hello-world] > ./configure
checking for a BSD-compatible install...
/scratchbox/tools/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error:
cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
[sbox-MYTARGET10: ~/MYTARGET10/hello-world] >


What can i do?

I have found a linux distribution in maemo.org and i have
compiled hello-world-gtk correctly. However, I cannot compile
gpsdrive. I have a problem with another library.

Somebody has compiled gpsdrive with Scratchbox. If it is true
please help me.





>On Wed, May 03, 2006 at 06:55:01PM +0100, "José A.Benítez
Peláez" wrote:
>> Well, I am trying to compile the package hello-world-gtk. I
>> have a problem but I cannot solve it. The problem is that when
>> I install gtk2 the gcc compiler doesn`t run
>>
>> I have set up scractchbox in a host Debian. I have installed
>> this packages<..>
>>  After I have set up scracthbox with sb-menu and I have
>> selected these options<..>
>>  Select compiler: arm-linux-ct401-2.3 cross
>>  <..>
>>  After this I have tested sbrsh and it runs
>>
>>  After I have compiled the package
>>  /scratchbox/packages/hello-world.tar.gz
>>  and runs
>>
>> ----------------------------------------------------------
>>  [sbox-MYTARGET10: /scratchbox/devkits/debian/bin] >
>>  sb-install-base-packages
>>  Reading Package Lists... Done
>>  Building Dependency Tree... Done
>>  The following extra packages will be installed:
>>  <...> libc6 <...>
>>
>>  ----------------------------------------------------------
>>
>>  After, I have compiled hello-world again without problems
>>
>> ----------------------------------------------------------
>> ----------------------------------------------------------
>>
>>  After, I have installed gtk2
>>
>> ----------------------------------------------------------
>>  [sbox-MYTARGET10: ~/hello-world] > fakeroot apt-get install
>>  libgtk2.0-dev
>>  Reading Package Lists... Done
>>  Building Dependency Tree... Done
>>  The following extra packages will be installed:
>>  <...> libc6-dev <...>
>> ...
>> [sbox-MYTARGET10: ~/hello-world] >
>> ----------------------------------------------------------
>>
>>  And finaly, I have tried to compile hello-world again and I
>> have problems
>>
>> ----------------------------------------------------------
>You probably installed a version of libc6 (or libc6-dev) that is
>incompatible with the toolchain you are using. You should use the
>libc6/libc6-dev packages provided with the toolchain (in
>/scratchbox/compilers/arm-linux-ct401-2.3/packages/ directory).
>--
>Toni Timonen
>040-5111863,GPG 0x7984A4FD


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

Reply via email to