This is the mail archive of the gdb-testers@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: gdb-4.16.85: Corrupt GDB built with native make on Solaris and Digital Unix


Thanks a lot for the patch, that fixes it on both systems.
Any chance that it makes it into the 4.17 release ?

I prefer your version to xargs, as xargs might not be available on older
systems.

>    From: "Peter.Schauer" <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
>    Date: Mon, 9 Feb 98 21:11:06 MET
> 
>    This change:
> 
>    Fri Aug 15 20:53:13 1997  Ian Lance Taylor  <ian@cygnus.com>
> 
> 	   * Makefile.in (init.c): Don't use xargs.
> 
>    causes a corrupt GDB to be built when using native make under Solaris
>    or Digital Unix.
>    The generated init.c is missing many initialization functions, only the first
>    two are there.
> 
>    Sorry, I had no time to investigate the cause of the failure, but reverting
>    the change above gets rid of the problem.
> 
>    If we can't get it fixed for gdb-4.17, we should add a note in gdb/README
>    that GNU make has to be used on these systems.
> 
> The appended patch appears to fix the problem.  This looks like a bug
> in the native make programs on those systems.  I admit I don't know
> why two different make programs would have the same bug.
> 
> I would not mind if this change were simply reverted.  I never meant
> for that patch to be checked in to the main sources.  I checked it in
> on a branch, and when somebody else merged the branch on to the trunk,
> they merged that patch in as well.
> 
> Ian
> 
> Index: Makefile.in
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gdb/Makefile.in,v
> retrieving revision 1.605
> diff -u -r1.605 Makefile.in
> --- Makefile.in	1998/02/05 01:47:26	1.605
> +++ Makefile.in	1998/02/09 20:36:06
> @@ -629,7 +629,7 @@
>  	@echo '#include "ansidecl.h"' >>init.c-tmp
>  	@echo 'extern void initialize_all_files PARAMS ((void));' >>init.c-tmp
>  	@echo 'void initialize_all_files PARAMS ((void)) {' >>init.c-tmp
> -	@echo $(OBS) $(TSOBS) | \
> +	@-echo $(OBS) $(TSOBS) | \
>  	tr ' ' '\012' | \
>  	sed -e '/^Onindy.o/d' \
>  	    -e '/^nindy.o/d' \
> 
> 


-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de