Error when trying to compile 2.0.6.1 on Fedora.

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

shatter
Noob
Noob
Posts: 7
Joined: 21 Jul 2008, 18:35
Noob?: No

Error when trying to compile 2.0.6.1 on Fedora.

#1 Post by shatter »

Hi, I'm getting this error when compiling on Fedora 9

Code: Select all

scons: Reading SConscript files ...
Checking Perl configuration ...(cached) yes
Checking for C library ncurses... (cached) yes
Checking for GNU readline 4.3 or higher...(cached) yes
Checking for libcurl...(cached) libcurl 7.18.2
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/auto/XSTools/utils/perl/Benchmark.os -c -Wall -g -O2 -pipe -fPIC -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -Wall -g -O2 -pipe -fPIC -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC -I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE src/auto/XSTools/utils/perl/Benchmark.cpp
In file included from src/auto/XSTools/utils/perl/Benchmark.xs:1:
src/auto/XSTools/utils/perl/../dense_hash_map.h:93:66: error: ext/hash_fun.h: No such file or directory
In file included from src/auto/XSTools/utils/perl/Benchmark.xs:1:
src/auto/XSTools/utils/perl/../dense_hash_map.h:102: error: expected type-specifier
src/auto/XSTools/utils/perl/../dense_hash_map.h:102: error: expected '>'
src/auto/XSTools/utils/perl/../dense_hash_map.h:116: error: 'EqualKey' was not declared in this scope
src/auto/XSTools/utils/perl/../dense_hash_map.h:116: error: 'Alloc' was not declared in this scope
src/auto/XSTools/utils/perl/../dense_hash_map.h:116: error: template argument 5 is invalid
src/auto/XSTools/utils/perl/../dense_hash_map.h:116: error: template argument 6 is invalid
src/auto/XSTools/utils/perl/../dense_hash_map.h:120: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:123: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:124: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:125: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:127: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:128: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:129: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:130: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:131: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:132: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:134: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h:135: error: 'ht' is not a class or namespace
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::begin()':
src/auto/XSTools/utils/perl/../dense_hash_map.h:138: error: request for member 'begin' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::end()':
src/auto/XSTools/utils/perl/../dense_hash_map.h:139: error: request for member 'end' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::begin() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:140: error: request for member 'begin' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::end() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:141: error: request for member 'end' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::hash_funct() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:145: error: request for member 'hash_funct' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::key_eq() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:146: error: request for member 'key_eq' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In constructor 'google::dense_hash_map<Key, T, HashFcn>::dense_hash_map(InputIterator, InputIterator, int, const int&, const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:160: error: request for member 'insert' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::clear()':
src/auto/XSTools/utils/perl/../dense_hash_map.h:166: error: request for member 'clear' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::clear_no_resize()':
src/auto/XSTools/utils/perl/../dense_hash_map.h:169: error: request for member 'clear_no_resize' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::swap(google::dense_hash_map<Key, T, HashFcn>&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:170: error: request for member 'swap' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::size() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:174: error: request for member 'size' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::max_size() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:175: error: request for member 'max_size' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'bool google::dense_hash_map<Key, T, HashFcn>::empty() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:176: error: request for member 'empty' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::bucket_count() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:177: error: request for member 'bucket_count' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::max_bucket_count() const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:178: error: request for member 'max_bucket_count' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::resize(int)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:180: error: request for member 'resize' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::find(const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:184: error: request for member 'find' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::find(const int&) const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:185: error: request for member 'find' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'T& google::dense_hash_map<Key, T, HashFcn>::operator[](const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:190: error: base operand of '->' is not a pointer
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::count(const int&) const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:196: error: request for member 'count' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'std::pair<int, int> google::dense_hash_map<Key, T, HashFcn>::equal_range(const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:199: error: request for member 'equal_range' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'std::pair<int, int> google::dense_hash_map<Key, T, HashFcn>::equal_range(const int&) const':
src/auto/XSTools/utils/perl/../dense_hash_map.h:202: error: request for member 'equal_range' in '((const google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'const int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'std::pair<int, bool> google::dense_hash_map<Key, T, HashFcn>::insert(const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:206: error: request for member 'insert' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::insert(InputIterator, InputIterator)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:208: error: request for member 'insert' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::insert(int, int)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:209: error: request for member 'insert' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::set_empty_key(const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:219: error: request for member 'set_empty_key' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::set_deleted_key(const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:222: error: request for member 'set_deleted_key' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::clear_deleted_key()':
src/auto/XSTools/utils/perl/../dense_hash_map.h:224: error: request for member 'clear_deleted_key' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'int google::dense_hash_map<Key, T, HashFcn>::erase(const int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:227: error: request for member 'erase' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::erase(int)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:228: error: request for member 'erase' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'void google::dense_hash_map<Key, T, HashFcn>::erase(int, int)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:229: error: request for member 'erase' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'bool google::dense_hash_map<Key, T, HashFcn>::write_metadata(FILE*)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:238: error: request for member 'write_metadata' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'bool google::dense_hash_map<Key, T, HashFcn>::read_metadata(FILE*)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:239: error: request for member 'read_metadata' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'bool google::dense_hash_map<Key, T, HashFcn>::write_nopointer_data(FILE*)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:240: error: request for member 'write_nopointer_data' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In member function 'bool google::dense_hash_map<Key, T, HashFcn>::read_nopointer_data(FILE*)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:241: error: request for member 'read_nopointer_data' in '((google::dense_hash_map<Key, T, HashFcn>*)this)->google::dense_hash_map<Key, T, HashFcn>::rep', which is of non-class type 'int'
src/auto/XSTools/utils/perl/../dense_hash_map.h: At global scope:
src/auto/XSTools/utils/perl/../dense_hash_map.h:246: error: wrong number of template arguments (5, should be 3)
src/auto/XSTools/utils/perl/../dense_hash_map.h:105: error: provided for 'template<class Key, class T, class HashFcn> class google::dense_hash_map'
src/auto/XSTools/utils/perl/../dense_hash_map.h:247: error: wrong number of template arguments (5, should be 3)
src/auto/XSTools/utils/perl/../dense_hash_map.h:105: error: provided for 'template<class Key, class T, class HashFcn> class google::dense_hash_map'
src/auto/XSTools/utils/perl/../dense_hash_map.h: In function 'void google::swap(int&, int&)':
src/auto/XSTools/utils/perl/../dense_hash_map.h:248: error: request for member 'swap' in 'hm1', which is of non-class type 'int'
src/auto/XSTools/utils/perl/Benchmark.xs: At global scope:
src/auto/XSTools/utils/perl/Benchmark.xs:35: error: 'hash' is not a member of '__gnu_cxx'
src/auto/XSTools/utils/perl/Benchmark.xs:35: error: 'hash' is not a member of '__gnu_cxx'
src/auto/XSTools/utils/perl/Benchmark.xs:35: error: template argument 3 is invalid
src/auto/XSTools/utils/perl/Benchmark.xs:35: error: expected unqualified-id before ',' token
src/auto/XSTools/utils/perl/Benchmark.xs:35: error: expected initializer before '>' token
src/auto/XSTools/utils/perl/Benchmark.xs:39: error: 'StrIntMap' does not name a type
src/auto/XSTools/utils/perl/Benchmark.xs: In constructor 'Benchmark::Benchmark()':
src/auto/XSTools/utils/perl/Benchmark.xs:45: error: 'domainToId' was not declared in this scope
src/auto/XSTools/utils/perl/Benchmark.xs: In member function 'void Benchmark::begin(const char*)':
src/auto/XSTools/utils/perl/Benchmark.xs:64: error: 'StrIntMap' has not been declared
src/auto/XSTools/utils/perl/Benchmark.xs:64: error: expected `;' before 'result'
src/auto/XSTools/utils/perl/Benchmark.xs:65: error: 'result' was not declared in this scope
src/auto/XSTools/utils/perl/Benchmark.xs:65: error: 'domainToId' was not declared in this scope
src/auto/XSTools/utils/perl/Benchmark.xs: In member function 'void Benchmark::end(const char*)':
src/auto/XSTools/utils/perl/Benchmark.xs:82: error: 'domainToId' was not declared in this scope
src/auto/XSTools/utils/perl/Benchmark.xs: In member function 'const Item* Benchmark::getResult(const char*)':
src/auto/XSTools/utils/perl/Benchmark.xs:95: error: 'domainToId' was not declared in this scope
src/auto/XSTools/utils/perl/Benchmark.c: In function 'void XS_Benchmark_init(PerlInterpreter*, CV*)':
src/auto/XSTools/utils/perl/Benchmark.c:122: warning: unused variable 'Perl___notused'
src/auto/XSTools/utils/perl/Benchmark.c: In function 'void XS_Benchmark_begin(PerlInterpreter*, CV*)':
src/auto/XSTools/utils/perl/Benchmark.c:149: warning: unused variable 'Perl___notused'
src/auto/XSTools/utils/perl/Benchmark.c: In function 'void XS_Benchmark_end(PerlInterpreter*, CV*)':
src/auto/XSTools/utils/perl/Benchmark.c:170: warning: unused variable 'Perl___notused'
src/auto/XSTools/utils/perl/Benchmark.c: In function 'void XS_Benchmark_getResults(PerlInterpreter*, CV*)':
src/auto/XSTools/utils/perl/Benchmark.c:191: warning: unused variable 'Perl___notused'
src/auto/XSTools/utils/perl/Benchmark.c: In function 'void XS_Benchmark_clock2msec(PerlInterpreter*, CV*)':
src/auto/XSTools/utils/perl/Benchmark.c:228: warning: unused variable 'Perl___notused'
src/auto/XSTools/utils/perl/Benchmark.c: In function 'void boot_Utils__Benchmark(PerlInterpreter*, CV*)':
src/auto/XSTools/utils/perl/Benchmark.c:258: warning: deprecated conversion from string constant to 'char*'
src/auto/XSTools/utils/perl/Benchmark.c:254: warning: unused variable 'Perl___notused'
scons: *** [src/auto/XSTools/utils/perl/Benchmark.os] Error 1
scons: building terminated because of errors.
Compilation failed. Please read http://www.openkore.com/compilation.php for help.
As you can see I got all needed to compile, I also tried to compile versions from 2.0.6.1 to 2.0.3 all got the same error.
Thxs to all for helping me :D
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: Error when trying to compile 2.0.6.1 on Fedora.

#2 Post by Bibian »

you may not have all the required deps, make sure you have all the deps as described by the wiki
shatter
Noob
Noob
Posts: 7
Joined: 21 Jul 2008, 18:35
Noob?: No

Re: Error when trying to compile 2.0.6.1 on Fedora.

#3 Post by shatter »

  • gcc versión 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)
    This is perl, v5.10.0 built for i386-linux-thread-multi
    perl -e 'use Time::HiRes;' ==>Correct
    perl -e 'use Compress::Zlib;' ==>Correct

    gcc -c ~/readlinetest.c
    gmake -v ==>Correct
    Python is installed
    libcurl 7.18.2
I think I got everything :S
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Error when trying to compile 2.0.6.1 on Fedora.

#4 Post by sli »

Install GCC 3 and try again.
cs : ee : realist
phenix
Noob
Noob
Posts: 1
Joined: 26 Oct 2008, 05:57
Noob?: No

Re: Error when trying to compile 2.0.6.1 on Fedora.

#5 Post by phenix »

try:
ln -s /usr/include/c++/4.3/backward/hash_fun.h /usr/include/c++/4.3/ext/hash_fun.h
unreal
Noob
Noob
Posts: 10
Joined: 20 Apr 2008, 04:36
Noob?: No

Re: Error when trying to compile 2.0.6.1 on Fedora.

#6 Post by unreal »

I got the same problem, tried Phenix's way and new errors appear. I'm using Ubuntu 8.10 & able to compile 2.0.5.1. Any help?
scons: Reading SConscript files ...
Checking Perl configuration ...(cached) yes
Checking for C library ncurses... (cached) yes
Checking for GNU readline 4.3 or higher...(cached) yes
Checking for libcurl...(cached) libcurl 7.18.2
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/test/consoleui-test.o -c -Wall -g -O2 -pipe -Wall -g -O2 -pipe -Isrc/auto/XSTools/unix src/test/consoleui-test.cpp
src/test/consoleui-test.cpp: In function 'void usage()':
src/test/consoleui-test.cpp:15: error: 'exit' was not declared in this scope
src/test/consoleui-test.cpp: In function 'int testCorrectness()':
src/test/consoleui-test.cpp:51: error: 'srand' was not declared in this scope
src/test/consoleui-test.cpp:55: error: 'rand' was not declared in this scope
src/test/consoleui-test.cpp:79: error: 'free' was not declared in this scope
scons: *** [src/test/consoleui-test.o] Error 1
scons: building terminated because of errors.
-e \e[1;31mCompilation failed. Please read http://www.openkore.com/compilation.php for help.\e[0m
Image
Image
Image
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Error when trying to compile 2.0.6.1 on Fedora.

#7 Post by sli »

XSTools really hates GCC4 for some reason. This really needs to be fixed (although it might be Perl's fault, I got an inordinate amount of XS-related errors when I tried to compile).
cs : ee : realist
unreal
Noob
Noob
Posts: 10
Joined: 20 Apr 2008, 04:36
Noob?: No

Re: Error when trying to compile 2.0.6.1 on Fedora.

#8 Post by unreal »

thx for the answer :D , anyway, why we (or just me) can successfully compile version 2.0.5.1 but not 2.0.6.1?
Image
Image
Image
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Error when trying to compile 2.0.6.1 on Fedora.

#9 Post by sli »

I'm not sure, actually. I suppose you could check the SVN log and see what was changed in XSTools and the SConscripts between those versions and get an idea.
cs : ee : realist
Russian Linuxoid
Noob
Noob
Posts: 5
Joined: 15 Nov 2008, 04:36
Noob?: No
Location: Russia, Ussuriisk

Re: Error when trying to compile 2.0.6.1 on Fedora.

#10 Post by Russian Linuxoid »

I found out solution ;)
You must edit file
src/test/consoleui-test.cpp
and add to list of includes this:
#include <stdlib.h>
Now OpenKore will compile =) It will compile with gcc4 as good as with gcc3
I wonder why did developers missed this?

Tested on Ubuntu 8.10
Also works on Debian Lenny/Sid