Compile error with poll()

Bug #1101668 reported by Brian Aker on 2013-01-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Brian Aker

Bug Description

Hello. I'm unsuccessfully trying to compile the latest version of gearman on my ArchLinux.

Configuration summary for gearmand version 1.1.0

   * Installation prefix: /usr/local
   * System type: unknown-linux-gnu
   * Host CPU: x86_64
   * C Compiler: gcc
   * C Flags: -g -O2 -Werror -Wall -Wextra -std=c99 -Wbad-function-cast -Wmissing-prototypes -Wnested-externs -Woverride-init
   * C++ Compiler: g++
   * C++ Flags: -g -O2 -Werror -Wall -Wextra -Wpragmas -D_FORTIFY_SOURCE=2 -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wlong-long -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wnon-virtual-dtor -Wnormalized=id -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstack-protector -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused-result -Wunused-variable -Wwrite-strings -floop-parallelize-all -fstack-protector-all -fwrapv -ggdb
   * CPP Flags:
   * Assertions enabled: no
   * Debug enabled: no
   * Warnings as failure:
   * Building with libsqlite3 yes
   * Building with libdrizzle no
   * Building with libmemcached yes
   * Building with libpq yes
   * Building with tokyocabinet no
   * Building with libmysql yes


Compilation fails with error:

make all-am
make[1]: Entering directory `/home/yutas/work/Hal/gearmand-1.1.0'
  CXX libgearman/libgearman_libgearman_la-actions.lo
  CXX libgearman/libgearman_libgearman_la-aggregator.lo
  CXX libgearman/libgearman_libgearman_la-allocator.lo
  CXX libgearman/libgearman_libgearman_la-argument.lo
  CXX libgearman/libgearman_libgearman_la-add.lo
  CXX libgearman/libgearman_libgearman_la-backtrace.lo
  CXX libgearman/libgearman_libgearman_la-byteorder.lo
  CXX libgearman/libgearman_libgearman_la-client.lo
  CXX libgearman/libgearman_libgearman_la-command.lo
  CXX libgearman/libgearman_libgearman_la-connection.lo
  CXX libgearman/libgearman_libgearman_la-do.lo
  CXX libgearman/libgearman_libgearman_la-error.lo
  CXX libgearman/libgearman_libgearman_la-execute.lo
  CXX libgearman/libgearman_libgearman_la-function.lo
  CXX libgearman/function/libgearman_libgearman_la-function_v2.lo
  CXX libgearman/function/libgearman_libgearman_la-make.lo
  CXX libgearman/function/libgearman_libgearman_la-partition.lo
  CXX libgearman/libgearman_libgearman_la-gearman.lo
  CXX libgearman/libgearman_libgearman_la-job.lo
  CXX libgearman/libgearman_libgearman_la-kill.lo
In file included from /usr/include/sys/poll.h:76:0,
                 from /usr/include/poll.h:1,
                 from ./libgearman-1.0/gearman.h:69,
                 from ./libgearman/common.h:50,
                 from libgearman/
In function 'int poll(pollfd*, nfds_t, int)',
    inlined from 'gearman_return_t gearman_kill(gearman_id_t, gearman_signal_t)' at libgearman/
/usr/include/bits/poll2.h:43:65: error: call to '__poll_chk_warn' declared with attribute warning: poll called with fds buffer too small file nfds entries [-Werror]
cc1plus: all warnings being treated as errors
make[1]: *** [libgearman/libgearman_libgearman_la-kill.lo] Error 1
make[1]: Leaving directory `/home/yutas/work/Hal/gearmand-1.1.0'
make: *** [all] Error 2

What am I doing wrong?

P.S. I tried to make version 0.38 and compilation failed with the same (or at least very similar) error.

Brian Aker (brianaker) on 2013-01-19
Changed in gearmand:
milestone: none → 1.0.3
assignee: nobody → Brian Aker (brianaker)
importance: Undecided → Medium
status: New → Confirmed
Brian Aker (brianaker) on 2013-01-23
Changed in gearmand:
status: Confirmed → Fix Committed
Brian Aker (brianaker) on 2013-08-02
Changed in gearmand:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions