Re: help, automake generated a buggy Makefile?
On 10/16/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > Hello Steven, > > * Steven Woody wrote on Mon, Oct 15, 2007 at 05:45:57PM CEST: > > On 10/15/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > > > > > > This looks like this file has been generated with Automake 1.9 rather > > > than 1.10. Please check the comment at the top of the file, and if > > > that's the case, please run > > > aclocal-1.10 && automake-1.10 && autoconf > > > > after removed extra spaces in configure.ac and re-executed automake > > 1.10 in an explicitly way as you mentioned above, every thing run > > well and the gcc error have disapeared! thanks for you help! > > Good. > > > but i still dont understand, why when i typed `automake', it actually > > run 1.9.6 rather than the most recent version of 1.10. should i > > delete all old version of autoexec/aclocal in my system? > > Well, each Automake version installs the program under both names > `automake' and `automake-MAJOR.MINOR'. If you have installed 1.9.x > after you installed 1.10, or if you have installed them in different > prefixes, and the 1.9.x one happens to be found earlier in $PATH, then > that one will be used when you type `automake'. Similar for aclocal. > > That said, you need not delete old Automake installations. Rather, > either adjust $PATH, or reinstall 1.10. > > Cheers, > Ralf > thanks a lot! -- woody then sun rose thinly from the sea and the old man could see the other boats, low on the water and well in toward the shore, spread out across the current.
Re: help, automake generated a buggy Makefile?
Hello Steven, * Steven Woody wrote on Mon, Oct 15, 2007 at 05:45:57PM CEST: > On 10/15/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > > > > This looks like this file has been generated with Automake 1.9 rather > > than 1.10. Please check the comment at the top of the file, and if > > that's the case, please run > > aclocal-1.10 && automake-1.10 && autoconf > > after removed extra spaces in configure.ac and re-executed automake > 1.10 in an explicitly way as you mentioned above, every thing run > well and the gcc error have disapeared! thanks for you help! Good. > but i still dont understand, why when i typed `automake', it actually > run 1.9.6 rather than the most recent version of 1.10. should i > delete all old version of autoexec/aclocal in my system? Well, each Automake version installs the program under both names `automake' and `automake-MAJOR.MINOR'. If you have installed 1.9.x after you installed 1.10, or if you have installed them in different prefixes, and the 1.9.x one happens to be found earlier in $PATH, then that one will be used when you type `automake'. Similar for aclocal. That said, you need not delete old Automake installations. Rather, either adjust $PATH, or reinstall 1.10. Cheers, Ralf
Re: help, automake generated a buggy Makefile?
On 10/15/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > * Steven Woody wrote on Mon, Oct 15, 2007 at 10:16:20AM CEST: > > > > ~/motconv/trunk/test$ grep -C2 TESTS Makefile.in > > sysconfdir = @sysconfdir@ > > target_alias = @target_alias@ > > TESTS = AllTests > > This looks like this file has been generated with Automake 1.9 rather > than 1.10. Please check the comment at the top of the file, and if > that's the case, please run > aclocal-1.10 && automake-1.10 && autoconf > > and retest. > > Thanks, > Ralf > Dear Ralf, after removed extra spaces in configure.ac and re-executed automake 1.10 in an explicitly way as you mentioned above, every thing run well and the gcc error have disapeared! thanks for you help! but i still dont understand, why when i typed `automake', it actually run 1.9.6 rather than the most recent version of 1.10. should i delete all old version of autoexec/aclocal in my system? - woody -- woody then sun rose thinly from the sea and the old man could see the other boats, low on the water and well in toward the shore, spread out across the current.
Re: help, automake generated a buggy Makefile?
On 10/15/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > * Steven Woody wrote on Mon, Oct 15, 2007 at 10:16:20AM CEST: > > > > ~/motconv/trunk/test$ grep -C2 TESTS Makefile.in > > sysconfdir = @sysconfdir@ > > target_alias = @target_alias@ > > TESTS = AllTests > > This looks like this file has been generated with Automake 1.9 rather > than 1.10. Please check the comment at the top of the file, and if > that's the case, please run > aclocal-1.10 && automake-1.10 && autoconf > > and retest. > > Thanks, > Ralf > because this is my office computer, not the home computer for which i have upgraded to 1.10. i will redo the procedure server hours later when go back home and repost here. thank you very much.
Re: help, automake generated a buggy Makefile?
* Steven Woody wrote on Mon, Oct 15, 2007 at 10:16:20AM CEST: > > ~/motconv/trunk/test$ grep -C2 TESTS Makefile.in > sysconfdir = @sysconfdir@ > target_alias = @target_alias@ > TESTS = AllTests This looks like this file has been generated with Automake 1.9 rather than 1.10. Please check the comment at the top of the file, and if that's the case, please run aclocal-1.10 && automake-1.10 && autoconf and retest. Thanks, Ralf
Re: help, automake generated a buggy Makefile?
On 10/15/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > Hello Steven, > > * Steven Woody wrote on Sun, Oct 14, 2007 at 05:51:45AM CEST: > > > > AC_INIT( [ motconv ], [ 0.1 ], [ [EMAIL PROTECTED] ] ) > > AM_INIT_AUTOMAKE( [ -Wall -Werror foreign ] ) > > AC_PROG_RANLIB > > AC_PROG_CXX > > AC_PROG_INSTALL > > AC_LANG_PUSH([C++]) > > AC_CHECK_HEADERS([limits]) > > AC_LANG_POP > > AC_CONFIG_HEADER( configure.h ) > > AC_CONFIG_FILES( [ Makefile test/Makefile ]) > > AC_OUTPUT > > Please drop all the trailing white space, it makes a difference. That > is, you should write at most > AC_INIT([motconv], [0.1], [EMAIL PROTECTED]) > > because right now, the name of your package is " motconv " with version > " 0.1 ", and so on, and that will lead to subtle issues later. They > don't have to do with the issue you reported, though. > > For that, I can only test it myself later. For now, please post the > output of "grep -C2 TESTS Makefile.in" of the Makefile.in from which > AllTests.exe is built, thanks. > > Cheers, > Ralf > thanks. below are output of grep -C2 TESTS on Makefile.in, ~/motconv/trunk/test$ grep -C2 TESTS Makefile.in sysconfdir = @sysconfdir@ target_alias = @target_alias@ TESTS = AllTests AllTests_SOURCES = \ AllTests.cpp -- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list='$(TESTS)'; \ if test -n "$$list"; then \ for tst in $$list; do \ -- elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *" $$tst "*) \ xpass=`expr $$xpass + 1`; \ -- elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *" $$tst "*) \ xfail=`expr $$xfail + 1`; \ -- check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile -- uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic ctags distclean \ distclean-compile distclean-generic distclean-local \
Re: help, automake generated a buggy Makefile?
Hello Steven, * Steven Woody wrote on Sun, Oct 14, 2007 at 05:51:45AM CEST: > > AC_INIT( [ motconv ], [ 0.1 ], [ [EMAIL PROTECTED] ] ) > AM_INIT_AUTOMAKE( [ -Wall -Werror foreign ] ) > AC_PROG_RANLIB > AC_PROG_CXX > AC_PROG_INSTALL > AC_LANG_PUSH([C++]) > AC_CHECK_HEADERS([limits]) > AC_LANG_POP > AC_CONFIG_HEADER( configure.h ) > AC_CONFIG_FILES( [ Makefile test/Makefile ]) > AC_OUTPUT Please drop all the trailing white space, it makes a difference. That is, you should write at most AC_INIT([motconv], [0.1], [EMAIL PROTECTED]) because right now, the name of your package is " motconv " with version " 0.1 ", and so on, and that will lead to subtle issues later. They don't have to do with the issue you reported, though. For that, I can only test it myself later. For now, please post the output of "grep -C2 TESTS Makefile.in" of the Makefile.in from which AllTests.exe is built, thanks. Cheers, Ralf