[asterisk-bugs] [Asterisk 0017616]: [patch] Configure sets ac_cv_fork_works=no incorrectly for uclibc

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jul 9 17:25:54 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17616 
====================================================================== 
Reported By:                pprindeville
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17616
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.2.9 
JIRA:                       SWP-1835 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-07-09 12:47 CDT
Last Modified:              2010-07-09 17:25 CDT
====================================================================== 
Summary:                    [patch] Configure sets ac_cv_fork_works=no
incorrectly for uclibc
Description: 
The generated top-level configure contains:

if test "x$ac_cv_func_fork_works" = xcross; then
 case $host in
  *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
    # Override, as these systems have only a dummy fork() stub
    ac_cv_func_fork_works=no
    ;;

this is wrong.  The linux-uclibc fork() works just fine.


====================================================================== 

---------------------------------------------------------------------- 
 (0124441) abelbeck (reporter) - 2010-07-09 17:25
 https://issues.asterisk.org/view.php?id=17616#c124441 
---------------------------------------------------------------------- 
This issue was discovered in the trunk branch of AstLinux (cross-compile
using uclibc).  Philip (the reporter here) implemented  Tilghman's comments
on bugid 17464, whereby properly setting 'configure's $host variable. 
Since *-*-linux-uclibc* was now matched, ac_cv_fork_works is set to 'no',
previously (for many years) it was always guessed to be 'yes' and worked
fine with uclibc.

It appears that back in r59573, in asterisk 1.4.3, the *-*-linux-uclibc*
match was added.

The above patch works for me, and the command line option -f could always
be used to disable fork if so desired. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-09 17:25 abelbeck       Note Added: 0124441                          
======================================================================




More information about the asterisk-bugs mailing list