Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] building libglib2
@ 2010-05-21 13:15 Sagaert Johan
  0 siblings, 0 replies; 3+ messages in thread
From: Sagaert Johan @ 2010-05-21 13:15 UTC (permalink / raw)
  To: buildroot

Hi
 
Ii am building on a x96 32 bits (debian  5 (lenny)
 
i have done 2 build : one with uclibc 0.9.30.3 and one with 0.9.31
 
under 9.30.3  the build of libglib2 finnished without errors , BUT if i
examine the config.log i see this :
I would not expect that configure returns 0  ! see below.
build under 9.31  configure returns 1
 
 
snip
 
configure:23303: checking for arpa/nameser_compat.h
configure:23303: result: yes
configure:23314: checking for res_query
configure:23314:
/home/johan/buildroot/output/staging/usr/bin/i586-unknown-linux-uclibc-gcc
-Os -pipe -Os  -mtune=geode -march=geode -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/home/johan/buildroot/output/staging/usr/include
-I/home/johan/buildroot/output/staging/include
--sysroot=/home/johan/buildroot/output/staging/ -isysroot
/home/johan/buildroot/output/staging -o conftest -Os -pipe -Os  -mtune=geode
-march=geode -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -I/home/johan/buildroot/output/staging/usr/include
-I/home/johan/buildroot/output/staging/include
--sysroot=/home/johan/buildroot/output/staging/ -isysroot
/home/johan/buildroot/output/staging -Wall  -DG_DISABLE_SINGLE_INCLUDES
-L/home/johan/buildroot/output/staging/lib
-L/home/johan/buildroot/output/staging/usr/lib
--sysroot=/home/johan/buildroot/output/staging/ conftest.c -lintl   >&5
/tmp/ccf4AZZn.o: In function `main':
conftest.c:(.text+0x12): undefined reference to `res_query'
collect2: ld returned 1 exit status
configure:23314: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.22.5"
| #define PACKAGE_STRING "glib 2.22.5"
| #define PACKAGE_BUGREPORT
"http://bugzilla.gnome.org/enter_bug.cgi?product=glib"
| #define PACKAGE_URL ""
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 22
| #define GLIB_MICRO_VERSION 5
| #define GLIB_INTERFACE_AGE 5
| #define GLIB_BINARY_AGE 2205
 
snip 
 
#define HAVE_MONOTONIC_CLOCK 1
#define G_ATOMIC_I486 1
#define ENABLE_REGEX /**/
 
configure: exit 0
 
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
 
This file was extended by glib config.status 2.22.5, which was
generated by GNU Autoconf 2.65.  Invocation command line was
 
  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status glibconfig.h
 
on debian
 
config.status:2080: executing glibconfig.h commands
config.status:3360: glibconfig.h is unchanged

----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------------------------------------------
When building using 9.31
config.log:
snip 
 

configure:23314: checking for res_query
configure:23314:
/home/johan/buildroot/output/staging/usr/bin/i586-unknown-linux-uclibc-gcc
-Os -pipe -Os  -mtune=geode -march=geode -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/home/johan/buildroot/output/staging/usr/include
-I/home/johan/buildroot/output/staging/include
--sysroot=/home/johan/buildroot/output/staging/ -isysroot
/home/johan/buildroot/output/staging -o conftest -Os -pipe -Os  -mtune=geode
-march=geode -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -I/home/johan/buildroot/output/staging/usr/include
-I/home/johan/buildroot/output/staging/include
--sysroot=/home/johan/buildroot/output/staging/ -isysroot
/home/johan/buildroot/output/staging -Wall  -DG_DISABLE_SINGLE_INCLUDES
-L/home/johan/buildroot/output/staging/lib
-L/home/johan/buildroot/output/staging/usr/lib
--sysroot=/home/johan/buildroot/output/staging/ conftest.c -lintl   >&5
/tmp/cc6tYUC2.o: In function `main':
conftest.c:(.text+0x12): undefined reference to `res_query'
collect2: ld returned 1 exit status
configure:23314: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.22.5"
| #define PACKAGE_STRING "glib 2.22.5"
| #define PACKAGE_BUGREPORT "
<http://bugzilla.gnome.org/enter_bug.cgi?product=glib>
http://bugzilla.gnome.org/enter_bug.cgi?product=glib"
| #define PACKAGE_URL ""
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 22
| #define GLIB_MICRO_VERSION 5
 
snip
 
#define HAVE_HASMNTOPT 1
#define HAVE_NANOSLEEP 1
#define HAVE_GETPROTOBYNAME_R 1
#define HAVE_ENDSERVENT 1
#define HAVE_NETDB_H 1
#define HAVE_STRNDUP 1
#define HAVE_SETRESUID 1
#define HAVE_SETREUID 1
#define HAVE_SYS_PRCTL_H 1
#define HAVE_ARPA_NAMESER_COMPAT_H 1
 
configure: exit 1
 
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100521/7c16f75e/attachment-0001.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] building libglib2
@ 2010-05-21 13:43 Sagaert Johan
  2010-05-21 14:09 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Sagaert Johan @ 2010-05-21 13:43 UTC (permalink / raw)
  To: buildroot

 
I checked the staging dir :
 
in my 0.9.30.3 build there is a staging/lib/libresolv.so.0
 
under my build with uclibc 0.9.31 there is no such library
 
So that seems to be the reason for the failing libglib2 build.
 
So i checked uclibc's makefile.in (line 40):
 
There seems tio be a conditional  in the 0.9.31 version  
i am no expert in makefiles, but i think there is smoke here..
 
Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100521/0d5e50e6/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] building libglib2
  2010-05-21 13:43 [Buildroot] building libglib2 Sagaert Johan
@ 2010-05-21 14:09 ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2010-05-21 14:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Sagaert" == Sagaert Johan <sagaert.johan@skynet.be> writes:

 Sagaert> I checked the staging dir :
 
 Sagaert> in my 0.9.30.3 build there is a staging/lib/libresolv.so.0
 
 Sagaert> under my build with uclibc 0.9.31 there is no such library

No? Are you using
BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.31.config" in your
config?

libresolv is empty in 0.9.31 (functionality in libuClibc), but we are
building a stub libresolv since mid april:

4ab6883ac5aa07ea1c317d85c92495b155cf214a
Author: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date:   Wed Apr 14 11:17:47 2010 -0300

    uclibc: Enable libresolv and libnsl stubs by default for 0.9.31
    
    Closes #1555.
    
    Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
    Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
    Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-21 14:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 13:43 [Buildroot] building libglib2 Sagaert Johan
2010-05-21 14:09 ` Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2010-05-21 13:15 Sagaert Johan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox