[tor-bugs] #10565 [- Select a component]: trouble compiling sun solaris 9 (SPARC)

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 6 11:38:33 UTC 2014


#10565: trouble compiling sun solaris 9 (SPARC)
----------------------------------+---------------------
 Reporter:  gemadar               |          Owner:
     Type:  defect                |         Status:  new
 Priority:  normal                |      Milestone:
Component:  - Select a component  |        Version:
 Keywords:                        |  Actual Points:
Parent ID:                        |         Points:
----------------------------------+---------------------
 When extracting from git and trying to compile I get the following:-

 src/test/test_addr.c: In function `test_addr_sockaddr_to_str':
 src/test/test_addr.c:902: error: syntax error before numeric constant
 src/test/test_addr.c:922: error: invalid lvalue in unary `&'
 src/test/test_addr.c:923: error: request for member `sun_family' in
 something not a structure or union
 src/test/test_addr.c:924: error: request for member `sun_path' in
 something not a structure or union
 src/test/test_addr.c:924: error: request for member `sun_path' in
 something not a structure or union
 src/test/test_addr.c:925: error: invalid lvalue in unary `&'
 make[1]: *** [src/test/src_test_test-test_addr.o] Error 1
 make[1]: Leaving directory `/export/home/ms/tor'
 make: *** [all] Error 2



 When investigating further it seems you try to declare the variable sun,
 which is a variable used by openssl so you cannot redeclare it, I fixed in
 my code changing it to suns and it now compiles fine.

 Does this need sorting in the main build?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10565>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list