The first set of patches between >>> and
<<<
are patches to get the configtool building under Ubuntu Hardy Heron, tcl-8.4,

The second set are to get it linking for a sparc / leon using gcc-4.2.3 and 
binutils 2.18




Index: host/tools/Utils/common/Subprocess.cpp
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/Utils/common/Subprocess.cpp,v
retrieving revision 1.4
diff -u -r1.4 Subprocess.cpp
--- host/tools/Utils/common/Subprocess.cpp      2 Nov 2005 08:39:19 -0000       
1.4
+++ host/tools/Utils/common/Subprocess.cpp      26 Jun 2008 21:40:53 -0000
@@ -45,6 +45,7 @@
 //===========================================================================

 // define _GNU_SOURCE to ensure that stdlib.h provides Unix98 PTY declarations
+#undef _GNU_SOURCE
 #define _GNU_SOURCE

 #include "eCosTrace.h"
Index: host/tools/configtool/standalone/wxwin/makefile.gnu
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/makefile.gnu,v
retrieving revision 1.12
diff -u -r1.12 makefile.gnu
--- host/tools/configtool/standalone/wxwin/makefile.gnu 26 Mar 2008 13:15:44 
-0000      1.12
+++ host/tools/configtool/standalone/wxwin/makefile.gnu 26 Jun 2008 21:40:53 
-0000
@@ -6,23 +6,22 @@
 #   cd emptydir
 #   make -f /path/to/this/makefile WXDIR=/path/to/wx/installation 
INSTALLDIR=/path/to/ecos/tools [ ECOSSRCDIR=/path/to/ecos/tools/src ] [ 
TCLDIR=/path/to/tcl/installation ] [ DEBUG=1 ]

-INSTALLDIR=INSTALLDIR_not_defined
-WXDIR=WXDIR_not_defined

 CTBUILDDIR=$(shell pwd)
 ECOSSRCDIR=$(INSTALLDIR)/src
 CTDIR=$(ECOSSRCDIR)/tools/configtool/standalone/wxwin
-TCLDIR=TCLDIR_use_system
+TCLDIR=/usr
 USEEXPERIMENTALCODE=1
+DEBUG=1

 EXTRACPPFLAGS=\
-  -I$(TCLDIR)/include \
+  -I$(TCLDIR)/include/tcl8.4 \
   -I$(INSTALLDIR)/include \
   -I$(ECOSSRCDIR)/tools/configtool/common/common \
   -I$(ECOSSRCDIR)/tools/Utils/common \
   -I$(ECOSSRCDIR)/tools/ecostest/common \
   -DecUSE_EXPERIMENTAL_CODE=$(USEEXPERIMENTALCODE)
-EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl
+EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl8.4 -g3 
--ggdb3

 ifneq (,$(findstring CYGWIN, $(shell uname)))
   PROGRAM=configtool.exe
@@ -41,7 +40,7 @@
 ifeq "$(DEBUG)" ""
   CPPDEBUGOPTIONS=-O2
 else
-  CPPDEBUGOPTIONS=-ggdb
+  CPPDEBUGOPTIONS=-ggdb3 -g3 -O0 -Wall -W
 endif

 OBJECTS = \

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

The first change is due to gcc have additional anmed .bss sections now.

The second change is due to this fault...Spurious "section xxx overlaps section 
yyy"
http://www.mail-archive.com/[EMAIL PROTECTED]/msg04512.html


Index: packages/hal/sparc/arch/current/src/sparc.ld
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/sparc/arch/current/src/sparc.ld,v
retrieving revision 1.3
diff -u -r1.3 sparc.ld
--- packages/hal/sparc/arch/current/src/sparc.ld        10 Apr 2003 18:07:58 
-0000      1.3
+++ packages/hal/sparc/arch/current/src/sparc.ld        26 Jun 2008 21:41:03 
-0000
@@ -125,9 +125,9 @@
 #define SECTION_bss(_region_, _vma_, _lma_) \
     .bss _vma_ : _lma_ \
     { __bss_start = ABSOLUTE (.); \
-    *(.scommon) *(.dynbss) *(.bss) *(COMMON) \
+    *(.scommon) *(.dynbss) *(.bss*) *(COMMON) \
     __bss_end = ABSOLUTE (.); } \
-    > _region_
+    AT> _region_

 #define SECTIONS_END . = ALIGN(8); _end = .; PROVIDE (end = .); \
     .debug          0 : { *(.debug) } \
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<




John Carter                             Phone : (64)(3) 358 6639
Tait Electronics                        Fax   : (64)(3) 359 4632
PO Box 1645 Christchurch                Email : [EMAIL PROTECTED]
New Zealand


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to