Summary: | ASTERISK-16952: [patch] [regression] Change in revision 284478 causes configure to exit when cross-compiling | ||
Reporter: | abelbeck (abelbeck) | Labels: | |
Date Opened: | 2010-11-12 15:57:14.000-0600 | Date Closed: | 2011-01-14 14:24:25.000-0600 |
Priority: | Minor | Regression? | Yes |
Status: | Closed/Complete | Components: | Core/BuildSystem |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) asterisk-1.4-bugid18301.patch.txt | |
Description: | Running configure when cross-compiling, results in: -- checking if we can increase the maximum select-able file descriptor... cross-compile checking if we can increase the maximum select-able file descriptor... cross-compile configure: error: cannot run test program while cross compiling See `config.log' for more details. -- configure then exits with 1 This change was adding to 1.4 with r284478 ****** ADDITIONAL INFORMATION ****** The offending section of configure.ac is the following: -- if test "${ac_cv_have_variable_fdset}x" = "0x"; then AC_RUN_IFELSE( AC_LANG_PROGRAM([ #include <unistd.h> #include <sys/types.h> #include <stdlib.h> ], [if (getuid() != 0) { exit(1); }]), AC_DEFINE([CONFIGURE_RAN_AS_ROOT], 1, [Some configure tests will unexpectedly fail if configure is run by a non-root user. These may be able to be tested at runtime.])) fi -- which always exists when cross-compiling. Removing this section is a temporary fix, but obviously not a general fix. | ||
Comments: | By: abelbeck (abelbeck) 2011-01-09 13:22:35.000-0600 Attached is asterisk-1.4-bugid18301.patch.txt which fixes the cross-complile issue in configure.ac. Additionally, this patch makes asterisk-1.4 configure.ac reflect asterisk-1.6.2 and asterisk-1.8 for the purpose of defining HAVE_VARIABLE_FDSET By: Digium Subversion (svnbot) 2011-01-14 14:21:02.000-0600 Repository: asterisk Revision: 301869 U branches/1.4/configure U branches/1.4/configure.ac U branches/1.4/include/asterisk/autoconfig.h.in ------------------------------------------------------------------------ r301869 | lmadsen | 2011-01-14 14:21:01 -0600 (Fri, 14 Jan 2011) | 7 lines Fix issue with cross-compiling failing (closes issue ASTERISK-16952) Reported by: abelbeck Patches: asterisk-1.4-bugid18301.patch.txt uploaded by abelbeck (license 946) Tested by: abelbeck, russellb ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=301869 By: Digium Subversion (svnbot) 2011-01-14 14:24:25.000-0600 Repository: asterisk Revision: 301887 _U branches/1.6.2/ ------------------------------------------------------------------------ r301887 | lmadsen | 2011-01-14 14:24:24 -0600 (Fri, 14 Jan 2011) | 14 lines Blocked revisions 301869 via svnmerge ........ r301869 | lmadsen | 2011-01-14 14:21:00 -0600 (Fri, 14 Jan 2011) | 7 lines Fix issue with cross-compiling failing (closes issue ASTERISK-16952) Reported by: abelbeck Patches: asterisk-1.4-bugid18301.patch.txt uploaded by abelbeck (license 946) Tested by: abelbeck, russellb ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=301887 |