errors compiling wanproxy 0.8.0

Juli Mallett juli at clockworksquid.com
Mon Oct 1 12:46:27 PDT 2012


On Mon, Oct 1, 2024 at 12:24 PM, Daniel Coletti <dcoletti at xtech.com.ar> wrote:
> Hi,
>     I'm trying to compile wanproxy in a Ubuntu 12.04 LTS (64bit) box and I'm
> getting this error message:
>
> ==> crypto/example/aes128-cbc-speed1 (all)
> make[3]: se ingresa al directorio
> «/home/dax/wanproxy-0.8.0/crypto/example/aes128-cbc-speed1»
> g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h
> -pipe -O -g -W -Wall -Werror -Wno-system-headers -Wno-uninitialized
> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow
> -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -c -o
> event_poll_epoll.o ../../../event/event_poll_epoll.cc
> ../../../event/event_poll_epoll.cc: En la función miembro ‘Action*
> EventPoll::poll(const EventPoll::Type&, int, EventCallback*)’:
> ../../../event/event_poll_epoll.cc:57:40: error: tipos enumeral y no
> enumeral en la expresión condicional [-Werror]
> ../../../event/event_poll_epoll.cc:63:41: error: tipos enumeral y no
> enumeral en la expresión condicional [-Werror]
> ../../../event/event_poll_epoll.cc: En la función miembro ‘void
> EventPoll::cancel(const EventPoll::Type&, int)’:
> ../../../event/event_poll_epoll.cc:93:29: error: tipos enumeral y no
> enumeral en la expresión condicional [-Werror]
> ../../../event/event_poll_epoll.cc:101:29: error: tipos enumeral y no
> enumeral en la expresión condicional [-Werror]
> cc1plus: all warnings being treated as errors
> make[3]: *** [event_poll_epoll.o] Error 1
>
> I had no problem compiling it in a Debian 6.0.6 (64bit).
>
> Thanks for any advice on what to do.

It's a strange error.  I think the compiler is complaining because one
of the operands to the expression which apparently involves enumerated
values (I guess EPOLLIN and EPOLLOUT are enums) and also a bare 0 is
used rather than an enum value.  I'm not sure, but that's what it
seems like.
You can try passing USE_POLL=poll or USE_POLL=select to make and see
if that helps.
Also, you seem to be running make in the top-level directory when you
probably want to run it in programs/wanproxy.
Thanks,
Juli.
> --
> Daniel Coletti
> Director
> XTech (Soluciones Linux para Empresas) - http://www.xtech.com.ar
> ++(5411) 5219-0678
> 25 de Mayo 460 - 3er. piso
> Buenos Aires, Argentina
>
> _______________________________________________
> wanproxy mailing list
> wanproxy at lists.wanproxy.org
> https://wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org
>



More information about the wanproxy mailing list