Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34750 - fcron: getopt returned
Summary: fcron: getopt returned
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High critical (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-30 04:01 UTC by Axxackall
Modified: 2006-02-04 06:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axxackall 2003-11-30 04:01:44 UTC
after emerging fcron and trying to run crontabs I see that crontab fall to
infinite loop printing "(setopt) Warning: getopt returned" with a crazy speed.
An attempt to run fcron service makes the same in the syslog. No need to mention
that both crontab and fcron do not produce any useful outcome.

Reproducible: Always
Steps to Reproduce:
1. emerge fcron
2. crontab /etc/crontab

Actual Results:  
(setopt) Warning: getopt returned (setopt) Warning: getopt returned (setopt)
Warning: getopt returned (setopt) Warning: getopt returned (setopt) Warning:
getopt returned (setopt) Warning: getopt returned (setopt) Warning: getopt
returned (setopt) Warning: getopt returned (setopt) Warning: getopt returned
(setopt) Warning: getopt returned (setopt) Warning: getopt returned 

Expected Results:  
It is expected that it just works :)

fcron-2.0.0-r3
Comment 1 Axxackall 2003-12-13 07:43:56 UTC
after investigating this issue further, I paid attention that my fcron emerge log is full of the following warnings:

warning: comparison is always false due to limited range of data type

with advises on debian mail-lists to use -fsigned-char in CFLAGS against such warnings.

The advise helped and fcron, after being recompiled with -fsigned-char now works fine.

Please add this flag to all ebuilds of fcron for PPC platform - on x86 fcron works fine without such flag.
Comment 2 Axxackall 2004-01-02 14:34:04 UTC
I think the bug can be closed with that advise about flags.