Subject: | Installation failure via CPAN.pm |
Hi.
I'm trying to install Algorithm::SVM via CPAN.pm on perl 5.8.9.
I've attached details of my perl version, the system is Ubuntu 8.10.
I get a build failure as follows:
*, ...)’, declared with attribute warn_unused_result
libsvm.cpp:2805: warning: ignoring return value of ‘int fscanf(FILE*,
const char*, ...)’, declared with attribute warn_unused_result
libsvm.cpp:2812: warning: ignoring return value of ‘int fscanf(FILE*,
const char*, ...)’, declared with attribute warn_unused_result
libsvm.cpp:2873: warning: ignoring return value of ‘int fscanf(FILE*,
const char*, ...)’, declared with attribute warn_unused_result
libsvm.cpp:2882: warning: ignoring return value of ‘int fscanf(FILE*,
const char*, ...)’, declared with attribute warn_unused_result
g++ -c -Wall -O3 -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fPIC
"-I/home/msdianomi/tools/perl-5.8.9/lib/5.8.9/i686-linux/CORE"
bindings.cpp
bindings.cpp: In constructor ‘DataSet::DataSet(double)’:
bindings.cpp:22: error: ‘malloc’ was not declared in this scope
bindings.cpp: In destructor ‘DataSet::~DataSet()’:
bindings.cpp:33: error: ‘free’ was not declared in this scope
bindings.cpp: In member function ‘void DataSet::realign(svm_node*)’:
bindings.cpp:39: error: ‘memcpy’ was not declared in this scope
bindings.cpp:40: error: ‘free’ was not declared in this scope
bindings.cpp: In member function ‘void DataSet::setAttribute(int, double)’:
bindings.cpp:48: error: ‘malloc’ was not declared in this scope
bindings.cpp:50: error: ‘memcpy’ was not declared in this scope
bindings.cpp:86: error: ‘realloc’ was not declared in this scope
bindings.cpp: In member function ‘void SVM::free_x_space()’:
bindings.cpp:160: error: ‘free’ was not declared in this scope
bindings.cpp: In member function ‘int SVM::train(int)’:
bindings.cpp:180: error: ‘free’ was not declared in this scope
bindings.cpp:186: error: ‘malloc’ was not declared in this scope
bindings.cpp:191: error: ‘malloc’ was not declared in this scope
bindings.cpp:195: error: ‘free’ was not declared in this scope
bindings.cpp:196: error: ‘free’ was not declared in this scope
bindings.cpp:197: error: ‘free’ was not declared in this scope
bindings.cpp:203: error: ‘free’ was not declared in this scope
bindings.cpp:219: error: ‘free’ was not declared in this scope
bindings.cpp: In member function ‘double SVM::crossValidate(int)’:
bindings.cpp:308: error: ‘rand’ was not declared in this scope
bindings.cpp:331: error: ‘malloc’ was not declared in this scope
bindings.cpp:377: error: ‘free’ was not declared in this scope
bindings.cpp: In destructor ‘SVM::~SVM()’:
bindings.cpp:427: error: ‘free’ was not declared in this scope
make: *** [bindings.o] Error 1
LAIRDM/Algorithm-SVM-0.13.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
LAIRDM/Algorithm-SVM-0.13.tar.gz : make NO
Subject: | perl-version |
Message body not shown because it is not plain text.