Skip to content

Compilation fails in Ubuntu 13.10 #15

@javierag

Description

@javierag

Hello,

compilation from master branch fails. Since it seems to fail in the epoll section, I have checked it also with the " USE_POLL=poll" as mentioned in #1 but I get the same result.

This is the error output:

g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o callback.o ../../../event/callback.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_system.h:29,
from ../../../event/callback.cc:27:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o callback_thread.o ../../../event/callback_thread.cc
In file included from ../../../event/callback_thread.h:31:0,
from ../../../event/callback_thread.cc:26:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_main.o ../../../event/event_main.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_system.h:29,
from ../../../event/event_main.cc:28:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_poll.o ../../../event/event_poll.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_poll.cc:27:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_thread.o ../../../event/event_thread.cc
In file included from ../../../event/callback_thread.h:31:0,
from ../../../event/event_thread.h:32,
from ../../../event/event_thread.cc:27:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o timeout_queue.o ../../../event/timeout_queue.cc
../../../event/timeout_queue.cc: In member function ‘Action* TimeoutQueue::append(uintmax_t, SimpleCallback_)’:
../../../event/timeout_queue.cc:36:11: warning: declaration of ‘deadline’ shadows a member of 'this' [-Wshadow]
NanoTime deadline = NanoTime::current_time();
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o timeout_thread.o ../../../event/timeout_thread.cc
In file included from ../../../event/timeout_thread.h:29:0,
from ../../../event/timeout_thread.cc:39:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
g++ -I../../.. -Wno-deprecated -Wnon-virtual-dtor -include common/common.h -pipe -O -g -W -Wall -Wno-system-headers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Wreorder -DTHREADS -c -o event_poll_poll.o ../../../event/event_poll_poll.cc
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_poll_poll.cc:34:
../../../common/thread/thread.h: In member function ‘virtual void WorkerThread::signal(bool)’:
../../../common/thread/thread.h:123:2: warning: declaration of ‘stop’ shadows a member of 'this' [-Wshadow]
{
^
../../../event/event_poll_poll.cc: In constructor ‘EventPoll::EventPoll()’:
../../../event/event_poll_poll.cc:40:14: error: no matching function for call to ‘Thread::Thread()’
state_(NULL)
^
../../../event/event_poll_poll.cc:40:14: note: candidates are:
In file included from ../../../event/event_poll.h:32:0,
from ../../../event/event_poll_poll.cc:34:
../../../common/thread/thread.h:42:2: note: Thread::Thread(const string&)
Thread(const std::string&);
^
../../../common/thread/thread.h:42:2: note: candidate expects 1 argument, 0 provided
../../../common/thread/thread.h:34:7: note: Thread::Thread(const Thread&)
class Thread {
^
../../../common/thread/thread.h:34:7: note: candidate expects 1 argument, 0 provided
../../../event/event_poll_poll.cc:40:14: error: no matching function for call to ‘Mutex::Mutex()’
state_(NULL)
^
../../../event/event_poll_poll.cc:40:14: note: candidates are:
In file included from ../../../event/event_poll.h:31:0,
from ../../../event/event_poll_poll.cc:34:
../../../common/thread/mutex.h:39:2: note: Mutex::Mutex(const string&)
Mutex(const std::string&);
^
../../../common/thread/mutex.h:39:2: note: candidate expects 1 argument, 0 provided
../../../common/thread/mutex.h:34:7: note: Mutex::Mutex(const Mutex&)
class Mutex : public Lock {
^
../../../common/thread/mutex.h:34:7: note: candidate expects 1 argument, 0 provided
../../../event/event_poll_poll.cc: At global scope:
../../../event/event_poll_poll.cc:96:23: error: no ‘void EventPoll::wait(int)’ member function declared in class ‘EventPoll’
EventPoll::wait(int ms)
^
make[3]: *_* [event_poll_poll.o] Error 1
make[3]: Leaving directory /tmp/wanproxy/crypto/example/aes128-cbc-speed1' make[2]: *** [all] Error 2 make[2]: Leaving directory/tmp/wanproxy/crypto/example'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/wanproxy/crypto'
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions