Re: Anacron still hangs
John Whitley wrote:
>
> >[strace log elided...]
>
> The strace is not terribly useful. I have already reported this
> problem, including a working patch, and been ack'ed by the maintainer.
> The fix was supposed to appear in 2.1-2, but hasn't shown up at all.
> If you are still having this problem, submit it to the BTS, to get things
> rolling on this fix.
>
> The problem is that anacron expects the return value of getopt() to be
> EOF instead of the proper libc6 compliant value of -1. I.e. there is
> a while loop in main.c of the form:
>
> while ((opt = getopt(...stuff..)) != EOF)
> {
> ...
> }
>
> that hangs because getopt _never_ returns EOF under libc6.
>
> I'm having to build from source debs, reapplying the patch each time
> to get anacron working...
I guess mine is working because I have -fsigned-char in my $CFLAGS ...
Michel
--
Pauli's exclusive, Heisenberg's uncertain, and Schroedinger just waves.
______________________________________________________________________________
Michel Dänzer /// mdaenzer@earthling.net
__ /// AmigaOS/Linux(Debian/PPC)
Student of computer science at the \\\/// Team *AMIGA* ICQ #: 5675698
Swiss Federal Institute of Technology \\\/ AUGS member #163 IRC: CoOpER
Reply to: