BusyBox Bug and Patch Tracking
BusyBox
  

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

- Relationships

- Notes
(0013244)
khem
10-11-08 02:42

I compiled ipsec-tools 0.6.7 on latest uclibc SVN/ARM arch it built ok. So i am closing this defect as fixed.
 
(0013254)
bernhardf
10-11-08 02:48

khem, please *close* the issues. TIA..
 

- Issue History
Date Modified Username Field Change
03-09-05 13:10 paul123 New Issue
03-16-05 11:57 andersen Assigned To andersen => uClibc
10-11-08 02:42 khem Status assigned => resolved
10-11-08 02:42 khem Fixed in Version  => 0.9.30
10-11-08 02:42 khem Resolution open => fixed
10-11-08 02:42 khem Note Added: 0013244
10-11-08 02:48 bernhardf Status resolved => closed
10-11-08 02:48 bernhardf Note Added: 0013254


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker