You are not logged in.
Pages: 1
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
Do you have base-devel installed?
Offline
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
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
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
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
Pages: 1