[asterisk-bugs] [JIRA] (ASTERISK-27052) Asterisk build process fails with flag --with-pjproject-bundled with curl download command and slow network

George Joseph (JIRA) noreply at issues.asterisk.org
Thu Jul 6 07:12:05 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Joseph updated ASTERISK-27052:
-------------------------------------

    Target Release Version/s: 14.6.0

> Asterisk build process fails with flag --with-pjproject-bundled with curl download command and slow network
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-27052
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27052
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip/Bundling
>    Affects Versions: 14.5.0
>            Reporter: alex
>            Severity: Minor
>      Target Release: 13.17.0, 14.6.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list