undefined open64 ... in cross-compiling of glib



Pannaga Bhushan wrote:

> Hi dan,
>         Am trying to cross compile glib for arm. Took the version
> glib-2.2.0
>
> Had to struggle a little with the ./configure part of it. Now the
> configure is going thro' fine.
> However make is failing with error abt open64, lseek64 etc.   like ---

> make[2]: Entering directory `/opt/uClinux/user/glib-2.2.0/gobject'
> arm-elf-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GLib-GObject\" -I.. -I../glib -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGOBJECT_COMPILATION -DG_DISABLE_CONST_RETURNS    -I/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/include/ -Wall -c glib-genmarshal.c
> /bin/sh ../libtool --mode=link arm-elf-gcc  -I/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/include/ -Wall -L/opt/uClinux/lib/ -o glib-genmarshal  glib-genmarshal.o ../glib/libglib-2.0.la -lintl
> mkdir .libs
> arm-elf-gcc -I/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/include/ -Wall -o glib-genmarshal glib-genmarshal.o  -L/opt/uClinux/lib/ ../glib/.libs/libglib-2.0.a -lm /usr/local/arm/armlibiconv/output//lib/libiconv.a /usr/local/arm/armgettext/output/lib/libintl.a -lc
> -X -o glib-genmarshal /opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/crtbegin.o /opt/uClinux/arm-elf/lib/crt0.o -L/opt/uClinux/lib/ -L/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3 -L/opt/uClinux/arm-elf/lib glib-genmarshal.o ../glib/.libs/libglib-2.0.a -lm /usr/local/arm/armlibiconv/output//lib/libiconv.a /usr/local/arm/armgettext/output/lib/libintl.a -lc -lgcc -lc -lgcc /opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/crtend.o
> glib-genmarshal.o: In function `main':
> glib-genmarshal.o(.text+0x18dc): undefined reference to `open64'
> ../glib/.libs/libglib-2.0.a(gscanner.o): In function `g_scanner_sync_file_offset':
> gscanner.o(.text+0x2004): undefined reference to `lseek64'
> ../glib/.libs/libglib-2.0.a(gutils.o): In function `g_get_codeset':
> gutils.o(.text+0x1514): undefined reference to `nl_langinfo'
> ../glib/.libs/libglib-2.0.a(localcharset.o): In function `_g_locale_get_charset_aliases':
> localcharset.o(.text+0x134): undefined reference to `fopen64'
> ../glib/.libs/libglib-2.0.a(trio.o): In function `_GTrioParse':
> trio.o(.text+0x958): undefined reference to `mblen'
> trio.o(.text+0x9b0): undefined reference to `mblen'
> ../glib/.libs/libglib-2.0.a(trio.o): In function `_GTrioFormatProcess':
> trio.o(.text+0x5c1c): undefined reference to `mblen'
> trio.o(.text+0x5c74): undefined reference to `mblen'
> ../glib/.libs/libglib-2.0.a(trio.o): In function `_GTrioScanProcess':
> trio.o(.text+0x9b84): undefined reference to `mblen'
> ../glib/.libs/libglib-2.0.a(trio.o)(.text+0x9bdc): more undefined references to `mblen' follow
> ../glib/.libs/libglib-2.0.a(gfileutils.o): In function `g_file_test':
> gfileutils.o(.text+0xb4): undefined reference to `lstat64'
> gfileutils.o(.text+0xf8): undefined reference to `stat64'
> ../glib/.libs/libglib-2.0.a(gfileutils.o): In function `get_contents_posix':
> gfileutils.o(.text+0x890): undefined reference to `open64'
> gfileutils.o(.text+0x924): undefined reference to `fstat64'
> ../glib/.libs/libglib-2.0.a(gfileutils.o): In function `g_mkstemp':
> gfileutils.o(.text+0xc24): undefined reference to `mkstemp64'
> collect2: ld returned 1 exit status
> make[2]: *** [glib-genmarshal] Error 1
> make[2]: Leaving directory `/opt/uClinux/user/glib-2.2.0/gobject'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/uClinux/user/glib-2.2.0'
> make: *** [all-recursive-am] Error 2

What is the remedy for all there func_64() functions???

>
> Thanx in advance,
> Pannaga Bhushan




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