Bug 427647 - implicit definition of strptime because of missing define
Summary: implicit definition of strptime because of missing define
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cronolog
Version: el5
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: jafo-redhat
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: ActualBug
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-06 06:37 UTC by Arenas Belon, Carlo Marcelo
Modified: 2017-04-06 10:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-06 10:28:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
define _GNU_SOURCE in cronoutils.c to satisfy glibc2 compatibility feature to define strptime (330 bytes, patch)
2008-01-06 06:37 UTC, Arenas Belon, Carlo Marcelo
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 323425 0 None None None 2017-01-08 05:49:18 UTC
Gentoo 204501 0 None None None 2017-01-08 05:48:55 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.