|
Message-ID: <20120608201206.009e6c7d@sibserver.ru> Date: Fri, 8 Jun 2012 20:12:06 +0800 From: orc <orc@...server.ru> To: musl@...ts.openwall.com Subject: Re: bug? sysinfo() and getopt_long() misbehavior > Binutils 2.20, musl compiled with -Bsymbolic-functions. But statically > or dynamically linked iptables still rejects to accept arguments. > It required ugly fix to work, mostly same as iproute2, removing some > non-conformant extensions, correct headers, maybe there is a fault. It > also expects somewhere that we have glibc (#ifdef __GLIBC__) headers. > Maybe it's code is non-conformant in whole. I will try to see where it > fails on host. Iptables fails because it sets optind to zero and getopt_long immidately returns with -1 in the first line (argv[0][0] != '-'). But problem does not fixed with just removing 'optind = 0;' from source code. For what reason one can set optind to zero?
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.