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

2017-12-15 Thread Tor Bug Tracker & Wiki
#24252: undefined reference to evdns_shutdown
--+
 Reporter:  maddoctor |  Owner:  (none)
 Type:  defect| Status:  closed
 Priority:  Medium|  Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |Version:  Tor: 0.3.1.9
 Severity:  Normal| Resolution:  not a bug
 Keywords:|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+
Changes (by teor):

 * status:  needs_information => closed
 * resolution:   => not a bug


Comment:

 This is a bug in libevent's release management (or release labelling), not
 a bug in tor.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-15 Thread Tor Bug Tracker & Wiki
#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.9
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+

Comment (by maddoctor):

 Did you know that libevent-2.1.8-stable.tar.gz is different from libevent-
 release-2.1.8-stable.tar.gz?
 Nope, me neither. Anyway, problem goes away after I rebuilt libevent from
 the first one.

 Thanks for trying to help.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#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.9
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+

Comment (by maddoctor):

 I don't use a distribution.

 This is how I build libevent:

 tar -xf libevent-release-2.1.8-stable.tar.gz
 cd libevent-release-2.1.8-stable
 cmake -DEVENT__BUILD_SHARED_LIBRARIES=ON -DCMAKE_INSTALL_PREFIX=/usr
 make
 make test
 make install
 cd ..
 rm -rf libevent-release-2.1.8-stable
 strip -S build/usr/lib/*
 mv build/usr/lib/libevent* /usr/lib64/

 That symbol is in the library (see comment above) and in the headers
 (event2/dns_compat.h).

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#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.9
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+
Changes (by teor):

 * keywords:  evdns_shutdown =>
 * version:  Tor: 0.3.1.8 => Tor: 0.3.1.9


Comment:

 It looks like libevent isn't exporting that symbol.
 Which distribution are you using, and how did you install your libevent?

 The solution to this may be that Tor needs to check for that symbol at
 configure time, and avoid using it if it is not present.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#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):

 This is with source tor-0.3.1.9:

 gcc  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all
 -Wstack-protector --param ssp-buffer-size=1 -fPIE -fasynchronous-unwind-
 tables -Wall -fno-strict-aliasing -Waddress -Warray-bounds -Wdate-time
 -Wdouble-promotion -Wduplicate-decl-specifier -Wduplicated-cond -Wextra
 -Wfloat-conversion -Wignored-attributes -Wimplicit-fallthrough -Winit-self
 -Wlogical-op -Wmissing-field-initializers -Wmissing-format-attribute
 -Wmissing-noreturn -Wnormalized=id -Wnull-dereference -Woverlength-strings
 -Woverride-init -Wshadow -Wshift-count-negative -Wshift-count-overflow
 -Wshift-negative-value -Wshift-overflow=2 -Wsizeof-array-argument
 -Wstrict-overflow=1 -Wsuggest-attribute=format -Wsuggest-
 attribute=noreturn -Wswitch-bool -Wsync-nand -Wtrampolines -Wunused-but-
 set-parameter -Wunused-but-set-variable -Wunused-const-variable=2
 -Wunused-local-typedefs -Wvariadic-macros -W -Wfloat-equal -Wundef
 -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings
 -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings
 -Wnested-externs -Wbad-function-cast -Wswitch-enum -Waggregate-return
 -Wpacked -Wunused -Wunused-parameter  -Wold-style-definition -Wmissing-
 declarations  -pie -z relro -z now -rdynamic -o src/or/tor
 src/or/tor_main.o src/or/libtor.a src/common/libor.a src/common/libor-
 ctime.a src/common/libor-crypto.a src/ext/keccak-tiny/libkeccak-tiny.a
 src/common/libcurve25519_donna.a src/ext/ed25519/ref10/libed25519_ref10.a
 src/ext/ed25519/donna/libed25519_donna.a src/common/libor-event.a
 src/trunnel/libor-trunnel.a src/trace/libor-trace.a -lz -lm -levent -lssl
 -lcrypto -L/usr/lib64 -llzma  -lcap -lpthread -ldl
 src/or/libtor.a(main.o): In function `tor_free_all':
 /building/tor/tor-0.3.1.9/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.9'
 make: *** [Makefile:3106: all] Error 2

 You see, -levent *is* there.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#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 teor):

 Please try:
 {{{
 make V=1
 }}}
 And provide the linker output for tor.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#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):

 Firefox, which is a huge project, compiled and linked against
 my installed libevent, BTW

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#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: 0004605068 FUNCLOCAL  DEFAULT   11 evdns_shutdown

 I do not know what command is being used to link the binary.
 The Makefile is over 1 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: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#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:
+
Changes (by teor):

 * status:  new => needs_information
 * severity:  Blocker => Normal
 * milestone:  Tor: 0.3.1.x-final => Tor: 0.3.2.x-final


Comment:

 We need some more information to help diagnose this:

 What OS are you on? What distribution?
 What configure command-line are you running?
 What does configure say about libevent?
 Is the missing function actually defined in your libevent?
 What command-line is being used to link the binary that fails?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-14 Thread Tor Bug Tracker & Wiki
#24252: undefined reference to evdns_shutdown
+
 Reporter:  maddoctor   |  Owner:  (none)
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor|Version:  Tor: 0.3.1.8
 Severity:  Blocker | Resolution:
 Keywords:  evdns_shutdown  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+

Comment (by maddoctor):

 Same error with 0.3.1.9 sources.
 libevent is installed correctly.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-12-12 Thread Tor Bug Tracker & Wiki
#24252: undefined reference to evdns_shutdown
+
 Reporter:  maddoctor   |  Owner:  (none)
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor|Version:  Tor: 0.3.1.8
 Severity:  Blocker | Resolution:
 Keywords:  evdns_shutdown  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+

Comment (by maddoctor):

 libevent 2.1.8 is installed correctly

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-11-13 Thread Tor Bug Tracker & Wiki
#24252: undefined reference to evdns_shutdown
+
 Reporter:  maddoctor   |  Owner:  (none)
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor|Version:  Tor: 0.3.1.8
 Severity:  Blocker | Resolution:
 Keywords:  evdns_shutdown  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+

Comment (by arma):

 Maybe you don't have your lib path set up correctly? Libraries need -l and
 sometimes also -L.

 (The best answer is to install the proper libevent packages on your
 system, since then hopefully the right libraries will get put into the
 right places for the linker to find them.)

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-11-13 Thread Tor Bug Tracker & Wiki
#24252: undefined reference to evdns_shutdown
+
 Reporter:  maddoctor   |  Owner:  (none)
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor|Version:  Tor: 0.3.1.8
 Severity:  Blocker | Resolution:
 Keywords:  evdns_shutdown  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+
Changes (by nickm):

 * milestone:   => Tor: 0.3.1.x-final


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2017-11-12 Thread Tor Bug Tracker & Wiki
#24252: undefined reference to evdns_shutdown
--+
 Reporter:  maddoctor |  Owner:  (none)
 Type:  defect| Status:  new
 Priority:  Medium|  Milestone:
Component:  Core Tor/Tor  |Version:  Tor: 0.3.1.8
 Severity:  Blocker   |   Keywords:  evdns_shutdown
Actual Points:|  Parent ID:
   Points:|   Reviewer:
  Sponsor:|
--+
 Using GCC 7.1.0, tor source 0.3.1.8, and libevent 2.1.8.
 At the end of the building process, tor fails to link with
 "undefined reference to evdns_shutdown" in libtor.a (main.c)
 But -levent_extra is in the Makefile, so I can't figure out why it fails.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs