You are missing the FAM header files. On some Linux distros, that might be installed as "libfam-dev" package, not sure on FC4 though.
Cheers, David. On Feb 11, 2008 12:17 PM, Dermot <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to install Sys::Gamin in a CentOS 5 machine but I am getting a > lot of errors at the `make` stage. The errors are from a C file and I am > not > versed in C :-( There is an initial error from `perl Makefile.PL`: > > # perl Makefile.PL > Ignore "Not a known parameter name" warnings. > Checking if your kit is complete... > Looks good > Writing Makefile for Sys::Gamin > > make returns lots of errors that I've listed below. I have also tried to > install SGI::FAM. The errors I get look the same to me. > > The is the 2nd time I've tried to install this module, I couldn't get it > to > work on FC4 either. > > Does anyone know of a similar library that can monitor the filesystem? I > hoping to monitor events such as file creation. > > Any advice appreciated. > Dp. > > > > ============ Errors from `make all` ====== > gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe > -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic > -fasynchronous-unwind-tables -DVERSION=\"0.1\" -DXS_VERSION=\"0.1\" > -fPIC > "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" Gamin.c > Gamin.xs:11:17: error: fam.h: No such file or directory > Gamin.xs: In function 'constant': > Gamin.xs:52: error: 'FAMChanged' undeclared (first use in this function) > Gamin.xs:52: error: (Each undeclared identifier is reported only once > Gamin.xs:52: error: for each function it appears in.) > Gamin.xs:54: error: 'FAMDeleted' undeclared (first use in this function) > Gamin.xs:56: error: 'FAMStartExecuting' undeclared (first use in this > function) > Gamin.xs:58: error: 'FAMStopExecuting' undeclared (first use in this > function) > Gamin.xs:60: error: 'FAMCreated' undeclared (first use in this function) > Gamin.xs:62: error: 'FAMMoved' undeclared (first use in this function) > Gamin.xs:64: error: 'FAMAcknowledge' undeclared (first use in this > function) > Gamin.xs:66: error: 'FAMExists' undeclared (first use in this function) > Gamin.xs:68: error: 'FAMEndExist' undeclared (first use in this function) > Gamin.xs: In function 'famerror': > Gamin.xs:123: error: 'FAMErrno' undeclared (first use in this function) > Gamin.xs:123: error: 'FamErrlist' undeclared (first use in this function) > Gamin.xs: In function 'famwarn': > Gamin.xs:132: error: 'FAMErrno' undeclared (first use in this function) > Gamin.xs:132: error: 'FamErrlist' undeclared (first use in this function) > Gamin.c: In function 'XS_FAMConnectionPtr_Open2': > Gamin.c:191: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:191: error: 'fc' undeclared (first use in this function) > Gamin.c:192: warning: ISO C90 forbids mixed declarations and code > Gamin.c:198: error: expected expression before ')' token > Gamin.c:203: warning: implicit declaration of function 'FAMOpen2' > Gamin.c: In function 'XS_FAMConnectionPtr_Close': > Gamin.c:217: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:217: error: 'fc' undeclared (first use in this function) > Gamin.c:218: warning: ISO C90 forbids mixed declarations and code > Gamin.c:223: error: expected expression before ')' token > Gamin.c:228: warning: implicit declaration of function 'FAMClose' > Gamin.c: In function 'XS_FAMConnectionPtr_MonitorCollection': > Gamin.c:242: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:242: error: 'fc' undeclared (first use in this function) > Gamin.c:243: warning: ISO C90 forbids mixed declarations and code > Gamin.c:244: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:244: error: 'fr' undeclared (first use in this function) > Gamin.c:245: warning: ISO C90 forbids mixed declarations and code > Gamin.c:253: error: expected expression before ')' token > Gamin.c:260: error: expected expression before ')' token > Gamin.c:265: warning: implicit declaration of function > 'FAMMonitorCollection' > Gamin.c: In function 'XS_FAMConnectionPtr_MonitorDirectory2': > Gamin.c:279: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:279: error: 'fc' undeclared (first use in this function) > Gamin.c:280: warning: ISO C90 forbids mixed declarations and code > Gamin.c:281: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:281: error: 'fr' undeclared (first use in this function) > Gamin.c:282: warning: ISO C90 forbids mixed declarations and code > Gamin.c:287: error: expected expression before ')' token > Gamin.c:294: error: expected expression before ')' token > Gamin.c:299: warning: implicit declaration of function > 'FAMMonitorDirectory2' > Gamin.c: In function 'XS_FAMConnectionPtr_MonitorFile2': > Gamin.c:313: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:313: error: 'fc' undeclared (first use in this function) > Gamin.c:314: warning: ISO C90 forbids mixed declarations and code > Gamin.c:315: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:315: error: 'fr' undeclared (first use in this function) > Gamin.c:316: warning: ISO C90 forbids mixed declarations and code > Gamin.c:321: error: expected expression before ')' token > Gamin.c:328: error: expected expression before ')' token > Gamin.c:333: warning: implicit declaration of function 'FAMMonitorFile2' > Gamin.c: In function 'XS_FAMConnectionPtr_SuspendMonitor': > Gamin.c:347: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:347: error: 'fc' undeclared (first use in this function) > Gamin.c:348: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:348: error: 'fr' undeclared (first use in this function) > Gamin.c:349: warning: ISO C90 forbids mixed declarations and code > Gamin.c:354: error: expected expression before ')' token > Gamin.c:361: error: expected expression before ')' token > Gamin.c:366: warning: implicit declaration of function 'FAMSuspendMonitor' > Gamin.c: In function 'XS_FAMConnectionPtr_ResumeMonitor': > Gamin.c:380: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:380: error: 'fc' undeclared (first use in this function) > Gamin.c:381: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:381: error: 'fr' undeclared (first use in this function) > Gamin.c:382: warning: ISO C90 forbids mixed declarations and code > Gamin.c:387: error: expected expression before ')' token > Gamin.c:394: error: expected expression before ')' token > Gamin.c:399: warning: implicit declaration of function 'FAMResumeMonitor' > Gamin.c: In function 'XS_FAMConnectionPtr_CancelMonitor': > Gamin.c:413: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:413: error: 'fc' undeclared (first use in this function) > Gamin.c:414: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:414: error: 'fr' undeclared (first use in this function) > Gamin.c:415: warning: ISO C90 forbids mixed declarations and code > Gamin.c:420: error: expected expression before ')' token > Gamin.c:427: error: expected expression before ')' token > Gamin.c:432: warning: implicit declaration of function 'FAMCancelMonitor' > Gamin.c: In function 'XS_FAMConnectionPtr_NextEvent': > Gamin.c:446: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:446: error: 'fc' undeclared (first use in this function) > Gamin.c:447: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:447: error: 'fe' undeclared (first use in this function) > Gamin.c:448: warning: ISO C90 forbids mixed declarations and code > Gamin.c:453: error: expected expression before ')' token > Gamin.c:460: error: expected expression before ')' token > Gamin.c:465: warning: implicit declaration of function 'FAMNextEvent' > Gamin.c: In function 'XS_FAMConnectionPtr_Pending': > Gamin.c:479: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:479: error: 'fc' undeclared (first use in this function) > Gamin.c:480: warning: ISO C90 forbids mixed declarations and code > Gamin.c:485: error: expected expression before ')' token > Gamin.c:490: warning: implicit declaration of function 'FAMPending' > Gamin.c: In function 'XS_FAMConnectionPtr_DESTROY': > Gamin.c:504: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:504: error: 'fc' undeclared (first use in this function) > Gamin.c:508: error: expected expression before ')' token > Gamin.c: In function 'XS_FAMConnectionPtr_new': > Gamin.c:529: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:529: error: 'RETVAL' undeclared (first use in this function) > Gamin.xs:242: error: expected expression before ')' token > Gamin.xs:242: warning: left-hand operand of comma expression has no effect > Gamin.c:528: warning: unused variable 'class' > Gamin.c: In function 'XS_FAMConnectionPtr_fd': > Gamin.c:547: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:547: error: 'fc' undeclared (first use in this function) > Gamin.c:548: warning: ISO C90 forbids mixed declarations and code > Gamin.c:553: error: expected expression before ')' token > Gamin.xs:251: warning: implicit declaration of function > 'FAMCONNECTION_GETFD' > Gamin.c: In function 'XS_FAMRequestPtr_DESTROY': > Gamin.c:573: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:573: error: 'fr' undeclared (first use in this function) > Gamin.c:577: error: expected expression before ')' token > Gamin.c: In function 'XS_FAMRequestPtr_new': > Gamin.c:597: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:597: error: 'RETVAL' undeclared (first use in this function) > Gamin.xs:271: error: expected expression before ')' token > Gamin.xs:271: warning: left-hand operand of comma expression has no effect > Gamin.c:596: warning: unused variable 'class' > Gamin.c: In function 'XS_FAMRequestPtr_reqnum': > Gamin.c:615: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:615: error: 'fr' undeclared (first use in this function) > Gamin.c:616: warning: ISO C90 forbids mixed declarations and code > Gamin.c:621: error: expected expression before ')' token > Gamin.xs:280: warning: implicit declaration of function > 'FAMREQUEST_GETREQNUM' > Gamin.c: In function 'XS_FAMRequestPtr_setreqnum': > Gamin.c:641: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:641: error: 'fr' undeclared (first use in this function) > Gamin.c:642: warning: ISO C90 forbids mixed declarations and code > Gamin.c:646: error: expected expression before ')' token > Gamin.xs:289: error: invalid lvalue in assignment > Gamin.c: In function 'XS_FAMEventPtr_DESTROY': > Gamin.c:665: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:665: error: 'fe' undeclared (first use in this function) > Gamin.c:669: error: expected expression before ')' token > Gamin.c: In function 'XS_FAMEventPtr_new': > Gamin.c:689: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:689: error: 'RETVAL' undeclared (first use in this function) > Gamin.xs:307: error: expected expression before ')' token > Gamin.xs:307: warning: left-hand operand of comma expression has no effect > Gamin.c:688: warning: unused variable 'class' > Gamin.c: In function 'XS_FAMEventPtr_fc': > Gamin.c:707: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:707: error: 'fe' undeclared (first use in this function) > Gamin.c:708: error: 'FAMConnection' undeclared (first use in this > function) > Gamin.c:708: error: 'RETVAL' undeclared (first use in this function) > Gamin.c:712: error: expected expression before ')' token > Gamin.xs:322: error: expected expression before ')' token > Gamin.xs:322: warning: left-hand operand of comma expression has no effect > Gamin.c: In function 'XS_FAMEventPtr_fr': > Gamin.c:734: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:734: error: 'fe' undeclared (first use in this function) > Gamin.c:735: error: 'FAMRequest' undeclared (first use in this function) > Gamin.c:735: error: 'RETVAL' undeclared (first use in this function) > Gamin.c:739: error: expected expression before ')' token > Gamin.xs:331: error: expected expression before ')' token > Gamin.xs:331: warning: left-hand operand of comma expression has no effect > Gamin.c: In function 'XS_FAMEventPtr_hostname': > Gamin.c:761: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:761: error: 'fe' undeclared (first use in this function) > Gamin.c:762: warning: ISO C90 forbids mixed declarations and code > Gamin.c:767: error: expected expression before ')' token > Gamin.c: In function 'XS_FAMEventPtr_filename': > Gamin.c:787: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:787: error: 'fe' undeclared (first use in this function) > Gamin.c:788: warning: ISO C90 forbids mixed declarations and code > Gamin.c:793: error: expected expression before ')' token > Gamin.c: In function 'XS_FAMEventPtr_code': > Gamin.c:813: error: 'FAMEvent' undeclared (first use in this function) > Gamin.c:813: error: 'fe' undeclared (first use in this function) > Gamin.c:814: error: 'FAMCodes' undeclared (first use in this function) > Gamin.c:814: error: expected ';' before 'RETVAL' > Gamin.c:815: warning: ISO C90 forbids mixed declarations and code > Gamin.c:819: error: expected expression before ')' token > Gamin.xs:356: error: 'RETVAL' undeclared (first use in this function) > make: *** [Gamin.o] Error 1 > -- David Moreno - http://www.damog.net/ Yes, you can.