在使用perlbrew安装perl-5.14.2时,我遇到了这个错误。
在Ubuntu11.10(64位)上,我尝试
$ perlbrew install perl-5.14.2 -Dperlibs='-lm -lc' -Dusethreads -Dplibpth=/usr/lib/x86_64-linux-gnu并得到了错误
IO.xs: In function ‘XS_IO__Poll__poll’:
IO.xs:249:17: error: invalid application of ‘sizeof’ to incomplete type ‘struct pollfd’如何解决此错误?
发布于 2016-06-06 12:34:13
在<perlDownloadDir>/dist/IO/poll.h中将# include <poll.h>更改为# include <sys/poll.h>
https://stackoverflow.com/questions/9780714
复制相似问题