[tor-dev] OpenWrt cross compile build error in 0.2.6.8

Lars Boegild Thomsen lth at reclaim-your-privacy.com
Fri May 22 03:09:59 UTC 2015


Hi Everybody, 

I have for a while been maintaining an up-to-date Tor package for OpenWrt.  In the latest stable 0.2.6.8 I get a build error (see below).

I suspect this is actually autoconf related and I must admit I am not too familiar with autoconf.  I have been trying to compare things with 0.2.5.12 (which compiled cleanly) but I have not been able to spot or fix the problem.

Any ideas?  I am sure I miss something blatantly obvious.


ccache_cc -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var\"" -DBINDIR="\"/usr/bin\"" -I/home/lth/ionic-router/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/lth/ionic-router/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/lth/ionic-router/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/lth/ionic-router/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include  -I./src/common -I/home/lth/ionic-router/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/lth/ionic-router/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include   -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -std=c99 -MT src/common/address.o -MD -MP -MF $depbase.Tpo -c -o src/common/address.o src/common/address.c &&\
mv -f $depbase.Tpo $depbase.Po
src/common/address.c: In function 'tor_addr_lookup':
src/common/address.c:250:21: error: storage size of 'hints' isn't known
     struct addrinfo hints;
                     ^
src/common/address.c:255:5: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
     err = sandbox_getaddrinfo(name, NULL, &hints, &res);
     ^
src/common/address.c:260:45: error: dereferencing pointer to incomplete type
       for (res_p = res; res_p; res_p = res_p->ai_next) {
                                             ^
src/common/address.c:262:20: error: dereferencing pointer to incomplete type
           if (res_p->ai_family == AF_INET) {
                    ^
src/common/address.c:265:27: error: dereferencing pointer to incomplete type
           } else if (res_p->ai_family == AF_INET6 && !best) {
                           ^
src/common/address.c:268:35: error: dereferencing pointer to incomplete type
         } else if (family == res_p->ai_family) {
                                   ^
src/common/address.c:275:15: error: dereferencing pointer to incomplete type
       if (best->ai_family == AF_INET) {
               ^
src/common/address.c:276:65: error: dereferencing pointer to incomplete type
         tor_addr_from_in(addr,
                                                                 ^
src/common/address.c:279:22: error: dereferencing pointer to incomplete type
       } else if (best->ai_family == AF_INET6) {
                      ^
src/common/address.c:281:55: error: dereferencing pointer to incomplete type
                           &((struct sockaddr_in6*)best->ai_addr)->sin6_addr);
                                                       ^
src/common/address.c:284:7: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
       sandbox_freeaddrinfo(res);
       ^
src/common/address.c:287:20: error: 'EAI_AGAIN' undeclared (first use in this function)
     return (err == EAI_AGAIN) ? 1 : -1;
                    ^
src/common/address.c:287:20: note: each undeclared identifier is reported only once for each function it appears in
src/common/address.c: In function 'tor_addr_parse_PTR_name':
src/common/address.c:519:5: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
     if (strcasecmp(cp, "ip6.arpa"))
     ^
src/common/address.c: In function 'ifaddrs_to_smartlist':
src/common/address.c:1243:26: error: 'IFF_UP' undeclared (first use in this function)
     if ((i->ifa_flags & (IFF_UP | IFF_RUNNING)) != (IFF_UP | IFF_RUNNING))
                          ^
src/common/address.c:1243:35: error: 'IFF_RUNNING' undeclared (first use in this function)
     if ((i->ifa_flags & (IFF_UP | IFF_RUNNING)) != (IFF_UP | IFF_RUNNING))
                                   ^
src/common/address.c: In function 'ifreq_to_smartlist':
src/common/address.c:1404:35: error: dereferencing pointer to incomplete type
     const struct sockaddr *sa = &r->ifr_addr;
                                   ^
src/common/address.c:1414:19: error: dereferencing pointer to incomplete type
     buf += _SIZEOF_ADDR_IFREQ(*r);
                   ^
src/common/address.c: In function 'get_interface_addresses_ioctl':
src/common/address.c:1429:17: error: storage size of 'ifc' isn't known
   struct ifconf ifc;
                 ^
Makefile:2962: recipe for target 'src/common/address.o' failed
make[4]: *** [src/common/address.o] Error 1

-- 
Lars Boegild Thomsen
https://reclaim-your-privacy.com
Jabber/XMPP: lth at reclaim-your-privacy.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20150522/57f876e9/attachment-0001.sig>


More information about the tor-dev mailing list