This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Error while installing a program
- From: Zahra-A <zhr2930 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 22 Jul 2009 23:18:29 -0700 (PDT)
- Subject: Error while installing a program
I am running Fedora 10 and have been trying to compile & install a program by
using the included make file, but I got a bunch of errors. The make file
specifies g++ 4.3.2. The codes are old to some extent so I'm afraid those
are not supported by this version. Here is my error:
/bin/sh /root/Desktop/swaddler/swaddler-src/libtool --mode=compile g++
-I../libAnomaly/include -I. -I/root/Desktop/swaddler/swaddler-src
-DPHP_ATOM_INC -I/root/Desktop/swaddler/swaddler-src/include
-I/root/Desktop/swaddler/swaddler-src/main
-I/root/Desktop/swaddler/swaddler-src -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/php
-DHAVE_CONFIG_H -g -O2 -c
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp -o
php_anomaly/analyzer.lo
g++ -I../libAnomaly/include -I. -I/root/Desktop/swaddler/swaddler-src
-DPHP_ATOM_INC -I/root/Desktop/swaddler/swaddler-src/include
-I/root/Desktop/swaddler/swaddler-src/main
-I/root/Desktop/swaddler/swaddler-src -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/php
-DHAVE_CONFIG_H -g -O2 -c
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp -fPIC -DPIC -o
php_anomaly/.libs/analyzer.o
In file included from
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward/hash_map:64,
from /usr/local/include/anomaly.h:34,
from
/root/Desktop/swaddler/swaddler-src/php_anomaly/phpEvent.hpp:4,
from
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.hpp:4,
from
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:1:
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward/backward_warning.h:33:2:
warning: #warning This file includes at least one deprecated or antiquated
header which may be removed without further notice at a future date. Please
use a non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from
/root/Desktop/swaddler/swaddler-src/php_anomaly/profile.hpp:5,
from
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.hpp:5,
from
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:1:
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:21: error:
expected type-specifier before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:21: error:
expected `)' before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:21: error:
expected â;â before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:22: error:
expected type-specifier before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:22: error:
expected `)' before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:22: error:
expected â;â before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:23: error:
expected type-specifier before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:23: error:
expected `)' before âModelableExceptionâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:23: error:
expected â;â before âModelableExceptionâ
In file included from
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.hpp:5,
from
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:1:
/root/Desktop/swaddler/swaddler-src/php_anomaly/profile.hpp:14: error:
redefinition of âclass Profileâ
/usr/local/include/libAnomaly/profile.h:40: error: previous definition of
âclass Profileâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp: In member
function âvoid Analyzer::setMode(Analyzer::Mode)â:
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:170: error:
âclass Profileâ has no member named âlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:171: error:
âclass Profileâ has no member named âswitchModeâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:172: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:179: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp: In member
function âvoid Analyzer::createModel(uint32_t, Profile*, StringItem*,
std::string)â:
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:213: error:
âclass Profileâ has no member named â_addModelFeatureMappingâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:214: error:
âclass Modelâ has no member named âsetNameâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp: In member
function âProfile* Analyzer::createProfile(PhpEvent*)â:
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:225: error:
cannot allocate an object of abstract type âProfileâ
/usr/local/include/libAnomaly/profile.h:40: note: because the following
virtual functions are pure within âProfileâ:
/usr/local/include/libAnomaly/profile.h:52: note: virtual void
Profile::addModelFeatureMapping(Model*, int)
/usr/local/include/libAnomaly/profile.h:64: note: virtual void
Profile::addModelFeatureMapping(Model*, ListCollection*)
/usr/local/include/libAnomaly/profile.h:70: note: virtual void
Profile::toString()
/usr/local/include/libAnomaly/profile.h:81: note: virtual void
Profile::insert_item(ListCollection*)
/usr/local/include/libAnomaly/profile.h:87: note: virtual void
Profile::switch_mode(Model::ModelMode)
/usr/local/include/libAnomaly/profile.h:100: note: virtual double
Profile::check_item(ListCollection*)
/usr/local/include/libAnomaly/profile.h:114: note: virtual
ListCollection* Profile::check_item_individual_model_scores(ListCollection*)
/usr/local/include/libAnomaly/profile.h:137: note: virtual double
Profile::check_item_deep(ListCollection*, ListCollection*)
/usr/local/include/libAnomaly/profile.h:139: note: virtual Model*
Profile::get_model(unsigned int)
/usr/local/include/libAnomaly/profile.h:140: note: virtual unsigned int
Profile::get_number_of_models()
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:247: error:
cannot allocate an object of abstract type âVarsModelâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/varsModel.hpp:15: note:
because the following virtual functions are pure within âVarsModelâ:
/usr/local/include/libAnomaly/model.h:69: note: virtual void
Model::insert_item(Item*)
/usr/local/include/libAnomaly/model.h:76: note: virtual void
Model::switch_mode(Model::ModelMode)
/usr/local/include/libAnomaly/model.h:84: note: virtual double
Model::check_item(Item*)
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:248: error:
âclass Profileâ has no member named âaddVarsModelâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp: In member
function âvoid Analyzer::processTraining(PhpEvent*)â:
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:267: error:
âclass Profileâ has no member named âlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:269: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:276: error:
âclass Profileâ has no member named âlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:277: error:
âclass Profileâ has no member named âinsertItemâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:278: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:282: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp: In member
function âvoid Analyzer::normalize(PhpEvent*, Profile*)â:
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:294: error:
âclass Profileâ has no member named âgetNumVarsâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:325: error:
âclass Profileâ has no member named âgetNumVarsâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:345: error:
âclass Profileâ has no member named âgetNumVarsâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp: In member
function âvoid Analyzer::processThreshold(PhpEvent*)â:
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:373: error:
âclass Profileâ has no member named âlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:375: error:
âclass Profileâ has no member named âcheckItemâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:376: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:392: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp: In member
function âint Analyzer::processDetection(PhpEvent*)â:
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:412: error:
âclass Profileâ has no member named âlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:414: error:
âclass Profileâ has no member named âcheckItemâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:415: error:
âclass Profileâ has no member named âunlockâ
/root/Desktop/swaddler/swaddler-src/php_anomaly/analyzer.cpp:431: error:
âclass Profileâ has no member named âunlockâ
make: *** [php_anomaly/analyzer.lo] Error 1
It seems to me the errors might be due to the lack of some of the headers,
In addition of the version of
gcc, how can I overcome of errors?
BR, Zahra
--
View this message in context: http://www.nabble.com/Error-while-installing-a-program-tp24619924p24619924.html
Sent from the gcc - Help mailing list archive at Nabble.com.