[Bug 3679] uClibc with crosstool-ng builds buggy busybox (argument / parameter problem)

bugzilla at busybox.net bugzilla at busybox.net
Sat Aug 25 02:49:11 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=3679

--- Comment #13 from John <smeeze at catlover.com> 2012-08-25 02:49:10 UTC ---
I managed to find the core of the problem.
uClibc poses itself as glibc and defines __GLIBC__.
This causes the #ifdef __GLIBC__ to evaluate to true and resets optind to zero
instead of one.
Unfortunately the uClibc getopt() is BSD style and pukes and keeps optind at
zero.
Putting an exception for uClibc in 
libbb/getopt32.c
libbb/vfork_daemon_rexec.c
shell/shell_common.c
util-linux/getopt.c

fixed the problem.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list