Summary: | ASTERISK-27052: Asterisk build process fails with flag --with-pjproject-bundled with curl download command and slow network | ||
Reporter: | alex (maxguru) | Labels: | |
Date Opened: | 2017-06-12 22:41:36 | Date Closed: | 2017-06-15 13:54:34 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_pjsip/Bundling |
Versions: | 14.5.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Running ./configure --with-pjproject-bundled results in,
{quote} {noformat} ... checking for bison that supports parse-param... checking for soxmix... no checking for md5... no checking for md5sum... md5sum checking for a sed that does not truncate output... (cached) /bin/sed checking whether gcc is Clang... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking whether more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for RAII support... checking for gcc -fnested-functions... no checking for clang strsep/strcmp optimization... no checking for embedded pjproject (may have to download)... configuring [pjproject] Downloading http://www.pjsip.org/release/2.6/pjproject-2.6.tar.bz2 to /tmp/pjproject-2.6.tar.bz2 [pjproject] Retrying download [pjproject] Downloading http://www.pjsip.org/release/2.6/pjproject-2.6.tar.bz2 to /tmp/pjproject-2.6.tar.bz2 Makefile:114: recipe for target '/tmp/pjproject-2.6.tar.bz2' failed make: *** [/tmp/pjproject-2.6.tar.bz2] Error 28 make: *** Deleting file '/tmp/pjproject-2.6.tar.bz2' failed configure: Unable to configure third-party/pjproject configure: error: Run "make -C third-party/pjproject NOISY_BUILD=yes configure" to see error details. The command '/bin/sh -c /build-asterisk && rm -f /build-asterisk' returned a non-zero code: 1 {noformat} {quote} This happens only when wget is not installed on the system and the download takes longer than 1 minute. With wget, the following command is executed, {quote} {noformat} /usr/bin/wget -q -O- --timeout=5 http://www.pjsip.org/release/2.6/pjproject-2.6.tar.bz2 {noformat} {quote} Without wget, the following command is executed, {quote} {noformat} /usr/bin/curl -Ls --max-time 60 http://www.pjsip.org/release/2.6/pjproject-2.6.tar.bz2 {noformat} {quote} The timeout is not triggered with wget because the transfer never hangs (it is just extra slow). However, with curl, the --max-time flag sets the 'maximum time in seconds that you allow the whole operation to take.' If it takes longer than a minute, the configure command fails. cURL's --max-time argument has a different meaning from the wget --timeout argument. | ||
Comments: | By: Asterisk Team (asteriskteam) 2017-06-12 22:41:37.728-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. |