Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 629912

Summary: media-libs/liblo-0.29[ipv6] - In function ‘lo_server_resolve_hostname’: error: ‘it’ undeclared
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/radarsat1/liblo/issues/56
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin von Gagern 2017-09-04 20:35:47 UTC
server.c: In function ‘lo_server_resolve_hostname’:
server.c:303:10: error: ‘it’ undeclared (first use in this function)
     for (it = ai; it; it = it->ai_next) {
          ^
server.c:303:10: note: each undeclared identifier is reported only once for each
 function it appears in
server.c:303:15: error: ‘ai’ undeclared (first use in this function)
     for (it = ai; it; it = it->ai_next) {

The context there reads

#ifdef ENABLE_IPV6
    /* Try it the IPV6 friendly way first */
    for (it = ai; it; it = it->ai_next) {

so presumably this is ipv6-specific. Upstream has a bug report and a fix:
https://github.com/radarsat1/liblo/issues/56
https://github.com/radarsat1/liblo/commit/968dff4d576ca102525c81beddb36a62.diff

To apply that fix before the ebuild has been fixed:
# mkdir -p /etc/portage/media-libs/liblo-0.29
# cd /etc/portage/media-libs/liblo-0.29
# wget https://github.com/radarsat1/liblo/commit/968dff4d576ca102525c81be.diff
# emerge -1 liblo

The above compiled fine for me. Did not test further.
Comment 1 Martin von Gagern 2017-09-04 20:37:00 UTC
Sorry, forgot to check fixed bugs for duplicates…

*** This bug has been marked as a duplicate of bug 627832 ***