Bug 1249703
Summary: | gdal-2.0.0-1.fc24 FTBFS: gdalserver.c:124:21: error: storage size of 'sHints' isn't known | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Petr Pisar <ppisar> |
Component: | gdal | Assignee: | Devrim Gündüz <devrim> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | alex, cristian.balint, devrim, jwakely, mmahut, orion, pavel.lisy, pertusus, volker27 |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://koji.fedoraproject.org/koji/taskinfo?taskID=10511760 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-21 21:10:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Petr Pisar
2015-08-03 15:25:19 UTC
Also failing in F23. For addrinfo to be defined a feature test macro such as _GNU_SOURCE or _POSIX_SOURCE is needed. The bug is in gdalserver.c: #if defined(__STDC_VERSION__) #define _XOPEN_SOURCE #endif That defines the macro to an empty string. For <netdb.h> to declare addrinfo it must be set to 600 or greater. From <features.h>: _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if Single Unix conformance is wanted, to 600 for the sixth revision, to 700 for the seventh revision. So gdalserver.c should have: #if defined(__STDC_VERSION__) #define _XOPEN_SOURCE 600 #endif The failure to build may be caused by a recent glibc change to correct which feature test macro is needed for addrinfo: https://sourceware.org/git/?p=glibc.git;a=commit;f=resolv/netdb.h;h=8737be806407be51f046b358d8824c4c968912de Fixed in gdal-2.0.0-2.fc24 and gdal-2.0.0-2.fc23. The patch should be reported upstream. Solved in r29667 https://trac.osgeo.org/gdal/ticket/6073 Thank you, Jonathan! |