[tor-bugs] #21626 [Core Tor/Torsocks]: Make error: undefined reference to 'helper_is_default_tor_running'

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Mar 3 14:57:18 UTC 2017


#21626: Make error: undefined reference to 'helper_is_default_tor_running'
-------------------------------+-----------------------------------
 Reporter:  jah                |          Owner:  dgoulet
     Type:  defect             |         Status:  needs_information
 Priority:  Medium             |      Milestone:
Component:  Core Tor/Torsocks  |        Version:
 Severity:  Normal             |     Resolution:
 Keywords:                     |  Actual Points:
Parent ID:                     |         Points:
 Reviewer:                     |        Sponsor:
-------------------------------+-----------------------------------

Comment (by dgoulet):

 Can you make sure you `./autogen.sh` and `configure` here?

 Because you are suppose to see the `helpers.o` while compiling the test:

 {{{
 /bin/bash ../libtool  --tag=CC   --mode=link gcc -I../include -I../src
 -I../tests/utils/ -I. -g -O2 -Wall -fPIE -fwrapv --param ssp-buffer-size=1
 -fstack-protector-all  -pie -z relro -z now -o test_dns test_dns.o
 helpers.o ../tests/utils/tap/libtap.la ../src/lib/libtorsocks.la -ldl
 libtool: link: gcc -I../include -I../src -I../tests/utils/ -I. -g -O2
 -Wall -fPIE -fwrapv --param ssp-buffer-size=1 -fstack-protector-all -pie
 -z relro -z now -o .libs/test_dns test_dns.o helpers.o
 ../tests/utils/tap/.libs/libtap.a ../src/lib/.libs/libtorsocks.so -ldl
 -Wl,-rpath -Wl,/usr/local/lib/torsocks
 }}}

 In `tests/Makefile.am`, everything is there and it works on our CI:

 {{{
 HELPER_SOURCES = helpers.c helpers.h
 test_dns_SOURCES = test_dns.c $(HELPER_SOURCES)
 }}}

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


More information about the tor-bugs mailing list