trouble compiling sun solaris 9 (SPARC)
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?
Trac:
Username: gemadar