ash not working in statically compiled busybox on amd64

Andree Leidenfrost aleidenf at bigpond.net.au
Tue May 16 12:49:38 UTC 2006


Dear all,

I am getting the following error message when trying to run ash from a
statically compiled busybox 1.1.2 on amd64:

andree at aurich64:~$ ./ash


BusyBox v1.1.2 (2006.05.16-11:40+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

./ash: Cannot set tty process group (Operation not permitted)


If I don't compile statically, all is well. Also, the problem does not
exist on i386, only on amd64.

Here is what I do (on Debian Sid amd64):
- unpack the busybox-1.1.2 sources
- run 'make menuconfig'
- activate 'Busybox Settings -> Build Options -> Build BusyBox as a 
  static binary (no shared libs) (NEW)'
- activate 'Shells -> Choose your default shell (none) -> ash'
- run 'make'
- run 'ln -s busybox ash'
- run './ash'

The latter gives the error message './ash: Cannot set tty process group
(Operation not permitted)' but runs fine on Debian Sid i386 as described
above.

I originally had this problem with busybox 1.0.0 but thought I check
with 1.1.2 before bringing it up. Any help is much appreciated. Also, in
case you think this is a genuine bug, I'll surely be happy to file this
in bugs.busybox.net.

I somewaht doubt its relevance but here is some information about the
compiler and libc6 version on my Debian Sid amd64 system:

andree at aurich64:~$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c
++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --program-suffix=-4.0
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release
x86_64-linux-gnu
Thread model: posix
gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)

andree at aurich64:~$ ldd --version
ldd (GNU libc) 2.3.6
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Written by Roland McGrath and Ulrich Drepper.


Best regards & thanks a lot,
Andree
-- 
Andree Leidenfrost
Sydney - Australia

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060516/e7c85deb/attachment-0002.pgp 


More information about the busybox mailing list