error with m4 in chapter 6

bruce at bruce at
Sun Nov 2 15:52:43 PST 2003

"Gerard Beekmans" <gerard at> wrote in message
news:1067816163.364.86.camel at
> On Sun, 2003-11-02 at 16:32, bruce at wrote:
> > is there a way for me to statically install strace and run it during the
> > make command (if that sounds stupid excuse me i am still new)
> You shouldn't have to compile strace statically. But if you want,
> compile it like "make LDFLAGS=-static" and it'll be linked statically.
> But I don't think strace will be of any help in this particular case.
> What might be more helpful is run the gcc command that fails and add
> --verbose to the command line. GCC will give you more info where it is
> looking for header files and such which might give you a clue.
> -- 
> Gerard Beekmans
> // Linux Consultant --- OSDN / DevChannel
> // If Linux doesn't have the solution, you have the wrong problem

ok gcc diddnt recognize verbose nor did i seem to find one so i tried with
the v option. 1 thing i did notice was the command it used i copied and
would not run from  m4-1.4 i had to go to m4-1.4/src to run it. follows are
the results teh only diffrence in the command here and the original command
it used was I added the -v switch

root:/sources/m4-1.4/src# gcc -v -c -DHAVE_CONFIG_H -I.. -I. -I./../lib
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with:
../gcc-3.3.1/configure --prefix=/usr --enable-shared --enable-threads=posix 
--enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Thread model: posix
gcc version 3.3.1

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/cc1 -quiet -v -I.. -I. -I./../lib -
stackovf.c -quiet -dumpbase stackovf.c -auxbase stackovf -version -o
 GNU C version 3.3.1 (i686-pc-linux-gnu)
         compiled by GNU C version 3.3.1.
	 GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64415
	 ignoring nonexistent directory "/usr/i686-pc-linux-gnu/include"
	 #include "..." search starts here:
	 #include <...> search starts here:
	       End of search list.
	       In file included from stackovf.c:79:
	       m4.h:24:21: config.h: No such file or directory
	       stackovf.c: In function `setup_stackovf_trap':
	       stackovf.c:349: error: `Error' undeclared (first use in this
	       stackovf.c:349: error: (Each undeclared identifier is reported only
	       stackovf.c:349: error: for each function it appears in.)
	       stackovf.c:349: error: `Do' undeclared (first use in this function)
	       stackovf.c:349: error: parse error before "not"

More information about the lfs-support mailing list