Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] gettext fixes
@ 2006-10-06 16:05 Will Newton
  2006-10-11 16:47 ` Bernhard Fischer
  0 siblings, 1 reply; 7+ messages in thread
From: Will Newton @ 2006-10-06 16:05 UTC (permalink / raw)
  To: buildroot

Building gettext with the latest buildroot fails. I've attached a
patch that fixes a couple of issues for me.

1. am_cv_func_working_getline should be defined or the build fails
with undefined "gnu_getline".
2. The libintl binary has moved.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gettext.patch
Type: application/octet-stream
Size: 932 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20061006/4eefe686/attachment.obj 

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

* [Buildroot] gettext fixes
  2006-10-06 16:05 [Buildroot] gettext fixes Will Newton
@ 2006-10-11 16:47 ` Bernhard Fischer
  2006-10-12  9:13   ` Will Newton
  0 siblings, 1 reply; 7+ messages in thread
From: Bernhard Fischer @ 2006-10-11 16:47 UTC (permalink / raw)
  To: buildroot

On Fri, Oct 06, 2006 at 05:05:49PM +0100, Will Newton wrote:
>Building gettext with the latest buildroot fails. I've attached a
>patch that fixes a couple of issues for me.
>
>1. am_cv_func_working_getline should be defined or the build fails
>with undefined "gnu_getline".
>2. The libintl binary has moved.

Can you please check if gettext-0.15 works better?
Do you use expat?

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

* [Buildroot] gettext fixes
  2006-10-11 16:47 ` Bernhard Fischer
@ 2006-10-12  9:13   ` Will Newton
  2006-10-12 10:15     ` Thomas Lundquist
  0 siblings, 1 reply; 7+ messages in thread
From: Will Newton @ 2006-10-12  9:13 UTC (permalink / raw)
  To: buildroot

On 10/11/06, Bernhard Fischer <rep.nop@aon.at> wrote:
> On Fri, Oct 06, 2006 at 05:05:49PM +0100, Will Newton wrote:
> >Building gettext with the latest buildroot fails. I've attached a
> >patch that fixes a couple of issues for me.
> >
> >1. am_cv_func_working_getline should be defined or the build fails
> >with undefined "gnu_getline".
> >2. The libintl binary has moved.
>
> Can you please check if gettext-0.15 works better?

Yes, it seems to not need the configure tweak.

> Do you use expat?

No, I'm just building libintl so I can build other things that require
it such as glib.

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

* [Buildroot] gettext fixes
  2006-10-12  9:13   ` Will Newton
@ 2006-10-12 10:15     ` Thomas Lundquist
  2006-10-12 10:21       ` Will Newton
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Lundquist @ 2006-10-12 10:15 UTC (permalink / raw)
  To: buildroot

On Thu, Oct 12, 2006 at 10:13:46AM +0100, Will Newton wrote:
> >
> > Can you please check if gettext-0.15 works better?
> 
> Yes, it seems to not need the configure tweak.

I didn't need to hack alot to get it working either.

> No, I'm just building libintl so I can build other things that require
> it such as glib.

I am trying to build glib2.0 and it barfed on missing gettext or gettext
support in the libc but I have enabled it for uClibc in the config. 

isn't it enough? (Using 0.9.28 so it may lack some of the needed
features?)


Thomas.

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

* [Buildroot] gettext fixes
  2006-10-12 10:15     ` Thomas Lundquist
@ 2006-10-12 10:21       ` Will Newton
  2006-10-12 10:56         ` Thomas Lundquist
  0 siblings, 1 reply; 7+ messages in thread
From: Will Newton @ 2006-10-12 10:21 UTC (permalink / raw)
  To: buildroot

On 10/12/06, Thomas Lundquist <lists@zelow.no> wrote:

> > No, I'm just building libintl so I can build other things that require
> > it such as glib.
>
> I am trying to build glib2.0 and it barfed on missing gettext or gettext
> support in the libc but I have enabled it for uClibc in the config.
>
> isn't it enough? (Using 0.9.28 so it may lack some of the needed
> features?)

I'm using a more recent snapshot of uClibc but I think 0.9.28 should
work. I've attached the makefile I'm using for glib. I hope you can
find it useful, it isn't very polished...

You will need to change the values of glib_cv_stack_grows and
glib_cv_uscore for your arch I would imagine.
-------------- next part --------------
#############################################################
#
# libglib2.x
#
#############################################################
LIBGLIB2_VER_MAJOR:=2.12
LIBGLIB2_VER_MINOR:=4
LIBGLIB2_VER:=$(LIBGLIB2_VER_MAJOR).$(LIBGLIB2_VER_MINOR)

LIBGLIB2_SOURCE:=glib-$(LIBGLIB2_VER).tar.bz2
LIBGLIB2_SITE:=ftp://ftp.gtk.org/pub/glib/$(LIBGLIB2_VER_MAJOR)/
LIBGLIB2_CAT:=bzcat
LIBGLIB2_DIR:=$(BUILD_DIR)/glib-$(LIBGLIB2_VER)
LIBGLIB2_BINARY:=libglib-2.0.so


$(DL_DIR)/$(LIBGLIB2_SOURCE):
	 $(WGET) -P $(DL_DIR) $(LIBGLIB2_SITE)/$(LIBGLIB2_SOURCE)

libglib2-source: $(DL_DIR)/$(LIBGLIB2_SOURCE)

$(LIBGLIB2_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB2_SOURCE)
	$(LIBGLIB2_CAT) $(DL_DIR)/$(LIBGLIB2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
	toolchain/patch-kernel.sh $(LIBGLIB2_DIR) package/libglib2/ \*.patch*
	$(CONFIG_UPDATE) $(LIBGLIB2_DIR)
	touch $(LIBGLIB2_DIR)/.unpacked

$(LIBGLIB2_DIR)/.configured: $(LIBGLIB2_DIR)/.unpacked
	(cd $(LIBGLIB2_DIR); rm -rf config.cache; \
		$(TARGET_CONFIGURE_OPTS) \
		LDFLAGS=-L$(STAGING_DIR)/usr/lib \
		./configure \
		glib_cv_stack_grows=yes \
		glib_cv_monotonic_clock=yes \
		glib_cv_uscore=yes \
		ac_cv_func_posix_getpwuid_r=yes \
		--host=$(REAL_GNU_TARGET_NAME) \
		--build=$(GNU_HOST_NAME) \
		--prefix=$(STAGING_DIR) \
		--exec_prefix=$(STAGING_DIR) \
		--libdir=$(STAGING_DIR)/usr/lib \
		--includedir=$(STAGING_DIR)/usr/include \
		--bindir=/usr/bin \
		--sbindir=/usr/sbin \
		--libexecdir=/usr/lib \
		--sysconfdir=/etc \
		--datadir=/usr/share \
		--localstatedir=/var \
		--mandir=/usr/man \
		--infodir=/usr/info \
		$(DISABLE_NLS) \
		--enable-shared \
	);
	touch $(LIBGLIB2_DIR)/.configured

$(LIBGLIB2_DIR)/.libs/$(LIBGLIB2_BINARY): $(LIBGLIB2_DIR)/.configured
	$(MAKE) CC=$(TARGET_CC) -C $(LIBGLIB2_DIR)

$(STAGING_DIR)/lib/$(LIBGLIB2_BINARY): $(LIBGLIB2_DIR)/.libs/$(LIBGLIB2_BINARY)
	$(MAKE) prefix=$(STAGING_DIR) \
	    exec_prefix=$(STAGING_DIR) \
	    bindir=$(STAGING_DIR)/usr/bin \
	    sbindir=$(STAGING_DIR)/usr/sbin \
	    libexecdir=$(STAGING_DIR)/usr/lib \
	    datadir=$(STAGING_DIR)/usr/share \
	    sysconfdir=$(STAGING_DIR)/etc \
	    sharedstatedir=$(STAGING_DIR)/com \
	    localstatedir=$(STAGING_DIR)/var \
	    libdir=$(STAGING_DIR)/usr/lib \
	    includedir=$(STAGING_DIR)/usr/include \
	    infodir=$(STAGING_DIR)/usr/info \
	    mandir=$(STAGING_DIR)/usr/man \
	    -C $(LIBGLIB2_DIR) install;

$(TARGET_DIR)/lib/$(LIBGLIB2_BINARY): $(STAGING_DIR)/lib/$(LIBGLIB2_BINARY)
	cp -a $(STAGING_DIR)/usr/lib/libglib*.so.* $(TARGET_DIR)/usr/lib/
	cp -a $(STAGING_DIR)/usr/lib/libgmodule*.so.* $(TARGET_DIR)/usr/lib/
	cp -a $(STAGING_DIR)/usr/lib/libgobject*.so.* $(TARGET_DIR)/usr/lib/

libglib2: uclibc libintl $(TARGET_DIR)/lib/$(LIBGLIB2_BINARY)

libglib2-clean:
	-rm -f $(TARGET_DIR)/lib/$(LIBGLIB2_BINARY)
	-$(MAKE) -C $(LIBGLIB2_DIR) clean

libglib2-dirclean:
	rm -rf $(LIBGLIB2_DIR)

#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_LIBGLIB2)),y)
TARGETS+=libglib2
endif

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

* [Buildroot] gettext fixes
  2006-10-12 10:21       ` Will Newton
@ 2006-10-12 10:56         ` Thomas Lundquist
  2006-10-12 11:05           ` Will Newton
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Lundquist @ 2006-10-12 10:56 UTC (permalink / raw)
  To: buildroot

On Thu, Oct 12, 2006 at 11:21:57AM +0100, Will Newton wrote:
> 
> I'm using a more recent snapshot of uClibc but I think 0.9.28 should
> work. I've attached the makefile I'm using for glib. I hope you can
> find it useful, it isn't very polished...

darn, this was probably the best timing I've had in ages.
Thanks alot.

But I ended up with:

checking for glib-genmarshal... no
configure: error: Could not find a glib-genmarshal in your PATH
make: *** [/home/thomasez/buildroot/build_arm/glib-2.12.4/.configured]
Error 1

> You will need to change the values of glib_cv_stack_grows and
> glib_cv_uscore for your arch I would imagine.

gotta find out what I have to put there then :=)

(btw, compiling this withough PACKAGE_GETTEXT set now, gettext was huge)


thanks
Thomas.

> #############################################################
> #
> # libglib2.x
> #
> #############################################################
> LIBGLIB2_VER_MAJOR:=2.12
> LIBGLIB2_VER_MINOR:=4
> LIBGLIB2_VER:=$(LIBGLIB2_VER_MAJOR).$(LIBGLIB2_VER_MINOR)
> 
> LIBGLIB2_SOURCE:=glib-$(LIBGLIB2_VER).tar.bz2
> LIBGLIB2_SITE:=ftp://ftp.gtk.org/pub/glib/$(LIBGLIB2_VER_MAJOR)/
> LIBGLIB2_CAT:=bzcat
> LIBGLIB2_DIR:=$(BUILD_DIR)/glib-$(LIBGLIB2_VER)
> LIBGLIB2_BINARY:=libglib-2.0.so
> 
> 
> $(DL_DIR)/$(LIBGLIB2_SOURCE):
> 	 $(WGET) -P $(DL_DIR) $(LIBGLIB2_SITE)/$(LIBGLIB2_SOURCE)
> 
> libglib2-source: $(DL_DIR)/$(LIBGLIB2_SOURCE)
> 
> $(LIBGLIB2_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB2_SOURCE)
> 	$(LIBGLIB2_CAT) $(DL_DIR)/$(LIBGLIB2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
> 	toolchain/patch-kernel.sh $(LIBGLIB2_DIR) package/libglib2/ \*.patch*
> 	$(CONFIG_UPDATE) $(LIBGLIB2_DIR)
> 	touch $(LIBGLIB2_DIR)/.unpacked
> 
> $(LIBGLIB2_DIR)/.configured: $(LIBGLIB2_DIR)/.unpacked
> 	(cd $(LIBGLIB2_DIR); rm -rf config.cache; \
> 		$(TARGET_CONFIGURE_OPTS) \
> 		LDFLAGS=-L$(STAGING_DIR)/usr/lib \
> 		./configure \
> 		glib_cv_stack_grows=yes \
> 		glib_cv_monotonic_clock=yes \
> 		glib_cv_uscore=yes \
> 		ac_cv_func_posix_getpwuid_r=yes \
> 		--host=$(REAL_GNU_TARGET_NAME) \
> 		--build=$(GNU_HOST_NAME) \
> 		--prefix=$(STAGING_DIR) \
> 		--exec_prefix=$(STAGING_DIR) \
> 		--libdir=$(STAGING_DIR)/usr/lib \
> 		--includedir=$(STAGING_DIR)/usr/include \
> 		--bindir=/usr/bin \
> 		--sbindir=/usr/sbin \
> 		--libexecdir=/usr/lib \
> 		--sysconfdir=/etc \
> 		--datadir=/usr/share \
> 		--localstatedir=/var \
> 		--mandir=/usr/man \
> 		--infodir=/usr/info \
> 		$(DISABLE_NLS) \
> 		--enable-shared \
> 	);
> 	touch $(LIBGLIB2_DIR)/.configured
> 
> $(LIBGLIB2_DIR)/.libs/$(LIBGLIB2_BINARY): $(LIBGLIB2_DIR)/.configured
> 	$(MAKE) CC=$(TARGET_CC) -C $(LIBGLIB2_DIR)
> 
> $(STAGING_DIR)/lib/$(LIBGLIB2_BINARY): $(LIBGLIB2_DIR)/.libs/$(LIBGLIB2_BINARY)
> 	$(MAKE) prefix=$(STAGING_DIR) \
> 	    exec_prefix=$(STAGING_DIR) \
> 	    bindir=$(STAGING_DIR)/usr/bin \
> 	    sbindir=$(STAGING_DIR)/usr/sbin \
> 	    libexecdir=$(STAGING_DIR)/usr/lib \
> 	    datadir=$(STAGING_DIR)/usr/share \
> 	    sysconfdir=$(STAGING_DIR)/etc \
> 	    sharedstatedir=$(STAGING_DIR)/com \
> 	    localstatedir=$(STAGING_DIR)/var \
> 	    libdir=$(STAGING_DIR)/usr/lib \
> 	    includedir=$(STAGING_DIR)/usr/include \
> 	    infodir=$(STAGING_DIR)/usr/info \
> 	    mandir=$(STAGING_DIR)/usr/man \
> 	    -C $(LIBGLIB2_DIR) install;
> 
> $(TARGET_DIR)/lib/$(LIBGLIB2_BINARY): $(STAGING_DIR)/lib/$(LIBGLIB2_BINARY)
> 	cp -a $(STAGING_DIR)/usr/lib/libglib*.so.* $(TARGET_DIR)/usr/lib/
> 	cp -a $(STAGING_DIR)/usr/lib/libgmodule*.so.* $(TARGET_DIR)/usr/lib/
> 	cp -a $(STAGING_DIR)/usr/lib/libgobject*.so.* $(TARGET_DIR)/usr/lib/
> 
> libglib2: uclibc libintl $(TARGET_DIR)/lib/$(LIBGLIB2_BINARY)
> 
> libglib2-clean:
> 	-rm -f $(TARGET_DIR)/lib/$(LIBGLIB2_BINARY)
> 	-$(MAKE) -C $(LIBGLIB2_DIR) clean
> 
> libglib2-dirclean:
> 	rm -rf $(LIBGLIB2_DIR)
> 
> #############################################################
> #
> # Toplevel Makefile options
> #
> #############################################################
> ifeq ($(strip $(BR2_PACKAGE_LIBGLIB2)),y)
> TARGETS+=libglib2
> endif

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

* [Buildroot] gettext fixes
  2006-10-12 10:56         ` Thomas Lundquist
@ 2006-10-12 11:05           ` Will Newton
  0 siblings, 0 replies; 7+ messages in thread
From: Will Newton @ 2006-10-12 11:05 UTC (permalink / raw)
  To: buildroot

On 10/12/06, Thomas Lundquist <lists@zelow.no> wrote:

> darn, this was probably the best timing I've had in ages.
> Thanks alot.
>
> But I ended up with:
>
> checking for glib-genmarshal... no
> configure: error: Could not find a glib-genmarshal in your PATH
> make: *** [/home/thomasez/buildroot/build_arm/glib-2.12.4/.configured]
> Error 1

I believe this is because you don't have the glib2.x development files
installed on your build host. My build server has the RPM
glib2-devel-2.4.7-1 installed which provides that.

> > You will need to change the values of glib_cv_stack_grows and
> > glib_cv_uscore for your arch I would imagine.
>
> gotta find out what I have to put there then :=)

glib_cv_uscore=no
glib_cv_stack_grows=no

if you are using ARM Linux (Stack grows down, C symbols have no
leading underscore)

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

end of thread, other threads:[~2006-10-12 11:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06 16:05 [Buildroot] gettext fixes Will Newton
2006-10-11 16:47 ` Bernhard Fischer
2006-10-12  9:13   ` Will Newton
2006-10-12 10:15     ` Thomas Lundquist
2006-10-12 10:21       ` Will Newton
2006-10-12 10:56         ` Thomas Lundquist
2006-10-12 11:05           ` Will Newton

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