Re: problems cross-compling bash-3.2
Chet Ramey wrote: Christian Boon wrote: This is from aclocal.m4: AC_DEFUN(BASH_SYS_JOB_CONTROL_MISSING, [AC_REQUIRE([BASH_SYS_SIGNAL_VINTAGE]) AC_MSG_CHECKING(for presence of necessary job control definitions) AC_CACHE_VAL(bash_cv_job_control_missing, [AC_TRY_RUN([ #include sys/types.h #ifdef HAVE_SYS_WAIT_H #include sys/wait.h #endif #ifdef HAVE_UNISTD_H #include unistd.h #endif #include signal.h Chris Does anybody know what is going wrong or what is missing? Bash does not configure in job control when cross-compiling. You can remove the JOB_CONTROL_MISSING define from config.h and try building without it, but there's no guarantee that the necessary capabilities are present on the target system. The macro you partially quoted above encapsulates the required functionality. If building without JOB_CONTROL_MISSING defined doesn't result in a binary with job control working, the tests in the macro give you a hint about where to look. Chet removing JOB_CONTROL_MISSING from config.h doesnt work. but when i do: export bash_cv_job_control_missing=present job control is compiling and working. Chris
Re: problems cross-compling bash-3.2
On Tuesday 28 August 2007, Christian Boon wrote: Christian Boon wrote: Chet Ramey wrote: Christian Boon wrote: Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. It tells you it won't be able to: checking for presence of necessary job control definitions... configure: WARNING: cannot check job control if cross-compiling -- defaulting to missing missing You can look at the definition of BASH_SYS_JOB_CONTROL_MISSING in aclocal.m4 and manually check which, if any, of the conditions is not met. Chet This is from aclocal.m4: AC_DEFUN(BASH_SYS_JOB_CONTROL_MISSING, [AC_REQUIRE([BASH_SYS_SIGNAL_VINTAGE]) AC_MSG_CHECKING(for presence of necessary job control definitions) AC_CACHE_VAL(bash_cv_job_control_missing, [AC_TRY_RUN([ #include sys/types.h #ifdef HAVE_SYS_WAIT_H #include sys/wait.h #endif #ifdef HAVE_UNISTD_H #include unistd.h #endif #include signal.h Does anybody know what is going wrong or what is missing? nothing is wrong ... as Chet pointed out, look at the autotools snippet to figure out what variable *you* need to set in your environment before executing configure in order to force the check to go the way you want -mike signature.asc Description: This is a digitally signed message part.
Re: problems cross-compling bash-3.2
Christian Boon wrote: Chet Ramey wrote: Christian Boon wrote: Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. It tells you it won't be able to: checking for presence of necessary job control definitions... configure: WARNING: cannot check job control if cross-compiling -- defaulting to missing missing You can look at the definition of BASH_SYS_JOB_CONTROL_MISSING in aclocal.m4 and manually check which, if any, of the conditions is not met. Chet This is from aclocal.m4: AC_DEFUN(BASH_SYS_JOB_CONTROL_MISSING, [AC_REQUIRE([BASH_SYS_SIGNAL_VINTAGE]) AC_MSG_CHECKING(for presence of necessary job control definitions) AC_CACHE_VAL(bash_cv_job_control_missing, [AC_TRY_RUN([ #include sys/types.h #ifdef HAVE_SYS_WAIT_H #include sys/wait.h #endif #ifdef HAVE_UNISTD_H #include unistd.h #endif #include signal.h Chris Does anybody know what is going wrong or what is missing? thanks in advance, Chris
problems cross-compling bash-3.2
Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. i configure bash with: bash-3.2]$ ./configure --host=arm-xscale-linux-gnueabi --without-bash-malloc --enable-job-control in the output i see: checking if opendir() opens non-directories... configure: WARNING: cannot check opendir if cross compiling -- defaulting to no checking whether ulimit can substitute for getdtablesize... configure: WARNING: cannot check ulimit if cross compiling -- defaulting to no checking to see if getenv can be redefined... configure: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes checking if getcwd() will dynamically allocate memory... configure: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no checking for presence of POSIX-style sigsetjmp/siglongjmp... configure: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing missing checking whether or not strcoll and strcmp differ... configure: WARNING: cannot check strcoll if cross compiling -- defaulting to no checking for standard-conformant putenv declaration... yes checking for standard-conformant unsetenv declaration... yes checking for printf floating point output in hex notation... configure: WARNING: cannot check printf if cross compiling -- defaulting to no checking if signal handlers must be reinstalled when invoked... configure: WARNING: cannot check signal handling if cross compiling -- defaulting to no checking for presence of necessary job control definitions... configure: WARNING: cannot check job control if cross-compiling -- defaulting to missing missing checking for presence of named pipes... configure: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing missing checking whether termios.h defines TIOCGWINSZ... no checking whether sys/ioctl.h defines TIOCGWINSZ... yes checking for TIOCSTAT in sys/ioctl.h... no checking for FIONREAD in sys/ioctl.h... yes checking whether WCONTINUED flag to waitpid is unavailable or available but broken... configure: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no checking for speed_t in sys/types.h... no checking whether getpw functions are declared in pwd.h... yes in the config.h i see: /* Define if job control is unusable or unsupported. */ #define JOB_CONTROL_MISSING 1 Do i need something other packages to enable job control? Also when i remove the line: #define JOB_CONTROL_MISSING 1 it doesnt work: $ builtin bg bash: builtin: bg: not a shell builtin How can i make job control working? i dont know if this is the right mailing list for this.. otherwise please let me know which is.. thanks in advance, Chris.
Re: problems cross-compling bash-3.2
On Monday 27 August 2007, Christian Boon wrote: i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. cross-compiling bash is known to be broken as it'll mix your host signal defs into the target binary -mike signature.asc Description: This is a digitally signed message part.
Re: problems cross-compling bash-3.2
cross-compiling bash is known to be broken as it'll mix your host signal defs into the target binary This is no longer true; bash-3.2 builds the signal list at invocation time rather than compile time when cross-compiling. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://tiswww.tis.case.edu/~chet/
Re: problems cross-compling bash-3.2
Mike Frysinger wrote: On Monday 27 August 2007, Christian Boon wrote: i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. cross-compiling bash is known to be broken as it'll mix your host signal defs into the target binary -mike is there an earlier version that isnt broken? Chris
Re: problems cross-compling bash-3.2
Chet Ramey wrote: cross-compiling bash is known to be broken as it'll mix your host signal defs into the target binary This is no longer true; bash-3.2 builds the signal list at invocation time rather than compile time when cross-compiling. Chet so what do i need to have job control working? Chris
Re: problems cross-compling bash-3.2
Christian Boon wrote: Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. It tells you it won't be able to: checking for presence of necessary job control definitions... configure: WARNING: cannot check job control if cross-compiling -- defaulting to missing missing You can look at the definition of BASH_SYS_JOB_CONTROL_MISSING in aclocal.m4 and manually check which, if any, of the conditions is not met. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/
Re: problems cross-compling bash-3.2
Chet Ramey wrote: Christian Boon wrote: Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. It tells you it won't be able to: checking for presence of necessary job control definitions... configure: WARNING: cannot check job control if cross-compiling -- defaulting to missing missing You can look at the definition of BASH_SYS_JOB_CONTROL_MISSING in aclocal.m4 and manually check which, if any, of the conditions is not met. Chet This is from aclocal.m4: AC_DEFUN(BASH_SYS_JOB_CONTROL_MISSING, [AC_REQUIRE([BASH_SYS_SIGNAL_VINTAGE]) AC_MSG_CHECKING(for presence of necessary job control definitions) AC_CACHE_VAL(bash_cv_job_control_missing, [AC_TRY_RUN([ #include sys/types.h #ifdef HAVE_SYS_WAIT_H #include sys/wait.h #endif #ifdef HAVE_UNISTD_H #include unistd.h #endif #include signal.h Chris