Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-515

eventfd availability not correctly determined on older linux kernels

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.3
    • 2.1.5
    • Build
    • None
    • 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

    Description

      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.

      Attachments

        Activity

          People

            zwoop Leif Hedstrom
            eugaia Marcus Clyne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: