Opened 2 weeks ago

Last modified 2 weeks ago

#31301 new defect

error building tor-0.4.1.4-rc

Reported by: n8fr8 Owned by:
Priority: High Milestone: Tor: 0.4.1.x-final
Component: Core Tor/Tor Version: Tor: 0.4.1.4-rc
Severity: Normal Keywords: build compile 041-must 041-regression?
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

using the exact same build process I did for 0.4.0.4, I receive an error when trying to build the latest tor release, using the tor-android build system:

src/core/libtor-app.a(main.o):main.c:function run_tor_main_loop: error: undefined reference to 'keypin_load_journal'
src/core/libtor-app.a(main.o):main.c:function run_tor_main_loop: error: undefined reference to 'keypin_open_journal'
src/core/libtor-app.a(main.o):main.c:function do_hup: error: undefined reference to 'dirserv_load_fingerprint_file'
src/core/libtor-app.a(connection_or.o):connection_or.c:function connection_or_client_learned_peer_id: error: undefined reference to 'dirserv_orconn_tls_done'
src/core/libtor-app.a(networkstatus.o):networkstatus.c:function routers_update_status_from_consensus_networkstatus: error: undefined reference to 'dirserv_should_launch_reachability_test'
src/core/libtor-app.a(nodelist.o):nodelist.c:function nodelist_set_routerinfo: error: undefined reference to 'dirserv_router_get_status'
src/core/libtor-app.a(nodelist.o):nodelist.c:function nodelist_set_routerinfo: error: undefined reference to 'dirserv_set_node_flags_from_authoritative_status'
src/core/libtor-app.a(routerlist.o):routerlist.c:function router_add_to_routerlist: error: undefined reference to 'authdir_wants_to_reject_router'
src/core/libtor-app.a(routerlist.o):routerlist.c:function update_consensus_router_descriptor_downloads: error: undefined reference to 'dirserv_would_reject_router'
src/core/libtor-app.a(router.o):router.c:function init_keys: error: undefined reference to 'dirserv_add_own_fingerprint'
src/core/libtor-app.a(router.o):router.c:function init_keys: error: undefined reference to 'dirserv_add_descriptor'
src/core/libtor-app.a(router.o):router.c:function init_keys: error: undefined reference to 'dirserv_load_fingerprint_file'
src/core/libtor-app.a(dircache.o):dircache.c:function directory_handle_command_post: error: undefined reference to 'dirserv_add_multiple_descriptors'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Child Tickets

Change History (6)

comment:1 Changed 2 weeks ago by nickm

Keywords: 041-must 041-regression? added
Priority: MediumHigh

My first question is: what's the configure command you're using?

comment:2 Changed 2 weeks ago by n8fr8

CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) PKG_CONFIG_PATH="$(EXTERNAL_ROOT)/lib/pkgconfig" CFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \

LIBS="-L$(EXTERNAL_ROOT)/lib" CFLAGS="-I$(EXTERNAL_ROOT)/include -I$(EXTERNAL_ROOT)/include/event2" \
./configure \

--host=$(ALTHOST) \
--disable-asciidoc \
--enable-static-libevent --with-libevent-dir=$(EXTERNAL_ROOT) \
--enable-static-openssl --with-openssl-dir=$(EXTERNAL_ROOT) \
--disable-linker-hardening --disable-gcc-hardening --disable-tool-name-check --disable-systemd --disable-module-dirauth

comment:4 Changed 2 weeks ago by nickm

Based on the information above, I suspect that we broke --disable-module-dirauth at some point. That's odd, since I thought we had tests for that.

comment:5 Changed 2 weeks ago by n8fr8

That seems to have been it.

comment:6 Changed 2 weeks ago by nickm

On the other hand, when I try with --diable-module-dirauth on my desktop, it works fine. Maybe some other thing is broken too? Can we isolate a minimal configure line that produces this breakage?

Note: See TracTickets for help on using tickets.