[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] Re: #916 [Tor - Tor client]: 0.2.0.33 doesn't compile on FC8 64-bit



#916: 0.2.0.33 doesn't compile on FC8 64-bit
---------------------------+------------------------------------------------
 Reporter:  arma           |         Type:  defect          
   Status:  reopened       |     Priority:  trivial         
Milestone:  0.2.1.x-final  |    Component:  Tor - Tor client
  Version:  0.2.0.33       |   Resolution:                  
 Keywords:                 |       Parent:                  
---------------------------+------------------------------------------------

Old description:

> Reported by John Thompson:
>
> It won't compile for me here (Fedora8 64bit). tor-0.2.32 compiled fine,
> however, and 0.2.0.33 built fine on my NetBSD box. See attached log.
>
> In file included from buffers.c:17:
> or.h: In function 'TO_OR_CONN':
> or.h:1102: warning: implicit declaration of function 'log'
> or.h:1102: warning: incompatible implicit declaration of built-in
> function 'log'
> or.h:1102: error: 'LOG_ERR' undeclared (first use in this function)
> or.h:1102: error: (Each undeclared identifier is reported only once
> or.h:1102: error: for each function it appears in.)
> or.h:1102: error: 'LD_BUG' undeclared (first use in this function)
> or.h:1102: error: too many arguments to function 'log'
> or.h: In function 'TO_DIR_CONN':
> or.h:1107: warning: incompatible implicit declaration of built-in
> function 'log'
> or.h:1107: error: 'LOG_ERR' undeclared (first use in this function)
> or.h:1107: error: 'LD_BUG' undeclared (first use in this function)
> or.h:1107: error: too many arguments to function 'log'
> or.h: In function 'TO_EDGE_CONN':
> or.h:1112: warning: incompatible implicit declaration of built-in
> function 'log'
> or.h:1112: error: 'LOG_ERR' undeclared (first use in this function)
> or.h:1112: error: 'LD_BUG' undeclared (first use in this function)
> or.h:1112: error: too many arguments to function 'log'
> or.h: In function 'TO_CONTROL_CONN':
> or.h:1117: warning: incompatible implicit declaration of built-in
> function 'log'
> or.h:1117: error: 'LOG_ERR' undeclared (first use in this function)
> or.h:1117: error: 'LD_BUG' undeclared (first use in this function)
> or.h:1117: error: too many arguments to function 'log'
> or.h: In function 'TO_OR_CIRCUIT':
> or.h:1945: warning: incompatible implicit declaration of built-in
> function 'log'
> or.h:1945: error: 'LOG_ERR' undeclared (first use in this function)
> or.h:1945: error: 'LD_BUG' undeclared (first use in this function)
> or.h:1945: error: too many arguments to function 'log'
> or.h: In function 'TO_ORIGIN_CIRCUIT':
> or.h:1950: warning: incompatible implicit declaration of built-in
> function 'log'
> or.h:1950: error: 'LOG_ERR' undeclared (first use in this function)
> or.h:1950: error: 'LD_BUG' undeclared (first use in this function)
> or.h:1950: error: too many arguments to function 'log'
> buffers.c: In function 'chunk_new_with_alloc_size':
> buffers.c:174: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:174: error: 'LOG_ERR' undeclared (first use in this function)
> buffers.c:174: error: 'LD_BUG' undeclared (first use in this function)
> buffers.c:174: error: too many arguments to function 'log'
> buffers.c: In function 'chunk_grow':
> buffers.c:226: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:226: error: 'LOG_ERR' undeclared (first use in this function)
> buffers.c:226: error: 'LD_BUG' undeclared (first use in this function)
> buffers.c:226: error: too many arguments to function 'log'
> buffers.c: In function 'buf_shrink_freelists':
> buffers.c:271: warning: implicit declaration of function 'log_info'
> buffers.c:271: error: 'LD_MM' undeclared (first use in this function)
> buffers.c:275: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:275: error: 'LOG_ERR' undeclared (first use in this function)
> buffers.c:275: error: 'LD_BUG' undeclared (first use in this function)
> buffers.c:275: error: too many arguments to function 'log'
> buffers.c:288: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:288: error: too many arguments to function 'log'
> buffers.c: In function 'buf_dump_freelist_sizes':
> buffers.c:306: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:306: error: 'LD_MM' undeclared (first use in this function)
> buffers.c:306: error: too many arguments to function 'log'
> buffers.c:317: error: too many arguments to function 'log'
> buffers.c:320: error: too many arguments to function 'log'
> buffers.c: In function 'buf_pullup':
> buffers.c:373: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:373: error: 'LOG_ERR' undeclared (first use in this function)
> buffers.c:373: error: 'LD_BUG' undeclared (first use in this function)
> buffers.c:373: error: too many arguments to function 'log'
> buffers.c:381: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:381: error: too many arguments to function 'log'
> buffers.c:393: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:393: error: too many arguments to function 'log'
> buffers.c:406: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:406: error: too many arguments to function 'log'
> buffers.c:411: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:411: error: too many arguments to function 'log'
> buffers.c: In function 'buf_remove_from_front':
> buffers.c:431: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:431: error: 'LOG_ERR' undeclared (first use in this function)
> buffers.c:431: error: 'LD_BUG' undeclared (first use in this function)
> buffers.c:431: error: too many arguments to function 'log'
> buffers.c:433: warning: incompatible implicit declaration of built-in
> function '
> log'
> buffers.c:433: error: too many arguments to function 'log'
> ...
>
> [Automatically added by flyspray2trac: Operating System: Fedora Core
> Linux]

New description:

 Reported by John Thompson:

 It won't compile for me here (Fedora8 64bit). tor-0.2.32 compiled fine,
 however, and 0.2.0.33 built fine on my NetBSD box. See attached log.

 In file included from buffers.c:17:
 or.h: In function 'TO_OR_CONN':
 or.h:1102: warning: implicit declaration of function 'log'
 or.h:1102: warning: incompatible implicit declaration of built-in function
 'log'
 or.h:1102: error: 'LOG_ERR' undeclared (first use in this function)
 or.h:1102: error: (Each undeclared identifier is reported only once
 or.h:1102: error: for each function it appears in.)
 or.h:1102: error: 'LD_BUG' undeclared (first use in this function)
 or.h:1102: error: too many arguments to function 'log'
 or.h: In function 'TO_DIR_CONN':
 or.h:1107: warning: incompatible implicit declaration of built-in function
 'log'
 or.h:1107: error: 'LOG_ERR' undeclared (first use in this function)
 or.h:1107: error: 'LD_BUG' undeclared (first use in this function)
 or.h:1107: error: too many arguments to function 'log'
 or.h: In function 'TO_EDGE_CONN':
 or.h:1112: warning: incompatible implicit declaration of built-in function
 'log'
 or.h:1112: error: 'LOG_ERR' undeclared (first use in this function)
 or.h:1112: error: 'LD_BUG' undeclared (first use in this function)
 or.h:1112: error: too many arguments to function 'log'
 or.h: In function 'TO_CONTROL_CONN':
 or.h:1117: warning: incompatible implicit declaration of built-in function
 'log'
 or.h:1117: error: 'LOG_ERR' undeclared (first use in this function)
 or.h:1117: error: 'LD_BUG' undeclared (first use in this function)
 or.h:1117: error: too many arguments to function 'log'
 or.h: In function 'TO_OR_CIRCUIT':
 or.h:1945: warning: incompatible implicit declaration of built-in function
 'log'
 or.h:1945: error: 'LOG_ERR' undeclared (first use in this function)
 or.h:1945: error: 'LD_BUG' undeclared (first use in this function)
 or.h:1945: error: too many arguments to function 'log'
 or.h: In function 'TO_ORIGIN_CIRCUIT':
 or.h:1950: warning: incompatible implicit declaration of built-in function
 'log'
 or.h:1950: error: 'LOG_ERR' undeclared (first use in this function)
 or.h:1950: error: 'LD_BUG' undeclared (first use in this function)
 or.h:1950: error: too many arguments to function 'log'
 buffers.c: In function 'chunk_new_with_alloc_size':
 buffers.c:174: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:174: error: 'LOG_ERR' undeclared (first use in this function)
 buffers.c:174: error: 'LD_BUG' undeclared (first use in this function)
 buffers.c:174: error: too many arguments to function 'log'
 buffers.c: In function 'chunk_grow':
 buffers.c:226: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:226: error: 'LOG_ERR' undeclared (first use in this function)
 buffers.c:226: error: 'LD_BUG' undeclared (first use in this function)
 buffers.c:226: error: too many arguments to function 'log'
 buffers.c: In function 'buf_shrink_freelists':
 buffers.c:271: warning: implicit declaration of function 'log_info'
 buffers.c:271: error: 'LD_MM' undeclared (first use in this function)
 buffers.c:275: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:275: error: 'LOG_ERR' undeclared (first use in this function)
 buffers.c:275: error: 'LD_BUG' undeclared (first use in this function)
 buffers.c:275: error: too many arguments to function 'log'
 buffers.c:288: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:288: error: too many arguments to function 'log'
 buffers.c: In function 'buf_dump_freelist_sizes':
 buffers.c:306: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:306: error: 'LD_MM' undeclared (first use in this function)
 buffers.c:306: error: too many arguments to function 'log'
 buffers.c:317: error: too many arguments to function 'log'
 buffers.c:320: error: too many arguments to function 'log'
 buffers.c: In function 'buf_pullup':
 buffers.c:373: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:373: error: 'LOG_ERR' undeclared (first use in this function)
 buffers.c:373: error: 'LD_BUG' undeclared (first use in this function)
 buffers.c:373: error: too many arguments to function 'log'
 buffers.c:381: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:381: error: too many arguments to function 'log'
 buffers.c:393: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:393: error: too many arguments to function 'log'
 buffers.c:406: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:406: error: too many arguments to function 'log'
 buffers.c:411: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:411: error: too many arguments to function 'log'
 buffers.c: In function 'buf_remove_from_front':
 buffers.c:431: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:431: error: 'LOG_ERR' undeclared (first use in this function)
 buffers.c:431: error: 'LD_BUG' undeclared (first use in this function)
 buffers.c:431: error: too many arguments to function 'log'
 buffers.c:433: warning: incompatible implicit declaration of built-in
 function '
 log'
 buffers.c:433: error: too many arguments to function 'log'
 ...

 [Automatically added by flyspray2trac: Operating System: Fedora Core
 Linux]

--

Comment(by nickm):

 Or just use libevent-2.0.5-beta, where the log.h header got renamed.

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