danix

error building gtk+ on LTIB

Discussion created by danix on Aug 14, 2011
Latest reply on Aug 16, 2011 by vikram u

Hi all,

I was trying to build to build an application using GTK as in the imx wiki page, but when I try to build gtk on LTIB it gives me the following error,... I couldn't even know what the error is...

 

[In LTIB, i selected packages: gtk+, direct fb (with examples), Liberation fonts, Tslib, Xll and Zlib as the wiki in the wiki along with other packages I need...]

...

directfb/.libs/libgdk-directfb.a(gdkwindow-directfb.o): In function `IA__gdk_window_withdraw':
/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk/directfb/gdkwindow-directfb.c:1304: multiple definition of `IA__gdk_window_withdraw'
.libs/gdkwindow.o:/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk/gdkwindow.c:3574: first defined here
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld: Warning: size of symbol `IA__gdk_window_withdraw' changed from 180 in .libs/gdkwindow.o to 144 in directfb/.libs/libgdk-directfb.a(gdkwindow-directfb.o)
directfb/.libs/libgdk-directfb.a(gdkwindow-directfb.o): In function `IA__gdk_window_show':
/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk/directfb/gdkwindow-directfb.c:1245: multiple definition of `IA__gdk_window_show'
.libs/gdkwindow.o:/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk/gdkwindow.c:3526: first defined here
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld: Warning: size of symbol `IA__gdk_window_show' changed from 212 in .libs/gdkwindow.o to 148 in directfb/.libs/libgdk-directfb.a(gdkwindow-directfb.o)
directfb/.libs/libgdk-directfb.a(gdkwindow-directfb.o): In function `IA__gdk_window_show_unraised':
/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk/directfb/gdkwindow-directfb.c:1235: multiple definition of `IA__gdk_window_show_unraised'
.libs/gdkwindow.o:/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk/gdkwindow.c:3411: first defined here
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld: Warning: size of symbol `IA__gdk_window_show_unraised' changed from 172 in .libs/gdkwindow.o to 148 in directfb/.libs/libgdk-directfb.a(gdkwindow-directfb.o)
collect2: ld returned 1 exit status
make[4]: *** [libgdk-directfb-2.0.la] Error 1
make[4]: Leaving directory `/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/danny/ltib/rpm/BUILD/gtk+-2.14.3/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/danny/ltib/rpm/BUILD/gtk+-2.14.3'
make: *** [all] Error 2
error: Bad exit status from /home/danny/ltib/tmp/rpm-tmp.32522 (%build)


RPM build errors:
    Bad exit status from /home/danny/ltib/tmp/rpm-tmp.32522 (%build)
Build time for gtk2: 22 seconds

Failed building gtk2


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Sun Aug 14 11:58:06 2011
Ended:   Sun Aug 14 11:58:54 2011
Elapsed: 48 seconds

These packages failed to build:
gtk2

Build Failed

Exiting on error or interrupt
danny@Danny:~/ltib$

 

PS: I'm using Ubuntu 10.10 on the host and the latest Linux BSP for imx233 from FSL

Outcomes