Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lhid Note (probably harmless): No library found for -lusb Writing Makefile for Device::MX240 cp MX240.pm blib/lib/Device/MX240.pm AutoSplitting blib/lib/Device/MX240.pm (blib/lib/auto/Device/MX240) /home/cpanrun/ia64/build/5.8.2/bin/perl /home/cpanrun/ia64/build/5.8.2/lib/5.8.2/ExtUtils/xsubpp -typemap /home/cpanrun/ia64/build/5.8.2/lib/5.8.2/ExtUtils/typemap MX240.xs > MX240.xsc && mv MX240.xsc MX240.c Please specify prototyping behavior for MX240.xs (see perlxs manual) cc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +DSitanium2 +Ofltacc=strict -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" +Z "-I/home/cpanrun/ia64/build/5.8.2/lib/5.8.2/IA64.ARCHREV_0-thread-multi/CORE" MX240.c Error 112: "MX240.xs", line 8 # Include file not found. #include ^^^^^^^ Error 172: "MX240.xs", line 29 # Undeclared variable 'HIDInterface'. HIDInterface* hid; ^^^^^^^^^^^^ Error 176: "MX240.xs", line 30 # Size of array must be an integral constant expression of value greater than 0. unsigned char data[READ_SIZE]; ^^^^^^^^^ Error 419: "MX240.xs", line 37 # 'HIDInterface' is used as a type, but has not been defined as a type. hid = (HIDInterface*) SvIV( device ); ^^^^^^^^^^^^ Error 172: "MX240.xs", line 37 # Undeclared variable 'hid'. hid = (HIDInterface*) SvIV( device ); ^^^ Error 172: "MX240.xs", line 39 # Undeclared variable 'hid'. if (!hid) { ^^^ Error 172: "MX240.xs", line 43 # Undeclared variable 'hid'. ret = usb_interrupt_read( hid->dev_handle, 0x81, data, READ_SIZE, 500 ); ^^^ Warning 942: "MX240.xs", line 46 # Types 'const char *' and 'unsigned char *' are not assignment-compatible. return newSVpv(data,ret); ^^^^^^^ Error 172: "MX240.xs", line 55 # Undeclared variable 'HIDInterface'. HIDInterface* hid; ^^^^^^^^^^^^ Error 419: "MX240.xs", line 63 # 'HIDInterface' is used as a type, but has not been defined as a type. hid = (HIDInterface*) SvIV( device ); ^^^^^^^^^^^^ Error 172: "MX240.xs", line 63 # Undeclared variable 'hid'. hid = (HIDInterface*) SvIV( device ); ^^^ Error 172: "MX240.xs", line 65 # Undeclared variable 'hid'. if (!hid) { ^^^ Error 172: "MX240.xs", line 69 # Undeclared variable 'hid'. ret = hid_set_output_report(hid, PATH_OUT[0], PATHLEN, buf, WRITE_SIZE/2); ^^^ Error 699: "MX240.xs", line 69 # Error limit reached; halting compilation. ret = hid_set_output_report(hid, PATH_OUT[0], PATHLEN, buf, WRITE_SIZE/2); ^^^ make: *** [MX240.o] Error 2