After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 676461 - build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: general
3.4.x
Other OpenBSD
: Normal normal
: GNOME3.6
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-05-21 06:10 UTC by Antoine Jacoutot
Modified: 2012-05-23 16:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
define _XOPEN_SOURCE_EXTENDED (786 bytes, patch)
2012-05-21 06:10 UTC, Antoine Jacoutot
none Details | Review

Description Antoine Jacoutot 2012-05-21 06:10:14 UTC
Created attachment 214537 [details] [review]
define _XOPEN_SOURCE_EXTENDED

Hi.

strptime(3) was introduced in XPG4.
On OpenBSD, just defining _XOPEN_SOURCE gets you the older XPG3 wich doesn't
include strptime(3).
To get XPG4, you'll have to add #define _XOPEN_VERSION 4, but doing that may
cause some issues.  So it is probably better to just ask for XPG4v2 by adding
#define _XOPEN_SOURCE_EXTENDED 1.

Thoughts?
Comment 1 Felix Riemann 2012-05-23 16:38:31 UTC
I guess it's okay as setting _XOPEN_SOURCE to 500 seems to enable more (unneeded) stuff. Thanks.

commit b7c68b1ffe2ebcc81d6daa947d8ee94ad4e7e2c5
Author: Antoine Jacoutot <>
Date:   Mon May 21 08:08:18 2012 +0200

    build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
    
    strptime(3) was introduced in XPG4. On OpenBSD, just defining
    _XOPEN_SOURCE gets you the older XPG3 wich doesn't include strptime(3),
    so we need to define _XOPEN_SOURCE_EXTENDED to get XPG4v2.
---
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.