I've just run into a problem. I am unable to configure 7.6 and 7.7. Configure fails a check or two after displaying the compiler summary. It checks the base directory, updates config.cache and then fails to create ./config.status.
This is the error I get:
configure: creating ./config.status ./config.status: line 197: syntax error near unexpected token `"' ./config.status: line 197: ` "" ) CONFIG_FILES="$CONFIG_FILES " ;;' make: *** [configure] Error 1
Looking at the config.status, row 197, it seems like there are a few bogus lines in there. I'm a bit clueless to how to debug this and I'm desperate for some help...
Which version of autoconf? What do lines 195 - 200 of config.status contain?
/ Henrik Grubbström (Lysator)
Previous text:
2004-05-08 19:52: Subject: Configure breaks under mingw32
I've just run into a problem. I am unable to configure 7.6 and 7.7. Configure fails a check or two after displaying the compiler summary. It checks the base directory, updates config.cache and then fails to create ./config.status.
This is the error I get:
configure: creating ./config.status ./config.status: line 197: syntax error near unexpected token `"' ./config.status: line 197: ` "" ) CONFIG_FILES="$CONFIG_FILES " ;;' make: *** [configure] Error 1
Looking at the config.status, row 197, it seems like there are a few bogus lines in there. I'm a bit clueless to how to debug this and I'm desperate for some help...
/ Marcus Agehall (Scanian)
$ autoconf --version autoconf (GNU Autoconf) 2.52 Written by David J. MacKenzie.
Line 191-216: for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "make_variables" ) CONFIG_FILES="$CONFIG_FILES make_variables:$make_variables_in" ;; "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/common_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/common_module_makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/static_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/static_module_makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "post_modules/static_module_makefile" ) CONFIG_FILES="$CONFIG_FILES post_modules/static_module_makefile:modules/static_module_makefile.in" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/dynamic_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/dynamic_module_makefile:$dmmsrc" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "post_modules/dynamic_module_makefile" ) CONFIG_FILES="$CONFIG_FILES post_modules/dynamic_module_makefile:$dmmsrc" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "precompile.sh" ) CONFIG_FILES="$CONFIG_FILES precompile.sh" ;; "specs" ) CONFIG_FILES="$CONFIG_FILES specs" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; "machine.h" ) CONFIG_HEADERS="$CONFIG_HEADERS machine.h" ;; *) { { echo "$as_me:40581: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done
Notice that every other line is strange.. The same problem does not appear in 7.4.44 source tar-ball.
/ Marcus Agehall (Scanian)
Previous text:
2004-05-08 19:55: Subject: Configure breaks under mingw32
Which version of autoconf? What do lines 195 - 200 of config.status contain?
/ Henrik Grubbström (Lysator)
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/common_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/common_module_makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;;
cf:
AC_OUTPUT(Makefile \ modules/common_module_makefile \
[...]
Looks like a probable cr/lf problem.
Notice that every other line is strange.. The same problem does not appear in 7.4.44 source tar-ball.
Yes, but in this case you've rolled your own configure-script, and not gotten it from a tar file, haven't you? I suspect you will get a broken configure script for Pike 7.4 too, if you generate it in the same way.
/ Henrik Grubbström (Lysator)
Previous text:
2004-05-08 20:02: Subject: Configure breaks under mingw32
$ autoconf --version autoconf (GNU Autoconf) 2.52 Written by David J. MacKenzie.
Line 191-216: for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "make_variables" ) CONFIG_FILES="$CONFIG_FILES make_variables:$make_variables_in" ;; "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/common_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/common_module_makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/static_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/static_module_makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "post_modules/static_module_makefile" ) CONFIG_FILES="$CONFIG_FILES post_modules/static_module_makefile:modules/static_module_makefile.in" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/dynamic_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/dynamic_module_makefile:$dmmsrc" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "post_modules/dynamic_module_makefile" ) CONFIG_FILES="$CONFIG_FILES post_modules/dynamic_module_makefile:$dmmsrc" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "precompile.sh" ) CONFIG_FILES="$CONFIG_FILES precompile.sh" ;; "specs" ) CONFIG_FILES="$CONFIG_FILES specs" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; "machine.h" ) CONFIG_HEADERS="$CONFIG_HEADERS machine.h" ;; *) { { echo "$as_me:40581: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done
Notice that every other line is strange.. The same problem does not appear in 7.4.44 source tar-ball.
/ Marcus Agehall (Scanian)
That is possible. I used a somewhat wierd setup to check out the files. I will try to fiddle with that. Thanks!
/ Marcus Agehall (Scanian)
Previous text:
2004-05-08 20:26: Subject: Configure breaks under mingw32
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;; "modules/common_module_makefile" ) CONFIG_FILES="$CONFIG_FILES modules/common_module_makefile" ;; "" ) CONFIG_FILES="$CONFIG_FILES " ;;
cf:
AC_OUTPUT(Makefile \ modules/common_module_makefile \
[...]
Looks like a probable cr/lf problem.
Notice that every other line is strange.. The same problem does not appear in 7.4.44 source tar-ball.
Yes, but in this case you've rolled your own configure-script, and not gotten it from a tar file, haven't you? I suspect you will get a broken configure script for Pike 7.4 too, if you generate it in the same way.
/ Henrik Grubbström (Lysator)
Yes, building source-dists seems to get past that point at least.
/ Marcus Agehall (Scanian)
Previous text:
2004-05-08 20:41: Subject: Configure breaks under mingw32
That is possible. I used a somewhat wierd setup to check out the files. I will try to fiddle with that. Thanks!
/ Marcus Agehall (Scanian)
pike-devel@lists.lysator.liu.se