Opened 13 years ago

Last modified 7 years ago

#332 closed defect (Fixed)

does not build with -O0

Reported by: weasel Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version: 0.1.2.0-alpha-cvs
Severity: Keywords:
Cc: weasel Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

tor trunk does not build without -O2. That's because apparently
gcc doesn't inline extern INLINE fooo functions() without -O2.

gcc -g -O0 -Wall -g -O0 -o tor buffers.o circuitbuild.o circuitlist.o circuituse.o command.o config.o connection.o connection_edge.o connection_or.o control.o cpuworker.o directory.o dirserv.o dns.o hibernate.o main.o onion.o policies.o relay.o rendcommon.o rendclient.o rendmid.o rendservice.o rephist.o router.o routerlist.o routerparse.o eventdns.o tor_main.o ../common/libor.a ../common/libor-crypto.a -lz -lssl -lcrypto -lpthread -ldl -levent -lssl -lcrypto
circuitbuild.o: In function `circuit_n_conn_done':
/tmp/buildd/tor-trunk/src/or/circuitbuild.c:357: undefined reference to `TO_ORIGIN_CIRCUIT'
circuitbuild.o: In function `ap_stream_wants_exit_attention':
/tmp/buildd/tor-trunk/src/or/circuitbuild.c:1052: undefined reference to `TO_EDGE_CONN'
/tmp/buildd/tor-trunk/src/or/circuitbuild.c:1052: undefined reference to `TO_EDGE_CONN'
circuitbuild.o: In function `choose_good_exit_server_general':
/tmp/buildd/tor-trunk/src/or/circuitbuild.c:1142: undefined reference to `TO_EDGE_CONN'
[...]

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (2)

comment:1 Changed 13 years ago by weasel

flyspray2trac: bug closed.

comment:2 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.