Build Problems on Solaris

Steve Murphy steve.murphy at blueyonder.co.uk
Thu Dec 6 17:03:16 UTC 2007


Hi Nick.

Been having a dig around..

Tried building 0.2.0.12-alpha on Linux with ./configure 
--disable-threads & get the same result !


gcc  -g -O2 -Wall -g -O2   -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 dirvote.o 
dns.o dnsserv.o hibernate.o main.o  networkstatus.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 -levent -lssl -lcrypto   -ldl
main.o: In function `tor_init':
/tmp/tor-0.2.0.12-alpha/src/or/main.c:1735: undefined reference to 
`tor_threads_init'
collect2: ld returned 1 exit status
make[3]: *** [tor] Error 1
make[3]: Leaving directory `/tmp/tor-0.2.0.12-alpha/src/or'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/tor-0.2.0.12-alpha/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/tor-0.2.0.12-alpha'
make: *** [all] Error 2
$

In src/or/main.c

Looks like threading is turned on by default.

tor_init(int argc, char *argv[])
{
   char buf[256];
.
.
   /* Initialize threading. */
   tor_threads_init();
   /* Initialize the history structures. */
   rep_hist_init();
.
.

Commenting out "tor_threads_init();" got it to build ok on Solaris & 
been running fine as a client.

Regards.

Steve.

Nick Mathewson wrote:
> On Wed, Dec 05, 2007 at 01:52:29PM +0000, Steve Murphy wrote:
>  [...]
>> gcc -DHAVE_CONFIG_H -I. -I../..   -I../common -I/usr/local/include    -g 
>> -O2 -Wall -g -O2 -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c
>> In file included from ./util.h:17,
>>                  from log.c:25:
>> ./compat.h: In function `IPV4MAPh':
>> ./compat.h:367: error: structure has no member named `s6_addr32'
> 
> Hi, Steve, and thanks for the report!  I think I have this fixed in
> the subversion repository now (as of r12679).  Let me know if it comes
> back?
> 
> yrs



More information about the tor-talk mailing list