Traffic Server
  1. Traffic Server
  2. TS-515

eventfd availability not correctly determined on older linux kernels

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.5
    • Component/s: Build
    • Labels:
      None
    • 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

      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.

        Activity

        Marcus Clyne created issue -
        Marcus Clyne made changes -
        Field Original Value New Value
        Priority Blocker [ 1 ] Minor [ 4 ]
        Leif Hedstrom made changes -
        Fix Version/s 2.1.5 [ 12315491 ]
        Leif Hedstrom made changes -
        Assignee Leif Hedstrom [ zwoop ]
        Leif Hedstrom made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Leif Hedstrom made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Leif Hedstrom
            Reporter:
            Marcus Clyne
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development