Subject: | does not compile |
Hello Ken,
the module does not compile. See also the CPAN Testers - only FAILs for
this module. I'm using Debian Linux.
This is the beginning of the error output:
# running Build.PL
/opt/perl/perl-5.8.8/bin/perl Build.PL
Checking whether your kit is complete...
Looks good
Creating new 'Build' script for 'Algorithm-SVMLight' version '0.04'
CPAN: YAML loaded ok
/opt/perl/perl-5.8.8/bin/perl Build --makefile_env_macros 1
lib/Algorithm/SVMLight.pm -> blib/lib/Algorithm/SVMLight.pm
lib/Algorithm/SVMLight.xs -> lib/Algorithm/SVMLight.c
/opt/perl/perl-5.8.8/bin/perl
"-I/opt/perl/perl-5.8.8/lib/5.8.8/i686-linux"
"-I/opt/perl/perl-5.8.8/lib/5.8.8"
"/opt/perl/perl-5.8.8/lib/5.8.8/ExtUtils/xsubpp" -noprototypes -typemap
"/opt/perl/perl-5.8.8/lib/5.8.8/ExtUtils/typemap"
"lib/Algorithm/SVMLight.xs"Error: Function definition too short '/ * A
couple special cases for strings * /' in SVMLight.xs, line 660
cc -I/opt/perl/perl-5.8.8/lib/5.8.8/i686-linux/CORE -fpic -Wall -c
-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o
lib/Algorithm/SVMLight.o lib/Algorithm/SVMLight.c
SVMLight.xs:21:24: error: svm_common.h: Datei oder Verzeichnis nicht
gefunden
SVMLight.xs:22:23: error: svm_learn.h: Datei oder Verzeichnis nicht gefunden
SVMLight.xs:32: error: syntax error before 'DOC'
SVMLight.xs:32: warning: no semicolon at end of struct or union
SVMLight.xs:34: error: syntax error before '}' token
SVMLight.xs:34: warning: type defaults to 'int' in declaration of 'corpus'
SVMLight.xs:34: warning: data definition has no type or storage class
SVMLight.xs:57: error: syntax error before '*' token
SVMLight.xs:57: warning: return type defaults to 'int'
SVMLight.xs: In function 'get_corpus':
SVMLight.xs:58: error: syntax error before ')' token
SVMLight.xs: At top level:
SVMLight.xs:70: error: syntax error before '*' token
SVMLight.xs:70: warning: return type defaults to 'int'
SVMLight.xs: In function 'create_word_array':
SVMLight.xs:71: error: 'WORD' undeclared (first use in this function)
SVMLight.xs:71: error: (Each undeclared identifier is reported only once
SVMLight.xs:71: error: for each function it appears in.)
SVMLight.xs:71: error: 'words' undeclared (first use in this function)
SVMLight.xs:72: warning: ISO C90 forbids mixed declarations and code
SVMLight.xs:83: error: syntax error before ')' token
SVMLight.xs:83: warning: left-hand operand of comma expression has no effect
SVMLight.xs:83: error: syntax error before ')' token
SVMLight.xs:99: error: 'FVAL' undeclared (first use in this function)
SVMLight.xs: In function 'XS_Algorithm__SVMLight__xs_init':
SVMLight.xs:118: error: 'c' undeclared (first use in this function)
SVMLight.xs:119: error: 'LEARN_PARM' undeclared (first use in this function)
SVMLight.xs:119: error: 'learn_parm' undeclared (first use in this function)
SVMLight.xs:120: error: 'KERNEL_PARM' undeclared (first use in this
function)
SVMLight.xs:120: error: 'kernel_parm' undeclared (first use in this
function)
Thanks,
bye, Uwe