Checking if your kit is complete... Looks good Writing Makefile for File::Defrag cp Defrag.pm blib/lib/File/Defrag.pm /Users/cpanrun/pristine/5.8.7/bin/perl /Users/cpanrun/pristine/5.8.7/lib/5.8.7/ExtUtils/xsubpp -typemap /Users/cpanrun/pristine/5.8.7/lib/5.8.7/ExtUtils/typemap Defrag.xs > Defrag.xsc && mv Defrag.xsc Defrag.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 -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -fno-strict-aliasing -pipe -O3 -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" "-I/Users/cpanrun/pristine/5.8.7/lib/5.8.7/darwin-thread-multi-2level/CORE" Defrag.c Defrag.xs:15:22: error: linux/fs.h: No such file or directory Defrag.xs: In function 'XS_File__Defrag_direct_open': Defrag.xs:33: error: 'O_DIRECT' undeclared (first use in this function) Defrag.xs:33: error: (Each undeclared identifier is reported only once Defrag.xs:33: error: for each function it appears in.) Defrag.xs:33: error: 'O_LARGEFILE' undeclared (first use in this function) Defrag.xs: In function 'XS_File__Defrag_direct_copy': Defrag.xs:61: error: 'MAP_LOCKED' undeclared (first use in this function) Defrag.xs:61: error: 'MAP_ANONYMOUS' undeclared (first use in this function) Defrag.xs:61: error: 'MAP_POPULATE' undeclared (first use in this function) Defrag.xs:67: error: 'off64_t' undeclared (first use in this function) Defrag.xs:67: error: parse error before 'offs' Defrag.xs:69: error: 'offs' undeclared (first use in this function) Defrag.xs: In function 'XS_File__Defrag_file_extents': Defrag.xs:97: error: storage size of 'statdata' isn't known Defrag.xs:104: error: 'FIGETBSZ' undeclared (first use in this function) Defrag.xs:110: error: 'FIBMAP' undeclared (first use in this function) Defrag.xs:15:22: error: linux/fs.h: No such file or directory Defrag.xs: In function 'XS_File__Defrag_direct_open': Defrag.xs:33: error: 'O_DIRECT' undeclared (first use in this function) Defrag.xs:33: error: (Each undeclared identifier is reported only once Defrag.xs:33: error: for each function it appears in.) Defrag.xs:33: error: 'O_LARGEFILE' undeclared (first use in this function) Defrag.xs: In function 'XS_File__Defrag_direct_copy': Defrag.xs:61: error: 'MAP_LOCKED' undeclared (first use in this function) Defrag.xs:61: error: 'MAP_ANONYMOUS' undeclared (first use in this function) Defrag.xs:61: error: 'MAP_POPULATE' undeclared (first use in this function) Defrag.xs:67: error: 'off64_t' undeclared (first use in this function) Defrag.xs:67: error: parse error before 'offs' Defrag.xs:69: error: 'offs' undeclared (first use in this function) Defrag.xs: In function 'XS_File__Defrag_file_extents': Defrag.xs:97: error: storage size of 'statdata' isn't known Defrag.xs:104: error: 'FIGETBSZ' undeclared (first use in this function) Defrag.xs:110: error: 'FIBMAP' undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccQC3pH1.out (No such file or directory) make: *** [Defrag.o] Error 1