Anonymous | Login | Signup for a new account | 11-10-2008 10:41 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000137 | [uClibc] Architecture Specific | major | always | 03-09-05 13:10 | 10-11-08 02:48 | ||||
Reporter | paul123 | View Status | public | ||||||
Assigned To | uClibc | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 0.9.27 | ||||||
Summary | 0000137: ipsec-tools doesn't compile with uclibc | ||||||||
Description |
ipsec-tools (I've tried with several versions, 0.3, 0.4, 0.5rc1) doesn't compile; in fact the configure script dies complaining about a buggy getaddrinfo implementation. I think the problem may be something to do with these lines from getaddrinfo.c: 573 struct gaih_addrtuple *atr; 574 atr = at = alloca (sizeof (struct gaih_addrtuple)); 575 memset (at, '\0', sizeof (struct gaih_addrtuple)); 576 577 if (req->ai_family == 0) 578 { 579 at->next = alloca (sizeof (struct gaih_addrtuple)); 580 memset (at->next, '\0', sizeof (struct gaih_addrtuple)); 581 } 582 583 #if __UCLIBC_HAS_IPV6__ 584 if (req->ai_family == 0 || req->ai_family == AF_INET6) 585 { 586 extern const struct in6_addr __in6addr_loopback; 587 at->family = AF_INET6; 588 if ((req->ai_flags & AI_PASSIVE) == 0) 589 memcpy (at->addr, &__in6addr_loopback, sizeof (struct in6_addr)); 590 atr = at->next; 591 } 592 #endif 593 594 if (req->ai_family == 0 || req->ai_family == AF_INET) 595 { 596 atr->family = AF_INET; 597 if ((req->ai_flags & AI_PASSIVE) == 0) 598 *(uint32_t *) atr->addr = htonl (INADDR_LOOPBACK); 599 } 600 } Specifically, I'm not sure what these lines are doing: 577 if (req->ai_family == 0) 578 { 579 at->next = alloca (sizeof (struct gaih_addrtuple)); 580 memset (at->next, '\0', sizeof (struct gaih_addrtuple)); 581 } If I comment them out and build uclibc, then ipsec-tools compiles without complaining. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Copyright © 2000 - 2006 Mantis Group |