Olivier
2013-May-06 22:54 UTC
[asterisk-users] What is bootstrap.sh for ? Possible bug in 11.3.0 ?
Hi, Before trying to script res-memcached installation (see res_memcached<https://github.com/drivefast/asterisk-res_memcached>), I banged into this on a fresh 11.3.0 setup: 1. When run for the first time bootstrap.sh displays a non-blocking error. # sh -x bootstrap.sh + uname -sr + MY_AC_VER+ MY_AM_VER+ AUTOCONF_VERSION=2.60 + AUTOMAKE_VERSION=1.9 + export AUTOCONF_VERSION + export AUTOMAKE_VERSION + check_for_app autoconf + autoconf --version + [ 0 != 0 ] + check_for_app autoheader + autoheader --version + [ 0 != 0 ] + check_for_app automake + automake --version + [ 0 != 0 ] + check_for_app aclocal + aclocal --version + [ 0 != 0 ] + echo Generating the configure script ... Generating the configure script ... + aclocal -I autoconf + autoconf configure.ac:102: error: possibly undefined macro: AC_DEFINE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. + autoheader + automake --add-missing --copy + exit 0 # sh -x bootstrap.sh + uname -sr + MY_AC_VER+ MY_AM_VER+ AUTOCONF_VERSION=2.60 + AUTOMAKE_VERSION=1.9 + export AUTOCONF_VERSION + export AUTOMAKE_VERSION + check_for_app autoconf + autoconf --version + [ 0 != 0 ] + check_for_app autoheader + autoheader --version + [ 0 != 0 ] + check_for_app automake + automake --version + [ 0 != 0 ] + check_for_app aclocal + aclocal --version + [ 0 != 0 ] + echo Generating the configure script ... Generating the configure script ... + aclocal -I autoconf + autoconf + autoheader + automake --add-missing --copy + exit 0 2. After running bootstrap.sh, ./configure fails with: checking if "int foo = DAHDI_ECHOCANCEL_FAX_MODE" compiles using dahdi/user.h... no checking for getifaddrs() support... yes checking for timerfd support... yes checking for gsm_create in -lgsm... no ./configure: line 17928: syntax error near unexpected token `ILBC,' ./configure: line 17928: ` PKG_CHECK_MODULES(ILBC, libilbc,' My questions are: 1. What is the purpose of bootstrap.sh ? 2. Is this a bug or a feature ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130507/96b06286/attachment.htm>
Matthew Jordan
2013-May-06 23:20 UTC
[asterisk-users] What is bootstrap.sh for ? Possible bug in 11.3.0 ?
On 05/06/2013 05:54 PM, Olivier wrote:> Hi, > > Before trying to script res-memcached installation (see res_memcached > <https://github.com/drivefast/asterisk-res_memcached>), I banged into > this on a fresh 11.3.0 setup: ><snip>> My questions are: > > 1. What is the purpose of bootstrap.sh ? > 2. Is this a bug or a feature ? >1. bootstrap.sh generates the configure script for Asterisk. It's there to help with platform compatibility issues, as well as to make sure the configure file is built with all of the macros defined in the various .m4 files in Asterisk's autoconf sub-directory. 2. It appears as if you're running a modified version of Asterisk, in which case all bets are off. This works fine on the Linux build agents, which is what we use to build the tarballs on downloads.asterisk.org. So, no, I don't think there's a bug in the shell script. Matt -- Matthew Jordan Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org