[asterisk-bugs] [Asterisk 0017616]: [patch] Configure sets ac_cv_fork_works=no incorrectly for uclibc
Asterisk Bug Tracker
noreply at bugs.digium.com
Sat Jul 17 00:34:53 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: feedback
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-17 00:34 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.
======================================================================
----------------------------------------------------------------------
(0124668) pprindeville (reporter) - 2010-07-17 00:34
https://issues.asterisk.org/view.php?id=17616#c124668
----------------------------------------------------------------------
Just to follow up, here's the relevant portion of that file:
1763 # AC_FUNC_FORK
1764 # -------------
1765 AN_FUNCTION([fork], [AC_FUNC_FORK])
1766 AN_FUNCTION([vfork], [AC_FUNC_FORK])
1767 AC_DEFUN([AC_FUNC_FORK],
1768 [AC_REQUIRE([AC_TYPE_PID_T])dnl
1769 AC_CHECK_HEADERS(vfork.h)
1770 AC_CHECK_FUNCS(fork vfork)
1771 if test "x$ac_cv_func_fork" = xyes; then
1772 _AC_FUNC_FORK
1773 else 1774 ac_cv_func_fork_works=$ac_cv_func_fork
1775 fi
1776 if test "x$ac_cv_func_fork_works" = xcross; then
1777 case $host in
1778 *-*-amigaos* | *-*-msdosdjgpp*)
1779 # Override, as these systems have only a dummy fork() stub
1780 ac_cv_func_fork_works=no
1781 ;;
1782 *) 1783 ac_cv_func_fork_works=yes
1784 ;;
1785 esac
1786 AC_MSG_WARN([result $ac_cv_func_fork_works guessed because of
cross co
mpilation])
1787 fi
1788 ac_cv_func_vfork_works=$ac_cv_func_vfork
1789 if test "x$ac_cv_func_vfork" = xyes; then
1790 _AC_FUNC_VFORK
1791 fi;
1792 if test "x$ac_cv_func_fork_works" = xcross; then
1793 ac_cv_func_vfork_works=$ac_cv_func_vfork
1794 AC_MSG_WARN([result $ac_cv_func_vfork_works guessed because of
cross c
ompilation])
1795 fi
1796
1797 if test "x$ac_cv_func_vfork_works" = xyes; then
1798 AC_DEFINE(HAVE_WORKING_VFORK, 1, [Define to 1 if `vfork'
works.])
1799 else
1800 AC_DEFINE(vfork, fork, [Define as `fork' if `vfork' does not
work.])
1801 fi
1802 if test "x$ac_cv_func_fork_works" = xyes; then
1803 AC_DEFINE(HAVE_WORKING_FORK, 1, [Define to 1 if `fork' works.])
1804 fi
1805 ])# AC_FUNC_FORK
As you see, only amigaos and msdosdjgpp fail to support fork().
Issue History
Date Modified Username Field Change
======================================================================
2010-07-17 00:34 pprindeville Note Added: 0124668
======================================================================
More information about the asterisk-bugs
mailing list