Checking if your kit is complete... Looks good Writing Makefile for Linux::Inotify2 cp Inotify2.pm blib/lib/Linux/Inotify2.pm /Users/cpanrun/build/5.10.0/bin/perl /Users/cpanrun/build/5.10.0/lib/ExtUtils/xsubpp -typemap /Users/cpanrun/build/5.10.0/lib/ExtUtils/typemap Inotify2.xs > Inotify2.xsc && mv Inotify2.xsc Inotify2.c gcc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -arch i386 -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.3 -DPRIVLIB_LAST_IN_INC -fno-strict-aliasing -pipe -O3 -DVERSION=\"1.1\" -DXS_VERSION=\"1.1\" "-I/Users/cpanrun/build/5.10.0/lib/CORE" Inotify2.c In file included from Inotify2.xs:10: inotify.h:10:25: error: linux/types.h: No such file or directory In file included from Inotify2.xs:10: inotify.h:19: error: parse error before '__s32' inotify.h:19: warning: no semicolon at end of struct or union inotify.h:20: warning: data definition has no type or storage class inotify.h:21: error: parse error before 'cookie' inotify.h:21: warning: data definition has no type or storage class inotify.h:22: error: parse error before 'len' inotify.h:22: warning: data definition has no type or storage class In file included from Inotify2.xs:10inotify.h:24: error: parse error before '}' token: inotify.h:10:25: error: linux/types.h: No such file or directory In file included from Inotify2.xs:10: inotify.h:19: error: parse error before '__s32' inotify.h:19: warning: no semicolon at end of struct or union inotify.h:20: warning: data definition has no type or storage class inotify.h:21: error: parse error before 'cookie' inotify.h:21: warning: data definition has no type or storage class inotify.h:22: error: parse error before 'len' inotify.h:22: warning: data definition has no type or storage class inotify.h:24: error: parse error before '}' token In file included from Inotify2.xs:11: inotify-syscalls.h:92:3: error: #error In file included from Inotify2.xs:11: inotify-syscalls.h:100: error: parse error before '__u32'"Unsupported architecture!" inotify-syscalls.h: In function 'inotify_add_watch': inotify-syscalls.h:102: error: 'fd' undeclared (first use in this function) inotify-syscalls.h:102: error: (Each undeclared identifier is reported only once inotify-syscalls.h:102: error: for each function it appears in.) In file included from Inotify2.xs:11: inotify-syscalls.h: In function 'inotify_init': inotify-syscalls.h:97: error: '__NR_inotify_init' undeclared (first use in this function) inotify-syscalls.h:97: error: (Each undeclared identifier is reported only once inotify-syscalls.h:97: error: for each function it appears in.) inotify-syscalls.h: At top level: inotify-syscalls.h:105: error: parse error before '__u32' inotify-syscalls.h: In function 'inotify_rm_watch': inotify-syscalls.h:107: error: 'fd' undeclared (first use in this function) inotify-syscalls.h: At top level:inotify-syscalls.h:107: error: 'wd' undeclared (first use in this function) inotify-syscalls.h:100: error: parse error before '__u32' inotify-syscalls.h: In function 'inotify_add_watch': inotify-syscalls.h:102: error: '__NR_inotify_add_watch' undeclared (first use in this function) inotify-syscalls.h:102: error: 'fd' undeclared (first use in this function) inotify-syscalls.h: At top level: inotify-syscalls.h:105: error: parse error before '__u32' inotify-syscalls.h: In function 'inotify_rm_watch': inotify-syscalls.h:107: error: '__NR_inotify_rm_watch' undeclared (first use in this function) inotify-syscalls.h:107: error: 'fd' undeclared (first use in this function) inotify-syscalls.h:107: error: 'wd' undeclared (first use in this function) Inotify2.xs: In function 'XS_Linux__Inotify2_inotify_read': Inotify2.xs:84: error: invalid application of 'sizeof' to incomplete type 'struct inotify_event' Inotify2.xs:84: error: dereferencing pointer to incomplete type Inotify2.xs:86: error: dereferencing pointer to incomplete type Inotify2.xs:86: error: dereferencing pointer to incomplete type Inotify2.xs:86: error: dereferencing pointer to incomplete type Inotify2.xs:87: error: dereferencing pointer to incomplete type Inotify2.xs:90: error: dereferencing pointer to incomplete type Inotify2.xs: In function 'XS_Linux__Inotify2_inotify_read': Inotify2.xs:84: error: invalid application of 'sizeof' to incomplete type 'struct inotify_event' Inotify2.xs:91: error: dereferencing pointer to incomplete type Inotify2.xs:84: error: dereferencing pointer to incomplete type Inotify2.xs:86: error: dereferencing pointer to incomplete type Inotify2.xs:86: error: dereferencing pointer to incomplete type Inotify2.xs:86: error: dereferencing pointer to incomplete type Inotify2.xs:92: error: dereferencing pointer to incomplete typeInotify2.xs:87: error: dereferencing pointer to incomplete type Inotify2.xs:93: error: dereferencing pointer to incomplete type Inotify2.xs:93: 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:93: error: dereferencing pointer to incomplete type Inotify2.xs:93: error: dereferencing pointer to incomplete type lipo: can't open input file: /var/tmp//ccRV1e1b.out (No such file or directory) make: *** [Inotify2.o] Error 1