LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Nepenthes installation error (https://www.linuxquestions.org/questions/linux-newbie-8/nepenthes-installation-error-834299/)

ababil151 09-24-2010 12:20 PM

Nepenthes installation error
 
Hay Guys,,:)


i really need your help...,
i installing nepenthe 0.2.2 with my opensuse 11.2 machine and i already installed libmagic,libcurl,PCRE and GNU 4.4

but when i try to create it shown this error

linux-ki5g:/home/ababil/nepenthes-0.2.2 # make
make all-recursive
make[1]: Entering directory `/home/ababil/nepenthes-0.2.2'
Making all in nepenthes-core
make[2]: Entering directory `/home/ababil/nepenthes-0.2.2/nepenthes-core'
Making all in src
make[3]: Entering directory `/home/ababil/nepenthes-0.2.2/nepenthes-core/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../include -I ../.. -Wall -Werror -D _GNU_SOURCE -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -MT Config.o -MD -MP -MF ".deps/Config.Tpo" -c -o Config.o Config.cpp; \
then mv -f ".deps/Config.Tpo" ".deps/Config.Po"; else rm -f ".deps/Config.Tpo"; exit 1; fi
In file included from Config.cpp:34:
../include/Config.hpp: In member function ‘bool nepenthes::confltstr::operator()(const char*, const char*) const’:
../include/Config.hpp:67: error: ‘strcmp’ was not declared in this scope
Config.cpp: In member function ‘virtual nepenthes::ConfigItem* nepenthes::Config::findKey(const char*)’:
Config.cpp:79: error: ‘strdup’ was not declared in this scope
Config.cpp: In member function ‘virtual void nepenthes::Config::load(const char*)’:
Config.cpp:155: error: ‘strerror’ was not declared in this scope
Config.cpp:168: error: ‘strerror’ was not declared in this scope
Config.cpp:174: error: ‘strerror’ was not declared in this scope
Config.cpp:184: error: ‘strerror’ was not declared in this scope
Config.cpp: In member function ‘virtual char* nepenthes::Config::terminateString(char*)’:
Config.cpp:659: error: ‘strstr’ was not declared in this scope
Config.cpp:662: error: ‘strstr’ was not declared in this scope
Config.cpp:670: error: ‘strlen’ was not declared in this scope
Config.cpp:671: error: ‘memset’ was not declared in this scope
make[3]: *** [Config.o] Error 1
make[3]: Leaving directory `/home/ababil/nepenthes-0.2.2/nepenthes-core/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ababil/nepenthes-0.2.2/nepenthes-core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ababil/nepenthes-0.2.2'
make: *** [all] Error 2


any idea why like this?
some people said it because of gcc compiler version,if yes how to fix it

knudfl 09-24-2010 02:21 PM

Nepenthes-0.2.2 , Suse 11.2
 
Quote:

.. gcc compiler version, if yes how to fix it
# zypper in gcc41-c++
exit
cd nephentes-0.2.2/ && export CC=gcc-4.1 CXX=g++-4.1 && ./configure
&& make ........... Old software (2006) requires an old compiler.


Or :
Patching to use a later compiler :
http://packages.debian.org/unstable/net/nepenthes
http://ftp.de.debian.org/debian/pool....2.2-6.diff.gz
> nepenthes_0.2.2-6.diff.gz :
zcat nepenthes_0.2.2-6.diff.gz | patch -p0
.. and find the patches in (nepenthes-0.2.2/)debian/patches/ .
..


All times are GMT -5. The time now is 03:37 AM.