LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2009, 09:35 PM   #1
jeazh
LQ Newbie
 
Registered: May 2009
Posts: 7

Rep: Reputation: 1
Cross compiling glib-2.0.0


I need cross compile a glib-2.0.0 share libraries.when I user my crosstool(gcc-3.4.6-glibc-2.3.6) to compile it ,I encountered a error like the underline show.who meet the same error like me,or have a good solution?Thank at first!

[root@mdvs glib-2.0.0]# ./configure --host=arm-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for the BeOS... no
checking for Win32... no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... no
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for c++... c++
checking for arm-linux-g++... (cached) c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for a BSD compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking for gawk... gawk
checking for perl5... perl5
checking for indent... no
checking for perl5... /usr/bin/perl5
checking for arm-linux-ranlib... arm-linux-ranlib
checking how to run the C preprocessor... arm-linux-gcc -E
checking for ANSI C header files... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... az ca de el es eu fr gl ja ko nl nn no pl pt ro ru sk sl sv ta tr uk zh_CN zh_TW
checking for bind_textdomain_codeset... yes
checking for ld used by GCC... /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld
checking if the linker (/arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld) is GNU ld... yes
checking for /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/bin/arm-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib)
checking command to parse /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/bin/arm-linux-nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for arm-linux-file... no
checking for file... /usr/bin/file
checking for arm-linux-ranlib... (cached) arm-linux-ranlib
checking for arm-linux-strip... arm-linux-strip
checking for objdir... .libs
checking for arm-linux-gcc option to produce PIC... -fPIC
checking if arm-linux-gcc PIC flag -fPIC works... yes
checking if arm-linux-gcc static flag -static works... yes
checking if arm-linux-gcc supports -c -o file.o... yes
checking if arm-linux-gcc supports -c -o file.lo... no
checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
 
Old 05-11-2009, 03:52 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,661

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
Glib-2.0.0 is very old.

When another application asks for glib-2.0 = > glib-2.0.0
it means glib-2.0.0 or newer.

Just try a newer version, the current stable is 2.20.1
ftp://ftp.gtk.org/pub/glib/

Older versions can be googled
http://www.google.com/search?hl=en&q...earch&aq=f&oq=
.....
 
Old 05-12-2009, 08:27 AM   #3
jeazh
LQ Newbie
 
Registered: May 2009
Posts: 7

Original Poster
Rep: Reputation: 1
Thanks for you help

Quote:
Originally Posted by knudfl View Post
Glib-2.0.0 is very old.

When another application asks for glib-2.0 = > glib-2.0.0
it means glib-2.0.0 or newer.

Just try a newer version, the current stable is 2.20.1
ftp://ftp.gtk.org/pub/glib/

Older versions can be googled
http://www.google.com/search?hl=en&q...earch&aq=f&oq=
.....


Thanks for you help!
I have solved the problem smoothly

I compiled the version of 2.20.0 before,but fail,so I did not try 2.20.1.

Thank you again!
 
Old 06-04-2009, 02:02 AM   #4
Galterian
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Hi,
and what was your "smooth" solution.
I tried and 2.20.1 but fail the same way (the make file, with those code injections, for "the tests", is awful).

Quote:
Originally Posted by jeazh View Post
Thanks for you help!
I have solved the problem smoothly

I compiled the version of 2.20.0 before,but fail,so I did not try 2.20.1.

Thank you again!
 
Old 06-13-2009, 02:03 AM   #5
jeazh
LQ Newbie
 
Registered: May 2009
Posts: 7

Original Poster
Rep: Reputation: 1
[QUOTE=Galterian;3562588]Hi,
and what was your "smooth" solution.
I tried and 2.20.1 but fail the same way (the make file, with those code injections, for "the tests", is awful).[/QUOT






I think you should check the version of yout crosstools,what I use is gcc-3.4.6-glibc-2.3.6
 
Old 12-28-2009, 06:26 AM   #6
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
i am compilaing and glib for my ARM baord and i am getting one error
see
Code:
checking for format to printf and scanf a guint64... none
checking for an ANSI C-conforming const... yes
checking if malloc() and friends prototypes are gmem.h compatible... yes
checking for growing stack pointer... configure: error: in `/mnt/freescale/sources/glib-2.22.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
Configuration of glib library  has failed
sharief@sharief-desktop:/mnt/freescale/sources/glib-2.22.0$
can anyone help me..what is this? and how to clear that?

Last edited by shariefbe; 12-28-2009 at 06:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glib cross compile error m.harshavardhan Linux - General 1 12-04-2007 03:31 AM
Cross compiling Mike Davies Linux - Kernel 4 04-04-2007 10:59 AM
glib Error: while building Cross-Compiler for PPC Dhana_pal Linux From Scratch 2 12-28-2006 12:57 AM
cross compiling with g++ hornofsalvation Linux - Newbie 2 10-09-2004 10:29 PM
Compiling GAIM says i need GLib 2.0, yet i have GLib 2.4 MadSkillzMan Linux - Newbie 3 07-10-2004 04:10 AM


All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration