HI All: I found the bug! I had to say sorry to m4 member, it isn't their bug, this bug is in automake-1.10.
bug description: if you compile path is too long, it will cut some words at the end. for example: g++ -I/opt/ace/include -I/opt/cppunit/include -I../../../hbstock/include -O2 -o .libs/unitTest.exe unitTest.o configTest.o da taTest.o technic_test.o DllObjectMangerTest.o -L/opt/ace/lib -L/opt/cppunit/lib /opt/cppunit/lib/libcppunit.a -L/e/zhb_svn/m ingw/build/hbstock_build/src /e/zhb_svn/mingw/build/hbstock_build/src/.libs/libhbstock2.dll.a -lintl -lACE -lws2_32 -lmswsock -lwsock32 -lnetapi32 -L/home/hbzhang/hbstock/lib it will cut some words at the end, so that I can't compile my project. I have test it successful using autoconf-2.61,automake-1.9.6 and m4-1.4.7, if I replace automake-1.9.6 with automake-1.10, it will occur error. but m4-1.4.8 is only can compiled in gcc-2.95.3 and have some warning (m4-1.4.7 is no warning): DEPDIR=.deps depmode=gcc /bin/sh ../../../m4-1.4.8/depcomp \ /usr/bin/gcc -I../../../m4-1.4.8/lib -I../lib -O2 -c ../../../m4-1.4.8/src/path.c In file included from ../../../m4-1.4.8/src/path.c:25: ../../../m4-1.4.8/src/m4.h:337: warning: `traced' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:338: warning: `shadowed' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:339: warning: `macro_args' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:340: warning: `blind_no_args' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:341: warning: `deleted' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:383: warning: `gnu_extension' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:384: warning: `groks_macro_args' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:385: warning: `blind_if_no_args' is narrower than values of its type source='../../../m4-1.4.8/src/symtab.c' object='symtab.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../../../m4-1.4.8/depcomp \ /usr/bin/gcc -I../../../m4-1.4.8/lib -I../lib -O2 -c ../../../m4-1.4.8/src/symtab.c In file included from ../../../m4-1.4.8/src/symtab.c:34: ../../../m4-1.4.8/src/m4.h:337: warning: `traced' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:338: warning: `shadowed' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:339: warning: `macro_args' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:340: warning: `blind_no_args' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:341: warning: `deleted' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:383: warning: `gnu_extension' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:384: warning: `groks_macro_args' is narrower than values of its type ../../../m4-1.4.8/src/m4.h:385: warning: `blind_if_no_args' is narrower than values of its type /usr/bin/gcc -O2 -o m4.exe m4.o builtin.o debug.o eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o ../li b/libm4.a if you have no autotool envirnoment to test it in mingw, you can download it from : http://sourceforge.net/projects/mingw-install Regards Zhang HaiBin Eric Blake <[EMAIL PROTECTED]> 写道: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [You can probably drop bug-autoconf and bug-automake from your replies] According to haibin zhang on 11/22/2006 4:36 AM: > HI All: > Just now I can't use m4-1.4.8 in Mingw in Windows XP( I can compile > it,but can't be used) It worked fine for me to cross-compile on cygwin targetting mingw; in fact, that was one of my criteria for a successful release. I haven't changed any line-ending behavior in the 1.4.x series, so 1.4.8 should behave similarly to prior versions of m4 compiled for mingw. > Does anybody test it in Mingw ? Yes. Also, my understanding is that Charles Wilson recently ported 1.4.7 to mingw; he will probably port 1.4.8 soon. > > ./bootstrap.sh Why are you running ./bootstrap.sh? For that matter, what is contained in bootstrap.sh (since m4 only ships with a bootstrap script, not bootstrap.sh). What is wrong with the m4 tarball as is? bootstrap is ONLY intended to be run if you are compiling from CVS, not from a release tarball. And if you don't have an up-to-date CVS checkout of gnulib handy, bootstrap.sh will fail. Or am I misunderstanding you, and you are trying to demonstrate bootstrapping some other project, where you installed version of m4 1.4.8 is not acting the way you suspected? > configure.ac:32: warning: AM_PROG_MKDIR_P is m4_require'd but not m4_defun'd > m4/po.m4:207: AM_PO_SUBDIRS is expanded from... > m4/gettext.m4:347: AM_GNU_GETTEXT is expanded from... > configure.ac:32: the top level M4 1.4.8 does not use gettext. How are you picking up an instance of m4/gettext.m4? That should not be happening. > src/Makefile.am:14: Libtool library used but `LIBTOOL' is undefined Likewise - m4 1.4.8 does not use libtool. - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFZFfI84KuGfSFAYARAokKAKDDBaNiUic75SPxcTmTx6TxWnLUoACgwJbr pnYnraCWFDdytzCaZz7heTg= =aB1C -----END PGP SIGNATURE----- --------------------------------- Mp3疯狂搜-新歌热歌高速下 --------------------------------- 抢注雅虎免费邮箱-3.5G容量,20M附件!
_______________________________________________ Bug-m4 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-m4
