You are not logged in.

#1 2008-04-06 19:22:23

CoolGenie
Member
Registered: 2008-04-06
Posts: 56

build problems (solved)

Hi,
I've got problems building various packages. Probably I didn't install some packages, but I can't figure out which ones. For example, when I try to compile DUNE I get this error

configparser.cc: In member function 'int Dune::ConfigParser::get(const std::string&, int)':
configparser.cc:207: error: 'atoi' was not declared in this scope
configparser.cc: In member function 'double Dune::ConfigParser::get(const std::string&, double)':
configparser.cc:216: error: 'atof' was not declared in this scope
configparser.cc: In member function 'bool Dune::ConfigParser::get(const std::string&, bool)':
configparser.cc:229: error: 'atoi' was not declared in this scope

On Gentto this program does compile, so it's an issue with Arch.
What's more interesting, the configure script doesn't detect these errors and creates the Makefiles.
Thanks in advance,
Przemek

Last edited by CoolGenie (2008-04-07 07:29:30)

Offline

#2 2008-04-06 21:30:31

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: build problems (solved)

Do you have base-devel installed?

Offline

#3 2008-04-06 23:46:21

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: build problems (solved)

its a gcc 4.3 issue. i guess gentoo hasnt updated gcc yet


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#4 2008-04-06 23:47:06

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: build problems (solved)

The header files were cleaned up in gcc-4.3 so many programs will fail to compile until they are cleaned up.  You need to add "#include <cstdlib>" to the top of configparser.cc

Offline

#5 2008-04-07 07:27:53

CoolGenie
Member
Registered: 2008-04-06
Posts: 56

Re: build problems (solved)

Allan wrote:

The header files were cleaned up in gcc-4.3 so many programs will fail to compile until they are cleaned up.  You need to add "#include <cstdlib>" to the top of configparser.cc

yup, that's it. Thanks!

Offline

#6 2008-05-28 22:51:03

haukew
Member
From: Hamburg, Germany
Registered: 2007-10-25
Posts: 96
Website

Re: build problems (solved)

Hi!
I guess i have the same problem (with kdirstat from AUR) but i have no idea what you mean with "add "#include <cstdlib>" to the top of configparser.cc".

My makelog ends with this:

kdirtreecache.cpp: In member function »void KDirStat::KCacheReader::addItem()«:
kdirtreecache.cpp:315: Fehler: »strtoll« wurde in diesem Gültigkeitsbereich nicht definiert
kdirtreecache.cpp:331: Fehler: »strtol« wurde in diesem Gültigkeitsbereich nicht definiert
kdirtreecache.cpp:341: Fehler: »atoi« wurde in diesem Gültigkeitsbereich nicht definiert
make[3]: *** [kdirtreecache.o] Fehler 1
make[3]: Leaving directory `/tmp/yaourt-tmp-hauke/aur-kdirstat/kdirstat/src/kdirstat-2.5.3/kdirstat'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/tmp/yaourt-tmp-hauke/aur-kdirstat/kdirstat/src/kdirstat-2.5.3/kdirstat'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/tmp/yaourt-tmp-hauke/aur-kdirstat/kdirstat/src/kdirstat-2.5.3'
make: *** [all] Fehler 2
==> FEHLER: Build fehlgeschlagen.
    Breche ab ...

Please explain it a little closer :-)

Offline

Board footer

Powered by FluxBB