[uClibc 0000137]: ipsec-tools doesn't compile with uclibc

bugs at busybox.net bugs at busybox.net
Sat Oct 11 09:48:52 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=137 
====================================================================== 
Reported By:                paul123
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   137
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           0.9.30
====================================================================== 
Date Submitted:             03-09-2005 13:10 PST
Last Modified:              10-11-2008 02:48 PDT
====================================================================== 
Summary:                    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.
====================================================================== 

---------------------------------------------------------------------- 
 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. 

---------------------------------------------------------------------- 
 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                          
======================================================================




More information about the uClibc-cvs mailing list