This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Host tools configuration


On Sun, 2003-08-17 at 13:42, Bart Veer wrote:
> >>>>> "Gary" == Gary Thomas <gary@mlbassoc.com> writes:
> 
>     Gary> Bart,
>     Gary> I'm having trouble building the ConfigTool. I'm using a
>     Gary> Debian development system (don't ask!) and building of
>     Gary> ecosconfig fails because -ldl isn't being included in the
>     Gary> link. I think this is because your scripts expect
>     Gary> ${TCL_LIB_SPEC} to include everything to link a TCL program,
>     Gary> but I think you need to add ${TCL_LIBS} to it.
> 
> Which particular version of Debian are you using? One of my machines
> runs Debian 3.0, which shipped with Tcl 8.3.3, and I have not had any
> problems rebuilding ecosconfig. 
> 
>     Gary> What I want to (at least try) is this:
>     Gary> gthomas@artemis:/work/tools/BUILD/ecos$ diff -u acsupport/acinclude.m4{~,}
>     Gary> --- acsupport/acinclude.m4~     Wed Feb 12 13:31:52 2003
>     Gary> +++ acsupport/acinclude.m4      Fri Aug 15 08:02:15 2003
>     Gary> @@ -543,7 +543,7 @@
>     Gary>             if test -z "${TCL_LIB_SPEC}" ; then
>     Gary>                 AC_MSG_ERROR(${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC, and unable to find libtcl.a)
>     Gary>             fi
>     Gary> -           ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
>     Gary> +           ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC} ${TCL_LIBS}"
>  
>     Gary>             dnl Next, look for tkConfig.sh
>     Gary>             possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'`
> 
> Unfortunately every time these libraries change it seems to break on
> one platform or another. The current set of libraries seems to have
> worked for everybody since December, so I am reluctant to make
> changes unless absolutely necessary.
> 
>     Gary> My problem is though - what's the magic to regenerate all of
>     Gary> the 'configure' files once this has changed?
> 
> I use the following shell script:
> ----------------------------------------------------------------------------
> #! /bin/sh
>  
> # This script updates all configure etc. scripts in a directory tree.
> # If invoked with no arguments it uses "find" to locate configure.in
> # scripts and recursively invokes acall on them. If invoked with
> # a single argument then that identifies a configure.in script,
> # i.e. a recursive invocation, and the hard work is done.
>  
> if test "$#" = 0 ; then
>     find . -name configure.in -exec acall {} \;
> else
>     cd `dirname ${1}`
>     echo Updating `pwd`
>     aclocal
>     autoconf
>     automake
> fi
> ----------------------------------------------------------------------------
> 
> On an RH9 system, to avoid spurious diffs those should probably read
> aclocal-1.4, autoconf-2.13 and automake-1.4. If you start using more
> recent versions then there may be nasty side effects, and it would be
> necessary to retest on various different platforms.

Do you have a system with this configuration?  Is it from a standard
(hopefully Red Hat) release?  The tools on the Debian system I have
match this pretty closely, but there were still many differences not
attributable to my changes.

When I tried to run these scripts on Red Hat 9, I got nothing but
grief - see attached log file.

BTW - the change I proposed worked fine on Debian and RH 9.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
*** On Debian
gthomas@artemis:/work/tools/BUILD/ecos$ auto_config_all 
Updating /work/tools/BUILD/ecos/host/infra
configure.in:75: warning: AC_TRY_RUN called without default to allow cross compiling
configure.in:82: warning: AC_TRY_RUN called without default to allow cross compiling
configure.in:83: warning: AC_TRY_RUN called without default to allow cross compiling
Updating /work/tools/BUILD/ecos/host/libcdl
Updating /work/tools/BUILD/ecos/host/tools/Utils/common
Updating /work/tools/BUILD/ecos/host/tools/configtool/standalone/common
Updating /work/tools/BUILD/ecos/host
Updating /work/tools/BUILD/ecos
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0
autoconf: Undefined macros:
configure.in:1487:AC_SYS_LARGEFILE
configure.in: 1337: automake requires `AM_PROG_LEX', not `AC_PROG_LEX'
configure.in: 5398: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
automake: configure.in: `PACKAGE' not defined in `configure.in'
automake: configure.in: required file `./missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/contrib
automake: configure.in: `PACKAGE' not defined in `configure.in'
automake: configure.in: `VERSION' not defined in `configure.in'
automake: configure.in: required file `./missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/samples
automake: configure.in: `PACKAGE' not defined in `configure.in'
automake: configure.in: `VERSION' not defined in `configure.in'
automake: configure.in: required file `./missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/demos
automake: configure.in: `PACKAGE' not defined in `configure.in'
automake: configure.in: `VERSION' not defined in `configure.in'
automake: configure.in: required file `./missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/utils
automake: configure.in: `PACKAGE' not defined in `configure.in'
automake: configure.in: `VERSION' not defined in `configure.in'
automake: configure.in: required file `./missing' not found
automake: no `Makefile.am' found or specified

*** On RH9
[gthomas@hermes ecos]$ auto_config_all 
Updating /work/tools/BUILD/ecos/host/infra
configure.in:70: error: AC_REQUIRE: circular dependency of ECOS_PROG_MSVC
configure.in:70: ECOS_PROG_MSVC is required by...
../../acsupport/acinclude.m4:89: ECOS_MSVC_PATH is expanded from...
../../acsupport/acinclude.m4:142: ECOS_PROG_MSVC is expanded from...
configure.in:70: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
Makefile.am: required file `../../acsupport/depcomp' not found
Updating /work/tools/BUILD/ecos/host/libcdl
configure.in:63: error: AC_REQUIRE: circular dependency of ECOS_PROG_MSVC
configure.in:63: ECOS_PROG_MSVC is required by...
../../acsupport/acinclude.m4:89: ECOS_MSVC_PATH is expanded from...
../../acsupport/acinclude.m4:142: ECOS_PROG_MSVC is expanded from...
configure.in:63: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
Makefile.am: required file `../../acsupport/depcomp' not found
Updating /work/tools/BUILD/ecos/host/tools/Utils/common
configure.in:60: error: AC_REQUIRE: circular dependency of ECOS_PROG_MSVC
configure.in:60: ECOS_PROG_MSVC is required by...
../../../../acsupport/acinclude.m4:89: ECOS_MSVC_PATH is expanded from...
../../../../acsupport/acinclude.m4:142: ECOS_PROG_MSVC is expanded from...
configure.in:60: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
Updating /work/tools/BUILD/ecos/host/tools/configtool/standalone/common
configure.in:57: error: AC_REQUIRE: circular dependency of ECOS_PROG_MSVC
configure.in:57: ECOS_PROG_MSVC is required by...
../../../../../acsupport/acinclude.m4:89: ECOS_MSVC_PATH is expanded from...
../../../../../acsupport/acinclude.m4:142: ECOS_PROG_MSVC is expanded from...
configure.in:57: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
Updating /work/tools/BUILD/ecos/host
configure.in:67: warning: AC_CONFIG_SUBDIRS: you should use literals
Updating /work/tools/BUILD/ecos
configure.in:194: warning: AC_CONFIG_SUBDIRS: you should use literals
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0
configure.in:1337: automake requires `AM_PROG_LEX', not `AC_PROG_LEX'
configure.in:5398: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
automake: configure.in: `AM_INIT_AUTOMAKE' must be used
automake: your implementation of AM_INIT_AUTOMAKE comes from an
automake: old Automake version.  You should recreate aclocal.m4
automake: with aclocal and run automake again.
configure.in: required file `./missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/contrib
automake: configure.in: `AM_INIT_AUTOMAKE' must be used
automake: no proper implementation of AM_INIT_AUTOMAKE was found,
automake: probably because aclocal.m4 is missing...
automake: You should run aclocal to create this file, then
automake: run automake again.
configure.in: required file `../missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/samples
automake: configure.in: `AM_INIT_AUTOMAKE' must be used
automake: no proper implementation of AM_INIT_AUTOMAKE was found,
automake: probably because aclocal.m4 is missing...
automake: You should run aclocal to create this file, then
automake: run automake again.
configure.in: required file `../missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/demos
automake: configure.in: `AM_INIT_AUTOMAKE' must be used
automake: no proper implementation of AM_INIT_AUTOMAKE was found,
automake: probably because aclocal.m4 is missing...
automake: You should run aclocal to create this file, then
automake: run automake again.
configure.in: required file `../missing' not found
automake: no `Makefile.am' found or specified
Updating /work/tools/BUILD/ecos/wxGTK-2.4.0/utils
automake: configure.in: `AM_INIT_AUTOMAKE' must be used
automake: no proper implementation of AM_INIT_AUTOMAKE was found,
automake: probably because aclocal.m4 is missing...
automake: You should run aclocal to create this file, then
automake: run automake again.
configure.in: required file `../missing' not found
automake: no `Makefile.am' found or specified

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