[tor-bugs] #5161 [Tor Client]: build error: redundant redeclaration of ‘environ’

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Feb 17 16:54:42 UTC 2012


#5161: build error: redundant redeclaration of ‘environ’
------------------------+---------------------------------------------------
 Reporter:  arma        |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  normal      |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------
 git commit efb7b9dec13 added
 {{{
 #ifndef HAVE__NSGETENVIRON
 /* FreeBSD needs this; it doesn't seem to hurt other platforms. */
 extern char **environ;
 #endif
 }}}

 But on my Debian testing with --enable-gcc-warnings, I get
 {{{
 compat.c:1667:15: error: redundant redeclaration of ‘environ’ [-Werror
 =redundant-decls]
 /usr/include/unistd.h:542:15: note: previous declaration of ‘environ’ was
 here
 cc1: all warnings being treated as errors
 }}}

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


More information about the tor-bugs mailing list