Re: Compiling problem with gtk+-1.2.10



Thanks for your comment.

Evan Martin wrote:

It looks like shared library problem. Actually, my
libXext(/skiff/local/lib/libXext.so.6)  is
not dynamic linking,  like
# ldd /skiff/local/arm-linux/lib/libXext.so.6
        not a dynamic executable

Are you running the host system (i386) ldd, and not the skiff (arm)
ldd.? Try running the one in /skiff/local/bin .

Thanks, I misunderstood.  I used the system ldd.



To compile on a skiff, try this (it's been working pretty well for me
for compiling other packages):

export CC=/skiff/local/bin/arm-linux-gcc

./configure --host=i686-linux --target=arm-linux
--prefix=/skiff/local/arm-linux
--x-includes=/skiff/local/arm-linux/include/X11/
--x-libraries=/skiff/local/arm-linux/lib/X11 --disable-static


I tried with your all options, it looks like better. All of the object
files are made.
But when entring the path  make the testgtk, I got the following
messages and
then the make was end.
I think  "multiple definition" should be resolved between libraries... ,
so there
would be a  lack of importand  configuration. Are there any ideas about
this?
-----------------------------------------------------------------------------------------------------------------------

/skiff/local/bin/arm-linux-gcc -O2 -fno-exceptions -Wall -o testgtk
testgtk.o .libs/libgtk.a -L/usr/lib -l
gmodule -lglib -ldl -L/skiff/local/arm-linux/lib/X11 -lXext -lX11 -lm
../gdk/.libs/libgdk.a -lgmodule -lgl
ib -ldl -lXext -lX11 -lm -L/skiff/local/arm-linux/lib/X11 -lXext -lX11
-L/usr/lib -rdynamic -lgmodule -lgl
ib -ldl -lm
/usr/lib/libgmodule.so: In function `_init':
/usr/lib/libgmodule.so(.init+0x0): multiple definition of `_init'
/skiff/local/arm-linux/lib/crti.o(.init+0x0): first defined here
/usr/lib/libgmodule.so: In function `_fini':
/usr/lib/libgmodule.so(.fini+0x0): multiple definition of `_fini'
/skiff/local/arm-linux/lib/crti.o(.fini+0x0): first defined here
/usr/lib/libglib.so: In function `atexit':
/tmp/22394-i386/BUILD/glibc-2.2.3/stdlib/atexit.c:33: multiple
definition of `_DYNAMIC'
/usr/lib/libglib.so: In function `_init':
/usr/lib/libglib.so(.init+0x0): multiple definition of `_init'
/skiff/local/arm-linux/lib/crti.o(.init+0x0): first defined here
/usr/lib/libglib.so: In function `atexit':
/skiff/local/bin/arm-linux-gcc -shared  gdk.lo gdkcc.lo gdkcolor.lo
gdkcursor.lo gdkdnd.lo gdkdraw.lo gdkevents.lo gdkfont.lo gdkgc.lo
gdkglobals.lo gdkim.lo gdkimage.lo gdkinput.lo gdkpixmap.lo
gdkproperty.lo gdkrgb.lo gdkrectangle.lo gdkregion.lo gdkselection.lo
gdkvisual.lo gdkwindow.lo gdkxid.lo gxid_lib.lo  -L/usr/lib -lgmodule
-lglib -ldl -L/skiff/local/arm-linux/lib/X11 -lm -lc  -Wl,-soname
-Wl,libgdk-1.2.so.0 -o .libs/libgdk-1.2.so.0.9.1
/usr/lib/libgmodule.so(*ABS*+0x2c9c): multiple definition of `_DYNAMIC'
/skiff/local/arm-linux/lib/crti.o(.dynamic+0x0): first defined here
/usr/lib/libgmodule.so: In function `_init':
/usr/lib/libgmodule.so(.init+0x0): multiple definition of `_init'
/skiff/local/arm-linux/lib/crti.o(.init+0x0): first defined here
/usr/lib/libgmodule.so: In function `_fini':
/usr/lib/libgmodule.so(.fini+0x0): multiple definition of `_fini'
/skiff/local/arm-linux/lib/crti.o(.fini+0x0): first defined here
/usr/lib/libgmodule.so(*ABS*+0x2c18): multiple definition of
`_GLOBAL_OFFSET_TABLE_'
/skiff/local/arm-linux/lib/crti.o(.got.plt+0x0): first defined here
/usr/lib/libglib.so: In function `atexit':
/tmp/22394-i386/BUILD/glibc-2.2.3/stdlib/atexit.c:33: multiple
definition of `_DYNAMIC'
/skiff/local/arm-linux/lib/crti.o(.dynamic+0x0): first defined here
/usr/lib/libglib.so: In function `_init':
/usr/lib/libglib.so(.init+0x0): multiple definition of `_init'
/skiff/local/arm-linux/lib/crti.o(.init+0x0): first defined here
/usr/lib/libglib.so: In function `atexit':
/usr/lib/libglib.so: In function `atexit':
/tmp/22394-i386/BUILD/glibc-2.2.3/stdlib/atexit.c:33: multiple
definition of `_edata'
/tmp/22394-i386/BUILD/glibc-2.2.3/stdlib/atexit.c:33: multiple
definition of `_GLOBAL_OFFSET_TABLE_'
/skiff/local/arm-linux/lib/crti.o(.got.plt+0x0): first defined here
//skiff/local/bin/arm-linux-gcc -shared  gdk.lo gdkcc.lo gdkcolor.lo
gdkcursor.lo gdkdnd.lo gdkdraw.lo gdkevents.lo gdkfont.lo gdkgc.lo
gdkglobals.lo gdkim.lo gdkimage.lo gdkinput.lo gdkpixmap.lo
gdkproperty.lo gdkrgb.lo gdkrectangle.lo gdkregion.lo gdkselection.lo
gdkvisual.lo gdkwindow.lo gdkxid.lo gxid_lib.lo  -L/usr/lib -lgmodule
-lglib -ldl -L/skiff/local/arm-linux/lib/X11 -lm -lc  -Wl,-soname
-Wl,libgdk-1.2.so.0 -o .libs/libgdk-1.2.so.0.9.1
/usr/lib/libgmodule.so(*ABS*+0x2c9c): multiple definition of `_DYNAMIC'
/skiff/local/arm-linux/lib/crti.o(.dynamic+0x0): first defined here
/usr/lib/libgmodule.so: In function `_init':
/usr/lib/libgmodule.so(.init+0x0): multiple definition of `_init'
/skiff/local/arm-linux/lib/crti.o(.init+0x0): first defined here
/usr/lib/libgmodule.so: In function `_fini':
/usr/lib/libgmodule.so(.fini+0x0): multiple definition of `_fini'
/skiff/local/arm-linux/lib/crti.o(.fini+0x0): first defined here
/usr/lib/libgmodule.so(*ABS*+0x2c18): multiple definition of
`_GLOBAL_OFFSET_TABLE_'
/skiff/local/arm-linux/lib/crti.o(.got.plt+0x0): first defined here
/usr/lib/libglib.so: In function `atexit':
/tmp/22394-i386/BUILD/glibc-2.2.3/stdlib/atexit.c:33: multiple
definition of `_DYNAMIC'
/skiff/local/arm-linux/lib/crti.o(.dynamic+0x0): first defined here
/usr/lib/libglib.so: In function `_init':
/usr/lib/libglib.so(.init+0x0): multiple definition of `_init'
/skiff/local/arm-linux/lib/crti.o(.init+0x0): first defined here
/usr/lib/libglib.so: In function `atexit':
/usr/lib/libglib.so: In function `atexit':
/tmp/22394-i386/BUILD/glibc-2.2.3/stdlib/atexit.c:33: multiple
definition of `_edata'
/tmp/22394-i386/BUILD/glibc-2.2.3/stdlib/atexit.c:33: multiple
definition of `_GLOBAL_OFFSET_TABLE_'
/skiff/local/arm-linux/lib/crti.o(.got.plt+0x0): first defined here
.........
/skiff/local/arm-linux/lib/libX11.so: undefined reference to
`connect@@GLIBC_2.0'
/skiff/local/arm-linux/lib/libX11.so: undefined reference to
`fopen@@GLIBC_2.1'
/skiff/local/arm-linux/lib/libX11.so: undefined reference to
`pthread_mutex_unlock@@GLIBC_2.0'
/skiff/local/arm-linux/lib/libX11.so: undefined reference to
`pthread_equal@@GLIBC_2.0'
/skiff/local/arm-linux/lib/libX11.so: undefined reference to
`fwrite@@GLIBC_2.0'
/skiff/local/arm-linux/lib/libX11.so: undefined reference to
`socket@@GLIBC_2.0'
/skiff/local/arm-linux/lib/libX11.so: undefined reference to
`_IO_getc@@GLIBC_2.0'
collect2: ld returned 1 exit status
make[2]: *** [testgtk] Error 1
make[2]: Leaving directory `/home/midori/Gtk/gtk+-1.2.10/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/midori/Gtk/gtk+-1.2.10'
make: *** [all-recursive-am] Error 2
-----------------------------------------------------------------------------------------------------------------------------














[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]