Bug 8153 - Building on an IPv6-only machine fails to correctly setup getaddrinfo.
Summary: Building on an IPv6-only machine fails to correctly setup getaddrinfo.
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.6.0rc1
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
Depends on:
Reported: 2011-05-19 19:28 UTC by Jeremy Allison
Modified: 2011-05-20 19:15 UTC (History)
0 users

See Also:

git-am fix for 3.6.0 (2.01 KB, patch)
2011-05-19 19:33 UTC, Jeremy Allison
kai: review+

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Allison 2011-05-19 19:28:03 UTC
When building on a machine set up for IPv6-only, one of our configure tests is incorrect. Doing:
hints.ai_family = AF_INET;
getaddrinfo("", NULL, &hints, &ppres)
fails as AF_INET is unavailable on an IPv6-only system. This causes us to fallback to our replacement getaddrinfo code which is IPv4-only.

Patch for 3.6.0 to follow.

Found by Kai.

Comment 1 Jeremy Allison 2011-05-19 19:28:50 UTC
Re-assigning to me.
Comment 2 Jeremy Allison 2011-05-19 19:33:33 UTC
Created attachment 6457 [details]
git-am fix for 3.6.0

Kai - please review and I'll re-assign to Karolin once you're happy.
Comment 3 Kai Blin 2011-05-20 10:37:40 UTC
Comment on attachment 6457 [details]
git-am fix for 3.6.0

Works for me.
Comment 4 Kai Blin 2011-05-20 10:38:09 UTC
Reassigning to Karolin.
Comment 5 Karolin Seeger 2011-05-20 19:15:29 UTC
Pushed to v3-6-test.
Closing out bug report.