This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

undefined open64. cross compiling glib with arm-elf


Hi,
      I am trying to cross compile glib 2.2.0 on my x86 m/c for ARM m/c
using arm-elf tools.

I had to struggle a bit to get through the configure stage. ...Now am
stuck with make giving error like undefined open64() , lseek64() etc.
Can anybody tell me what the problem is and how to solve it?


> 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


Thanx in advance,
Pannaga Bhushan


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]