eventfd availability not correctly determined on older linux kernels
--------------------------------------------------------------------

                 Key: TS-515
                 URL: https://issues.apache.org/jira/browse/TS-515
             Project: Traffic Server
          Issue Type: Bug
          Components: Build
    Affects Versions: 2.1.3
         Environment: Debian Linux VPS, uname -a : 
2.6.18-194.17.1.el5.028stab070.7 #1 SMP Fri Oct 1 14:17:14 MSD 2010 i686 
GNU/Linux

            Reporter: Marcus Clyne
            Priority: Blocker


It appears that the macro ATS_HAS_EVENTFD is not correctly determined in some 
instances.

When compiling v 2.1.3 on the above environment, I get :

...
UnixEThread.cc:33:25: error: sys/eventfd.h: No such file or directory
mv -f .deps/Thread.Tpo .deps/Thread.Po
g++ -DHAVE_CONFIG_H  -I. -I../../libinktomi++  -I../../librecords 
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT 
-Dlinux -I/usr/include/tcl8.4  -march=i586 -g -pipe -Wall -Werror -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT 
UnixEvent.o -MD -MP -MF .deps/UnixEvent.Tpo -c -o UnixEvent.o UnixEvent.cc
UnixEThread.cc: In constructor 'EThread::EThread(ThreadType, int)':
UnixEThread.cc:76: error: 'eventfd' was not declared in this scope
make[2]: *** [UnixEThread.o] Error 1
...

According to http://perkamon.alioth.debian.org/online/man2/eventfd.2.php 
eventfd() is available in Linux kernels >= 2.6.22, so I am assuming in a 2.6.18 
kernel, ATS_HAS_EVENTFD  should not be set, but it is.  I'm also assuming this 
is a ./configure issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to