[tor-bugs] #24252 [Core Tor/Tor]: undefined reference to evdns_shutdown

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Dec 15 02:50:25 UTC 2017


#24252: undefined reference to evdns_shutdown
----------------------------+------------------------------------
 Reporter:  maddoctor       |          Owner:  (none)
     Type:  defect          |         Status:  needs_information
 Priority:  Medium          |      Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor    |        Version:  Tor: 0.3.1.8
 Severity:  Normal          |     Resolution:
 Keywords:  evdns_shutdown  |  Actual Points:
Parent ID:                  |         Points:
 Reviewer:                  |        Sponsor:
----------------------------+------------------------------------

Comment (by maddoctor):

 linux, kernel 4.12.4, glibc 2.26, gcc 7.1.0

 PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig \
     ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc

 ...
 checking for libevent directory... (system)
 checking whether we need extra options to link libevent... (none)
 checking event2/event.h usability... yes
 checking event2/event.h presence... yes
 checking for event2/event.h... yes
 checking event2/dns.h usability... yes
 checking event2/dns.h presence... yes
 checking for event2/dns.h... yes
 checking event2/bufferevent_ssl.h usability... yes
 checking event2/bufferevent_ssl.h presence... yes
 checking for event2/bufferevent_ssl.h... yes
 checking for library containing event_new... -levent
 checking for library containing evdns_base_new... none required
 checking for evutil_secure_rng_set_urandom_device_file... yes
 checking for evutil_secure_rng_add_bytes... yes
 checking whether Libevent is new enough... yes
 ...

 readelf -a /usr/lib64/libevent.so | grep dns_shutdown
    392: 0000000000046050    68 FUNC    LOCAL  DEFAULT   11 evdns_shutdown

 I do not know what command is being used to link the binary.
 The Makefile is over 10000 lines long and refers back to things
 like LIB and CCLD that I cannot track down.

   CCLD     src/or/tor
 src/or/libtor.a(main.o): In function `tor_free_all':
 /building/tor/tor-0.3.1.8/src/or/main.c:3211: undefined reference to
 `evdns_shutdown'
 collect2: error: ld returned 1 exit status
 make[1]: *** [Makefile:4215: src/or/tor] Error 1
 make[1]: Leaving directory '/building/tor/tor-0.3.1.8'
 make: *** [Makefile:3106: all] Error 2

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


More information about the tor-bugs mailing list