Bug 427647

Summary: implicit definition of strptime because of missing define
Product: [Fedora] Fedora EPEL Reporter: Arenas Belon, Carlo Marcelo <carenas>
Component: cronologAssignee: jafo-redhat
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: el5CC: ktdreyer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: ActualBug
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-06 10:28:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
define _GNU_SOURCE in cronoutils.c to satisfy glibc2 compatibility feature to define strptime none

Description Arenas Belon, Carlo Marcelo 2008-01-06 06:37:35 UTC
Description of problem:
strptime is only defined if #define __USE_XOPEN as can be seen in <time.h>
as per the documentation, since glibc2 this function is only available if
_GNU_SOURCE or _XOPEN_SOURCE had been defined.

Version-Release number of selected component (if applicable):
All

How reproducible:
Always

Steps to Reproduce:
1. download source rpm
2. rebuild in a 64bit architecture (x86_64 or ppc)
3.
  
Actual results:
cronoutils.c: In function 'parse_time':
cronoutils.c:673: warning: cast to pointer from integer of different size

Expected results:
no messages

Additional info:
more details (linked to ia64) reported in debian in the linked bug (URL) as well
as in the following gentoo bug :

  http://bugs.gentoo.org/show_bug.cgi?id=204501

Comment 1 Arenas Belon, Carlo Marcelo 2008-01-06 06:37:36 UTC
Created attachment 290901 [details]
define _GNU_SOURCE in cronoutils.c to satisfy glibc2 compatibility feature to define
strptime

Comment 2 Ken Dreyer 2017-01-08 05:48:56 UTC
cronolog.org is no more.

You might want to submit these patches to the new GitHub upstream repo: https://github.com/fordmason/cronolog

FYI EPEL 5 is going EOL soon: https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/message/PFGUA4UNOCICASB6W7JLNBL7EJ6L4J2X/

Comment 3 Fedora End Of Life 2017-04-06 10:28:43 UTC
Fedora EPEL 5 changed to end-of-life (EOL) status on 2017-03-31. Fedora EPEL 5
is no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora
or Fedora EPEL, please feel free to reopen this bug against that version. If
you are unable to reopen this bug, please file a new report against the current
release. If you experience problems, please add a comment to this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.