Error with Linux::Inotify2 module

sunyl

Active Member
Oct 12, 2004
37
0
156
While updating Cpanel OR updating perl module Linux::Inotify2 manually gives same error -

--------------------
-bash-3.00# /scripts/perlinstaller --force Linux::Inotify2
Checking C compiler....C compiler (/usr/bin/cc) OK (cached Fri Jul 8 03:00:36 2011)....Done
CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available.
Method: Using Perl Expect, Installer: cpanm
You have make /usr/bin/make
Falling back to HTTP::Tiny 0.009
You have /bin/tar: tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
You have Cpanel::HttpRequest 2.1
Testing connection speed...(using fast method)...Done
Ping:0 (ticks) Testing connection speed to mirror.sov.uk.goscomb.net using pureperl...(63100.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to cpan.mirror.anlx.net using pureperl...(31000.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirror.ox.ac.uk using pureperl...(61000.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to Index of / using pureperl...(30100.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to Welcome - The Mirror Service using pureperl...(30350.00 bytes/s)...Done
Five usable mirrors located
Ping:7 (ticks) Testing connection speed to 69.72.212.10 using pureperl...(5254.55 bytes/s)...Done
Ping:8 (ticks) Testing connection speed to 69.90.250.34 using pureperl...(6422.22 bytes/s)...Done
Ping:7 (ticks) Testing connection speed to 69.72.212.11 using pureperl...(5790.00 bytes/s)...Done
Three usable fallback mirrors located
Mirror Check passed for mirror.sov.uk.goscomb.net (/index.html)
Searching on cpanmetadb ...
Fetching http://cpanmetadb.cpanel.net/v1.0/p...?cpanel_version=11.30.1.4&cpanel_tier=release (connected:0).......(request attempt 1/12)...Resolving cpanmetadb.cpanel.net...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 1/3)......5 usable mirrors located. (less then expected)......mirror search success......connecting to [email protected]00%......request success......Done
Searching Linux::Inotify2 on cpanmetadb (http://cpanmetadb.cpanel.net/v1.0/p...?cpanel_version=11.30.1.4&cpanel_tier=release) ...
Fetching http://cpanmetadb.cpanel.net/v1.0/p...?cpanel_version=11.30.1.4&cpanel_tier=release (connected:1).......(request attempt 1/12)[email protected]%......request success......Done
Source: fastest CPAN mirror ... --> Working on Linux::Inotify2
Fetching http://mirror.sov.uk.goscomb.net/CPAN//authors/id/M/ML/MLEHMANN/Linux-Inotify2-1.22.tar.gz ... Fetching http://mirror.sov.uk.goscomb.net/CPAN/authors/id/M/ML/MLEHMANN/Linux-Inotify2-1.22.tar.gz (connected:1).......(request attempt 1/12)...Resolving mirror.sov.uk.goscomb.net...(resolve attempt 1/65)......connecting to [email protected]%......request success......Done
OK
Unpacking Linux-Inotify2-1.22.tar.gz
Linux-Inotify2-1.22/
Linux-Inotify2-1.22/Inotify2.xs
Linux-Inotify2-1.22/Inotify2.pm
Linux-Inotify2-1.22/t/
Linux-Inotify2-1.22/t/00_load.t
Linux-Inotify2-1.22/t/01_inotify.t
Linux-Inotify2-1.22/Changes
Linux-Inotify2-1.22/META.json
Linux-Inotify2-1.22/README
Linux-Inotify2-1.22/eg/
Linux-Inotify2-1.22/eg/simple
Linux-Inotify2-1.22/eg/event
Linux-Inotify2-1.22/Makefile.PL
Linux-Inotify2-1.22/COPYING
Linux-Inotify2-1.22/MANIFEST
Entering Linux-Inotify2-1.22
META.yml not found or unparsable. Fetching META.yml from search.cpan.org
Fetching http://search.cpan.org/meta/Linux-Inotify2-1.22/META.yml (connected:1).......(request attempt 1/12)...Resolving search.cpan.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 1/3)......2 usable mirrors located. (less then expected)......mirror search success......connecting to [email protected]......request success......Done
Configuring Linux-Inotify2-1.22 ... Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Linux::Inotify2
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.yml ...
Finding PREREQ from Makefile ...
Checking if you have common::sense 0 ... Yes (3.4)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.58)
Checking if you have common::sense 0 ... Yes (3.4)
Building Linux-Inotify2-1.22 ... cp Inotify2.pm blib/lib/Linux/Inotify2.pm
/usr/local/bin/perl /usr/local/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap Inotify2.xs > Inotify2.xsc && mv Inotify2.xsc Inotify2.c
cc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fpic "-I/usr/local/lib/perl5/5.8.8/i686-linux/CORE" Inotify2.c
Inotify2.xs:10:25: sys/inotify.h: No such file or directory
Inotify2.xs: In function `XS_Linux__Inotify2_inotify_read':
Inotify2.xs:83: error: invalid application of `sizeof' to incomplete type `inotify_event'
Inotify2.xs:83: error: dereferencing pointer to incomplete type
Inotify2.xs:85: error: dereferencing pointer to incomplete type
Inotify2.xs:85: error: dereferencing pointer to incomplete type
Inotify2.xs:85: error: dereferencing pointer to incomplete type
Inotify2.xs:86: error: dereferencing pointer to incomplete type
Inotify2.xs:88: warning: ISO C90 forbids mixed declarations and code
Inotify2.xs:89: error: dereferencing pointer to incomplete type
Inotify2.xs:90: error: dereferencing pointer to incomplete type
Inotify2.xs:91: error: dereferencing pointer to incomplete type
Inotify2.xs:92: error: dereferencing pointer to incomplete type
Inotify2.xs:92: error: dereferencing pointer to incomplete type
Inotify2.xs: In function `boot_Linux__Inotify2':
Inotify2.xs:20: error: `IN_ACCESS' undeclared (first use in this function)
Inotify2.xs:20: error: (Each undeclared identifier is reported only once
Inotify2.xs:20: error: for each function it appears in.)
Inotify2.xs:21: error: `IN_MODIFY' undeclared (first use in this function)
Inotify2.xs:22: error: `IN_ATTRIB' undeclared (first use in this function)
Inotify2.xs:23: error: `IN_CLOSE_WRITE' undeclared (first use in this function)
Inotify2.xs:24: error: `IN_CLOSE_NOWRITE' undeclared (first use in this function)
Inotify2.xs:25: error: `IN_OPEN' undeclared (first use in this function)
Inotify2.xs:26: error: `IN_MOVED_FROM' undeclared (first use in this function)
Inotify2.xs:27: error: `IN_MOVED_TO' undeclared (first use in this function)
Inotify2.xs:28: error: `IN_CREATE' undeclared (first use in this function)
Inotify2.xs:29: error: `IN_DELETE' undeclared (first use in this function)
Inotify2.xs:30: error: `IN_DELETE_SELF' undeclared (first use in this function)
Inotify2.xs:31: error: `IN_MOVE_SELF' undeclared (first use in this function)
Inotify2.xs:32: error: `IN_UNMOUNT' undeclared (first use in this function)
Inotify2.xs:33: error: `IN_Q_OVERFLOW' undeclared (first use in this function)
Inotify2.xs:34: error: `IN_IGNORED' undeclared (first use in this function)
Inotify2.xs:35: error: `IN_CLOSE' undeclared (first use in this function)
Inotify2.xs:36: error: `IN_MOVE' undeclared (first use in this function)
Inotify2.xs:37: error: `IN_ONLYDIR' undeclared (first use in this function)
Inotify2.xs:38: error: `IN_DONT_FOLLOW' undeclared (first use in this function)
Inotify2.xs:39: error: `IN_MASK_ADD' undeclared (first use in this function)
Inotify2.xs:40: error: `IN_ISDIR' undeclared (first use in this function)
Inotify2.xs:41: error: `IN_ONESHOT' undeclared (first use in this function)
Inotify2.xs:42: error: `IN_ALL_EVENTS' undeclared (first use in this function)
make: *** [Inotify2.o] Error 1
FAIL
! Installing Linux::Inotify2 failed. See /home/.cpanm/build.log for details.

Perl Expect failed with non-zero exit status: 256

All available perl module install methods have failed
--------------------

server# cat /usr/local/cpanel/version
11.30.1.4
server#

Any help would be helpful.

Thanks
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator

sunyl

Active Member
Oct 12, 2004
37
0
156
Yes, it is Virtuozzo-based CentOS with kernel version 2.6.18

------------
[[email protected] ~]# uname -r
2.6.18-028stab070.4
[[email protected] ~]# vzctl enter 102
entered into Container 102
-bash-3.00# cat /etc/redhat-release
CentOS release 4.9 (Final)
-bash-3.00# uname -r
2.6.18-028stab070.4
-bash-3.00# cat /usr/local/cpanel/version ;echo
11.30.1.4

-bash-3.00#
------------
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

Could you please open up a ticket as case 50278, which superseded the case 50203 previously mentioned, was intended to handle this issue and was released on 11.30.0.24+. Since your version is higher than 11.30.0.24 at this point, we would need to see this happening via a ticket. You can open one using WHM > Support Center > Contact cPanel or using the link in my signature.

Please post the ticket number here upon submitting one.

Thanks!
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,287
64
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hi! I'm seeing the same error in my server. Same cPanel version, same linux kernel, same VPS.
Should I open a ticket or can I fix it doing something?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
As previously requested to other users, please open up a ticket if this is still happening.