[tor-bugs] #7021 [Tor]: compile error, tor_addr_parse(&addr, options->OutboundBindAddress)

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Oct 3 00:04:58 UTC 2012


#7021: compile error, tor_addr_parse(&addr, options->OutboundBindAddress)
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  normal     |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor        |        Version:                    
 Keywords:  tor-relay  |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------
 {{{
 src/or/dns.c: In function 'configure_nameservers':
 src/or/dns.c:1215: error: passing argument 2 of 'tor_addr_parse' from
 incompatible pointer type
 ./src/common/address.h:187: note: expected 'const char *' but argument is
 of type 'struct config_line_t * const'
 src/or/dns.c:1216: error: format '%s' expects type 'char *', but argument
 5 has type 'struct config_line_t * const'
 make[1]: *** [src/or/dns.o] Error 1
 make[1]: Leaving directory `/home/tord/git'
 make: *** [all] Error 2
 }}}

 The line is
 {{{
    if (tor_addr_parse(&addr, options->OutboundBindAddress) < 0) {
 }}}

 Sounds like commit 1cbf45bed1 was incomplete?

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7021>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list