Build Problems on Solaris

Steve Murphy steve.murphy at blueyonder.co.uk
Wed Dec 5 20:27:39 UTC 2007


Hi Nick.

Got a bit further building from svn-12686.
Throws up a warning about tor_threads_init
Also tried --disable-threads & did the same.

gcc -DHAVE_CONFIG_H -I. -I../..  -DSHARE_DATADIR="\"/usr/local/share\"" 
-DLOCALSTATEDIR="\"/usr/local/var\"" -DBINDIR="\"/usr/local/bin\"" 
-I../common -I/usr/local/include    -g -O2 -Wall -g -O2 -MT main.o -MD 
-MP -MF .deps/main.Tpo -c -o main.o main.c
main.c: In function `tor_init':
main.c:1742: warning: implicit declaration of function `tor_threads_init'
mv -f .deps/main.Tpo .deps/main.Po

Then dies a bit further on.

gcc -DHAVE_CONFIG_H -I. -I../..  -DSHARE_DATADIR="\"/usr/local/share\"" 
-DLOCALSTATEDIR="\"/usr/local/var\"" -DBINDIR="\"/usr/local/bin\"" 
-I../common -I/usr/local/include    -g -O2 -Wall -g -O2 -MT tor_main.o 
-MD -MP -MF .deps/tor_main.Tpo -c -o tor_main.o tor_main.c
mv -f .deps/tor_main.Tpo .deps/tor_main.Po
gcc  -g -O2 -Wall -g -O2 -L/usr/local/lib -Wl,-R/usr/local/lib  -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   -lresolv -lnsl -lsocket
Undefined                       first referenced
  symbol                             in file
tor_threads_init                    main.o
ld: fatal: Symbol referencing errors. No output written to tor
collect2: ld returned 1 exit status
gmake[3]: *** [tor] Error 1
gmake[3]: Leaving directory `/tmp/tor/src/or'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/tor/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/tor'
gmake: *** [all] Error 2
bash-3.00$

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