Re: [OpenWrt-Devel] Problems building glib

2008-06-01 Thread Michael Geddes
> > );
> > endef
> > -8<-
>
> The build is done in 2 passes, it first builds glib for the host to have
> a  'glib-genmarshal' utility working on the host system, and then it
> builds glib for the target, telling configure to use the
> 'glib-genmarshal' that was just built before.
>
> --
> Nico
>
AH.

So I wonder if it's the host or the target that fails the test compile?

//.ichael
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Problems building glib

2008-06-01 Thread Nico
Michael Geddes wrote:
> There's some weirdness in the Makefile I just don't understand (snippet 
> below).
>
> What on earth is this trying to achieve!? Doing a "make install clean" in 
> the 'Configure'  target seems a rather strange thing to be doing.
>
> I might just see if I can not compile this.
>
> //.ichael G
>
>
> --8<---
> define Build/Configure
>   mkdir -p $(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)
>   ( cd $(PKG_BUILD_DIR); CONFIG_SITE= \
>   ./configure \
>   --target=$(GNU_HOST_NAME) \
>   --host=$(GNU_HOST_NAME) \
>   --build=$(GNU_HOST_NAME) \
>   --prefix=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME) \
>   --disable-shared \
>   --enable-static \
>   --enable-debug=no \
>   );
>   $(MAKE) -C $(PKG_BUILD_DIR) install clean
>
>   $(call Build/Configure/Default, \
>   --enable-shared \
>   --enable-static \
>   --enable-debug=no \
>   , \
>   CPPFLAGS="CPPFLAGS 
> -I$(STAGING_DIR)/usr/lib/libiconv/include" \
>   CPPFLAGS="CPPFLAGS 
> -I$(STAGING_DIR)/usr/lib/libintl/include" \
>   LDFLAGS="LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
>   LDFLAGS="LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
>   glib_cv_stack_grows=no \
>   glib_cv_uscore=no \
>   
> ac_cv_path_GLIB_GENMARSHAL=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)/bin/glib-genmarshal
>  
> \
>   );
> endef
> -8<-
>   
The build is done in 2 passes, it first builds glib for the host to have
a  'glib-genmarshal' utility working on the host system, and then it
builds glib for the target, telling configure to use the
'glib-genmarshal' that was just built before.

--
Nico


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Problems building glib

2008-05-31 Thread Michael Geddes
I'm getting this - it's stopping my build, and I'm not really sure how to 
procede!


8<--
Making all in tests
make[8]: Entering directory 
`/Debian/home/michaelg/OpenWRT/build/trunk/build_dir/mipsel/glib-2.15.4/gio/tests'
/bin/bash ../../libtool --tag=CC   --mode=link 
mipsel-linux-uclibc-gcc  -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time 
-fhonour-copts  -Wall  
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/toolchain-mipsel_gcc3.4.6/lib
 -L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/usr/lib 
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/lib 
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/toolchain-mipsel_gcc3.4.6/lib
  
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/usr/lib/libiconv/lib
 
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/usr/lib/libintl/lib
 -o 
memory-input-stream 
memory-input-stream.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la 
../../gio/libgio-2.0.la -lintl
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time 
-fhonour-copts -Wall -o .libs/memory-input-stream 
memory-input-stream.o  
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/toolchain-mipsel_gcc3.4.6/lib
 -L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/usr/lib 
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/lib 
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/usr/lib/libiconv/lib
 
-L/Debian/home/michaelg/OpenWRT/build/trunk/staging_dir/mipsel/usr/lib/libintl/lib
 ../../glib/.libs/libglib-2.0.so ../../gobject/.libs/libgobject-2.0.so 
../../gio/.libs/libgio-2.0.so 
/Debian/home/michaelg/OpenWRT/build/trunk/build_dir/mipsel/glib-2.15.4/gobject/.libs/libgobject-2.0.so
 
/Debian/home/michaelg/OpenWRT/build/trunk/build_dir/mipsel/glib-2.15.4/gmodule/.libs/libgmodule-2.0.so
 -ldl 
/Debian/home/michaelg/OpenWRT/build/trunk/build_dir/mipsel/glib-2.15.4/glib/.libs/libglib-2.0.so
 -liconv -lintl
../../gio/.libs/libgio-2.0.so: undefined reference to `inotify_init'
../../gio/.libs/libgio-2.0.so: undefined reference to `inotify_rm_watch'
../../gio/.libs/libgio-2.0.so: undefined reference to `inotify_add_watch'
-8<-

There is a patch that modifies Makefile.in  to remove the test/ directory - 
this patch is being applied (checked Makefile.in).

There's some weirdness in the Makefile I just don't understand (snippet 
below).

What on earth is this trying to achieve!? Doing a "make install clean" in 
the 'Configure'  target seems a rather strange thing to be doing.

I might just see if I can not compile this.

//.ichael G


--8<---
define Build/Configure
mkdir -p $(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)
( cd $(PKG_BUILD_DIR); CONFIG_SITE= \
./configure \
--target=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME) \
--disable-shared \
--enable-static \
--enable-debug=no \
);
$(MAKE) -C $(PKG_BUILD_DIR) install clean

$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--enable-debug=no \
, \
CPPFLAGS="CPPFLAGS 
-I$(STAGING_DIR)/usr/lib/libiconv/include" \
CPPFLAGS="CPPFLAGS 
-I$(STAGING_DIR)/usr/lib/libintl/include" \
LDFLAGS="LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
LDFLAGS="LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
glib_cv_stack_grows=no \
glib_cv_uscore=no \

ac_cv_path_GLIB_GENMARSHAL=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)/bin/glib-genmarshal
 
\
);
endef
-8<-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel