This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


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

Re: "Broken" intl/Makefile


Austin Hung <wizard_auz@engineer.com> writes:

> Hi,
> 
> I ran across a problem compiling glibc 2.2.2, specifically in int/Makefile.
> 
> This is the error given:
> 
> 	make[2]: Leaving directory `/usr/local/src/glibc-2.2.2/ctype'
> 	make  -C intl subdir_lib
> 	make[2]: Entering directory `/usr/local/src/glibc-2.2.2/intl'
> 	Makefile:48: *** commands commence before first target.  Stop.
> 	make[2]: Leaving directory `/usr/local/src/glibc-2.2.2/intl'
> 	make[1]: *** [intl/subdir_lib] Error 2
> 	make[1]: Leaving directory `/usr/local/src/glibc-2.2.2'
> 	make: *** [all] Error 2
> 
> 
> The offending lines in the Makefile are:
> 
> 	generated = msgs.h mtrace-tst-gettext tst-gettext.mtrace
> 	generated-dirs := domaindir localedir
> 
> 	include ../Makeconfig
> 
> 	ifneq (no,$(BISON))
> 	plural.c: plural.y
> 		$(BISON) $(BISONFLAGS) $@ $^
> 	endif
> 	ifeq ($(with-cvs),yes)
> *		test ! -d CVS || cvs $(CVSOPTS) commit -m'$(BISON) $(BISONFLAGS) $@ $^' $@
> 	endif
> 	$(objpfx)plural.o: plural.c
> 
> 	include ../Rules
> 
> This line from ../glibc-2.2.2/configure --enable-add-ons --prefix=/usr
> might be relevant:
> 
> 	checking for bison... no
> 
> I am upgrading from libc5 running a Linux kernel 2.4.2. The obvious
> solution, I think, is to move a complete target to just below the "include
> ../Makeconfig" line, but since I don't know the format of Makefiles very
> well, I'm not sure about it. This problem does not exist in glibc 2.1.3.

Try the following patch and tell me if it helps,

Thanks,
Andreas

2001-02-25  Andreas Jaeger  <aj@suse.de>

	* intl/Makefile (plural.c): Reorder rules so that they work if
	BISON doesn't exist.

============================================================
Index: intl/Makefile
--- intl/Makefile	2001/02/05 22:58:59	1.37
+++ intl/Makefile	2001/02/25 11:09:32
@@ -43,9 +43,9 @@
 ifneq (no,$(BISON))
 plural.c: plural.y
 	$(BISON) $(BISONFLAGS) $@ $^
-endif
 ifeq ($(with-cvs),yes)
 	test ! -d CVS || cvs $(CVSOPTS) commit -m'$(BISON) $(BISONFLAGS) $@ $^' $@
+endif
 endif
 $(objpfx)plural.o: plural.c
 


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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