Bug #185

Updated by Sven Eckelmann over 5 years ago

Running generates a broken header file ("@compat-autoconf.h@"), because the first line contains the invalid characters @-n@. This causes the build to fail with following error:

<pre><code>compat-autoconf.h:1:1: error: expected identifier or '(' before '-' token</code></pre>

This error is possibly caused by "line 8": 8": in the script. This line does **not** invoke echo with the @-n@ parameter, instead it outputs @-n@ literally which is then included in the header file and causing the error.

Quote from Stack Overflow ( (
> If you invoke Bash with the name sh, it will mimic sh, where the -n option was not available to echo. (…)

Possible fix:
I think line 8 is redundant, because line 39 would create the file anyway. If you want an alternative (to be sure) I'd suggest to replace line 8 by '@touch "${TMP}"@'.

System: Mac OS 10.9.2
Bash: GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
Batman: batman-adv-legacy-2014-01-24-e51bd5682e51e6afd8c914686ed675161a75b2d2 from