Opened 12 years ago

Last modified 7 years ago

#542 closed defect (Fixed)

looking for fallback-consensus in funny place

Reported by: arma Owned by:
Priority: Low Milestone: 0.2.0.x-final
Component: Core Tor/Tor Version: 0.2.0.9-alpha
Severity: Keywords:
Cc: arma, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Nov 03 21:15:07.749 [info] read_file_to_str(): Could not open "/home/arma/.tor/c
ached-certs": No such file or directory
Nov 03 21:15:07.749 [info] read_file_to_str(): Could not open "/home/arma/.tor/c
ached-consensus": No such file or directory
Nov 03 21:15:07.749 [info] read_file_to_str(): Could not open "/home/arma/.tor/u
nverified-consensus": No such file or directory
Nov 03 21:15:07.749 [info] read_file_to_str(): Could not open "${prefix}/share/t
or/fallback-consensus": No such file or directory

My orconfig.h even says
/* Default location for platform-independent read-only data. */
#define SHARE_DATADIR "${prefix}/share"

Are we defining this wrong in the autoconf?
(Linux Debian Etch, I did an svn checkout and then ./autogen && ./configure &&
make && src/or/tor)

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (7)

comment:1 Changed 12 years ago by nickm

Ah. We set this in configure.in by eval echo $datadir. But datadir is ${datarootdir}, and datarootdir
is ${prefix}/share. We need a way to get the absolute path reliably.

comment:2 Changed 12 years ago by nickm

According to the automake manual, we should be adding these to CFLAGS, not sticking them in orconfig.h.

comment:3 Changed 12 years ago by nickm

Resolved in 12376.

comment:4 Changed 12 years ago by arma

12376 breaks all the scripts in contrib/ like contrib/torctl. They also want
@BINDIR@, @LOCALSTATEDIR@, etc defined. Now that we've removed the lines
from configure.in, they never have those values filled in. So the packages
don't end up with control scripts that can control them.

Is the fix to put the lines from r12376 in every Makefile.am? But if it's
a CFLAGS, will that even work for non-C files?

This is blocking building packages for 0.2.0.11-alpha.

comment:5 Changed 12 years ago by nickm

0.2.0.11 and 0.2.0.12 both came out, so apparently this is fixed. But see 572.

comment:6 Changed 12 years ago by nickm

flyspray2trac: bug closed.

comment:7 Changed 7 years ago by nickm

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