4

I encountered the error when install perl-5.14.2 with perlbrew.

On Ubuntu11.10(64-bit), I try

$ perlbrew install perl-5.14.2 -Dperlibs='-lm -lc' -Dusethreads -Dplibpth=/usr/lib/x86_64-linux-gnu

and got the error

IO.xs: In function ‘XS_IO__Poll__poll’:
IO.xs:249:17: error: invalid application of ‘sizeof’ to incomplete type ‘struct pollfd’

How can i solve this error?

  • I had the same errors, but for me the issues was actually a bad include path. [This answer](http://serverfault.com/a/293231/370662) solved my problem. – pbible Aug 18 '16 at 01:29

1 Answers1

1

Change # include <poll.h> to # include <sys/poll.h> in <perlDownloadDir>/dist/IO/poll.h

Detail solution is in Make error when compiling Perl 5.12.1 (RHEL 5.5)

Community
  • 1
  • 1
Ken
  • 3,922
  • 9
  • 39
  • 40