X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type; bh=DH+A/yEt9bkQ4bZZyE8lpxNuemvEwN+p8A6dxlfra4w=; b=BcovMZZ5HPhgSWGihGytLagVQk5os4zwWDqhlJFb1s/zT7O119vlxq93o7KOruRQA0NhPrjdpATgiGHaWkzLS9GHbafQ6OfyVQ7We1I4LjjRwgmrl1tPJDE0vmfsvuyvxcmreIspghRqaEQa6kQuhr8jzf6s/zXVrAc5uK9dWWU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type; b=NHRxVoizdlWncclFgWexj4AUQkQiYb6d8uP7KbIORDpyscSGZGtj0fWghgJSkzuQSZUGYCAez33r/rKxudSGVfvbzqBpu8lXQdD9ziheK2dAIfFyTj2YV9gfNyU41JteJkdwT03Hd9PbC7j4s+8MRx5SATfgDQ6bcIRWlnNuAoQ= Message-ID: <47FB7FDE.4090403@gmail.com> Date: Tue, 08 Apr 2008 17:23:26 +0300 From: "O.Sezer" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060508 Red Hat/1.7.13-0.90.1.legacy X-Accept-Language: tr, en-us, en MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: [PATCH][RE-SEND] build fixes for gcc < 4 Content-Type: multipart/mixed; boundary="------------000402040702010502090908" Reply-To: djgpp-workers AT delorie DOT com This is a multi-part message in MIME format. --------------000402040702010502090908 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Is it possible that this patch would go in, please? It is rather annonying that the compilation fails everytime I try without fixing it.. -------------------- With gcc versions < 4.0 build of djgpp library from the CVS fails with the following errors (tried with gcc-3.3.6 and gcc-3.4.6). The attached patch fixes them. /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-gcc -pipe ... -c init1.S cc1: -I- specified twice make[1]: *** [init1.o] Error 1 The first hunk of the patch fixes it. /usr/local/cross-djgpp/bin/i586-pc-msdosdjgpp-gcc -pipe -MD -O2 \ -mcpu=i586 -march=i386 -Wall -Wbad-function-cast -Wcast-qual -Werror \ -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wshadow \ -Wstrict-prototypes -Wwrite-strings -Wundef -Wcast-align \ -Wsign-compare -nostdinc -I. -I- -I. -I- -isystem ../../../include \ -DGAS_MAJOR=2 -DGAS_MINOR=15 -DGAS_MINORMINOR=0 -c mcount.c \ cc1: -I- specified twice make[3]: *** [mcount.o] Error 1 The second hunk of the patch fixes it. Regards, Ozkan Sezer --------------000402040702010502090908 Content-Type: text/plain; name="djcvs-build_fixes.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="djcvs-build_fixes.diff" diff -urNp djgpp/src/makefile.cfg.orig djgpp/src/makefile.cfg --- djgpp/src/makefile.cfg.orig 2007-12-13 04:03:11.000000000 +0200 +++ djgpp/src/makefile.cfg 2008-03-26 19:48:28.000000000 +0200 @@ -50,7 +50,7 @@ gcc-l.opt: makefile.cfg @./misc.exe echo - "-march=i386" >>gcc-l.opt @./misc.exe echo - "-Wall" >>gcc-l.opt @./misc.exe echo - "-nostdinc" >>gcc-l.opt - @./misc.exe echo - "$(IQUOTE)" >>gcc.opt + @./misc.exe echo - "$(IQUOTE)" >>gcc-l.opt gpp.opt: gcc.opt sed -f gpp.sed $< > $@ diff -urNp djgpp/src/makefile.inc.orig djgpp/src/makefile.inc --- djgpp/src/makefile.inc.orig 2007-12-12 04:03:17.000000000 +0200 +++ djgpp/src/makefile.inc 2008-03-26 19:48:28.000000000 +0200 @@ -76,8 +76,8 @@ endif # in a profiling version of libc (the profiling support code calling # profiling support code). # -XNOPGGCC = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed $(TOP)/../gcc.opt) -I. -I- -isystem $(TOP)/../../include $(CFLAGS) -XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed $(TOP)/../gpp.opt) -I. -I- -isystem $(TOP)/../../include $(CFLAGS) +XNOPGGCC = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed $(TOP)/../gcc.opt) -isystem $(TOP)/../../include $(CFLAGS) +XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed $(TOP)/../gpp.opt) -isystem $(TOP)/../../include $(CFLAGS) MISC = $(TOP)/../misc.exe --------------000402040702010502090908--