Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lchm Writing Makefile for Text::CHM cp lib/Text/CHM.pm blib/lib/Text/CHM.pm /home/cpanrun/ia64-lp64/build/5.8.2/bin/perl /home/cpanrun/ia64-lp64/build/5.8.2/lib/5.8.2/ExtUtils/xsubpp -noprototypes -typemap /home/cpanrun/ia64-lp64/build/5.8.2/lib/5.8.2/ExtUtils/typemap -typemap typemap CHM.xs > CHM.xsc && mv CHM.xsc CHM.c cc -c -I. -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +DSitanium2 +Ofltacc=strict -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" +Z "-I/home/cpanrun/ia64-lp64/build/5.8.2/lib/5.8.2/IA64.ARCHREV_0-thread-multi-LP64/CORE" CHM.c Error 112: "CHM.xs", line 10 # Include file not found. #include ^^^^^^^^^^^ Warning 942: "CHM.xs", line 112 # Types 'chmFile *' and 'int' are not assignment-compatible. self->chmfile = chm_open(self->filename); ^^^^^^^^^^^^^^^^^^^^^^^^ Error 628: "CHM.xs", line 156 # "chmUnitInfo#13 ui" ["CHM.xs", line 156] cannot be defined to have an incomplete type. struct chmUnitInfo ui; ^^ Error 172: "CHM.xs", line 160 # Undeclared variable 'CHM_RESOLVE_SUCCESS'. if ( CHM_RESOLVE_SUCCESS != chm_resolve_object(chmfile, path, &ui) ) ^^^^^^^^^^^^^^^^^^^ Error 548: "CHM.xs", line 163 # The expression on the left side of the '.' (dot member access operator) must be a completed struct object type; the type of the left side is 'tentative struct chmUnitInfo' and 'struct chmUnitInfo' has not been defined yet. Newz(1, retbuf, (size_t)ui.length, unsigned char); ^^^^ Error 548: "CHM.xs", line 170 # The expression on the left side of the '.' (dot member access operator) must be a completed struct object type; the type of the left side is 'tentative struct chmUnitInfo' and 'struct chmUnitInfo' has not been defined yet. *len = (size_t)ui.length; ^^ Error 548: "CHM.xs", line 172 # The expression on the left side of the '.' (dot member access operator) must be a completed struct object type; the type of the left side is 'tentative struct chmUnitInfo' and 'struct chmUnitInfo' has not been defined yet. while ( offset < ui.length ) /* Let's read the file at swath bytes per time, */ ^^ Error 548: "CHM.xs", line 175 # The expression on the left side of the '.' (dot member access operator) must be a completed struct object type; the type of the left side is 'tentative struct chmUnitInfo' and 'struct chmUnitInfo' has not been defined yet. if ( (ui.length - offset) < CHM_MAX_BUF ) ^^ Error 548: "CHM.xs", line 176 # The expression on the left side of the '.' (dot member access operator) must be a completed struct object type; the type of the left side is 'tentative struct chmUnitInfo' and 'struct chmUnitInfo' has not been defined yet. swath = ui.length - offset; ^^ Warning 942: "CHM.xs", line 280 # Types 'char *' and 'unsigned char *' are not assignment-compatible. content = perl_get_object(chmfile, filename, &len); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Warning 348: "CHM.xs", line 296 # Type is defined or declared in parameter list; it will go immediately out of scope. static int _chm_enumerate_callback(struct chmFile *h, struct chmUnitInfo *ui, void *context) ^^^^^^^^^^^^^^^^^^ Error 359: "CHM.xs", line 302 # The expression on the left side of the '->' (arrow member access operator) must be a pointer to completed struct object type; the type of the left side is 'chmUnitInfo *' and 'struct chmUnitInfo' has not been defined yet. if ( file_is_normal(ui->path) ) ^^ Error 359: "CHM.xs", line 304 # The expression on the left side of the '->' (arrow member access operator) must be a pointer to completed struct object type; the type of the left side is 'chmUnitInfo *' and 'struct chmUnitInfo' has not been defined yet. title = ((file_is_html(ui->path)) ? get_html_title(h, ui->path) : NULL); ^^ Error 359: "CHM.xs", line 305 # The expression on the left side of the '->' (arrow member access operator) must be a pointer to completed struct object type; the type of the left side is 'chmUnitInfo *' and 'struct chmUnitInfo' has not been defined yet. tmp = chm_data_add(ui->path, title, ui->length); ^^ Error 172: "CHM.xs", line 312 # Undeclared variable 'CHM_ENUMERATOR_CONTINUE'. return CHM_ENUMERATOR_CONTINUE; ^^^^^^^^^^^^^^^^^^^^^^^ Error 699: "CHM.xs", line 312 # Error limit reached; halting compilation. return CHM_ENUMERATOR_CONTINUE; ^^^^^^^^^^^^^^^^^^^^^^^ make: *** [CHM.o] Error 2