#1 Awk error during Make

closed
nobody
None
5
2005-07-12
2005-07-11
Stephen Lawrence
No

Centos Linux 4.0:

...
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I../include -Wall -g -g -O2 -MT commandwhile.lo -MD
-MP -MF .deps/commandwhile.Tpo -c commandwhile.cc -o
commandwhile.o >/dev/null 2>&1
/bin/sh ./language.h.sh awk
awk: language.h.awk:2: warning: escape sequence `\}'
treated as plain `}'
awk: language.h.awk:3: warning: escape sequence `\;'
treated as plain `;'
awk: language.h.awk:3: warning: escape sequence `\ '
treated as plain ` '
awk: language.h.awk:7: warning: escape sequence `\*'
treated as plain `*'
awk: language.h.awk:9: func=$(i+1)
awk: language.h.awk:9: ^ syntax error
awk: language.h.awk:10: warning: escape sequence `\('
treated as plain `('
awk: language.h.awk:10: warning: escape sequence `\)'
treated as plain `)'
awk: language.h.awk:10: gsub ("[\(\)\*]", "", func)
awk: language.h.awk:10: ^
syntax error
...
...
awk: language.h.awk:10: fatal: 0 is invalid as number
of arguments for gsub
make[2]: *** [language.h] Error 2
make[2]: Leaving directory
`/home/user/downloads/littlewizard-1.0.0rc1/liblanguage'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/user/downloads/littlewizard-1.0.0rc1'
make: *** [all] Error 2

Discussion

    • status: open --> closed