On htcheck-2.0.0-rc1
# ./configure
OK
# ./make
Exit with error:
[...]
ranlib .libs/libcommon.a
creating libcommon.la
(cd .libs && rm -f libcommon.la && ln -s ../libcommon.la libcommon.la)
make[1]: uscita dalla directory «/usr/local/src/htcheck-2.0.0-rc1/htcommon»
Making all in htmysql
make[1]: ingresso nella directory «/usr/local/src/htcheck-2.0.0-rc1/htmysql»
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../include -DURL_DB_SIZE=255
-DDEFAULT_CONFIG_FILE=\"/opt/htcheck/conf/htcheck.conf\" -I..
-I../include -I../htlib -I../htcommon -I../htmysql -I../htnet
-I../htparsing -I../htcheck -Wall -DDEFAULT_DB_CHARSET=\"utf8\"
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing
-DUNIV_LINUX -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing
-DUNIV_LINUX -g -O2 -Wall -fno-rtti -c -o libhtmysql_la-Htmysql.lo
`test -f 'Htmysql.cc' || echo './'`Htmysql.cc
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I../include -DURL_DB_SIZE=255
-DDEFAULT_CONFIG_FILE=\"/opt/htcheck/conf/htcheck.conf\" -I..
-I../include -I../htlib -I../htcommon -I../htmysql -I../htnet
-I../htparsing -I../htcheck -Wall -DDEFAULT_DB_CHARSET=\"utf8\"
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX
-g -O2 -Wall -fno-rtti -c Htmysql.cc -fPIC -DPIC -o
.libs/libhtmysql_la-Htmysql.o
g++ -DHAVE_CONFIG_H -I. -I../include -DURL_DB_SIZE=255
-DDEFAULT_CONFIG_FILE=\"/opt/htcheck/conf/htcheck.conf\" -I..
-I../include -I../htlib -I../htcommon -I../htmysql -I../htnet
-I../htparsing -I../htcheck -Wall -DDEFAULT_DB_CHARSET=\"utf8\"
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX
-g -O2 -Wall -fno-rtti -c Htmysql.cc -o libhtmysql_la-Htmysql.o
>/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../include -DURL_DB_SIZE=255
-DDEFAULT_CONFIG_FILE=\"/opt/htcheck/conf/htcheck.conf\" -I..
-I../include -I../htlib -I../htcommon -I../htmysql -I../htnet
-I../htparsing -I../htcheck -Wall -DDEFAULT_DB_CHARSET=\"utf8\"
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing
-DUNIV_LINUX -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing
-DUNIV_LINUX -g -O2 -Wall -fno-rtti -c -o
libhtmysql_la-HtmysqlDB.lo `test -f 'HtmysqlDB.cc' || echo
'./'`HtmysqlDB.cc
g++ -DHAVE_CONFIG_H -I. -I../include -DURL_DB_SIZE=255
-DDEFAULT_CONFIG_FILE=\"/opt/htcheck/conf/htcheck.conf\" -I..
-I../include -I../htlib -I../htcommon -I../htmysql -I../htnet
-I../htparsing -I../htcheck -Wall -DDEFAULT_DB_CHARSET=\"utf8\"
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX
-I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX
-g -O2 -Wall -fno-rtti -c HtmysqlDB.cc -fPIC -DPIC -o
.libs/libhtmysql_la-HtmysqlDB.o
HtmysqlDB.cc: In member function ‘int
HtmysqlDB::GetNextElement(SchedulerEntry&, HtmysqlQueryResult&)’:
HtmysqlDB.cc:1383: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc: In member function ‘int HtmysqlDB::AnchorsTable(std::ostream&)’:
HtmysqlDB.cc:1947: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc: In member function ‘int
HtmysqlDB::AnchorsNotFound(std::ostream&)’:
HtmysqlDB.cc:2030: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc:2046: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc: In member function ‘int HtmysqlDB::SetLinkResults(std::ostream&)’:
HtmysqlDB.cc:2141: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc: In member function ‘int
HtmysqlDB::ShowBrokenLinks(std::ostream&)’:
HtmysqlDB.cc:2260: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc:2278: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc: In member function ‘int HtmysqlDB::ShowStatusCode(std::ostream&)’:
HtmysqlDB.cc:2333: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc: In member function ‘int
HtmysqlDB::ShowContentTypesPerServer(std::ostream&)’:
HtmysqlDB.cc:2413: error: ‘atoi’ was not declared in this scope
HtmysqlDB.cc: In member function ‘int
HtmysqlDB::CalculateUrlSizeAdd(std::ostream&)’:
HtmysqlDB.cc:2542: error: ‘atoi’ was not declared in this scope
make[1]: *** [libhtmysql_la-HtmysqlDB.lo] Errore 1
make[1]: uscita dalla directory «/usr/local/src/htcheck-2.0.0-rc1/htmysql»
make: *** [all-recursive] Errore 1
Extra info:
# vi /usr/include/stdlib.h
[...]
/* Convert a string to an integer. */
extern int atoi (__const char *__nptr)
__THROW __attribute_pure__ __nonnull ((1)) __wur;
[...]
I create a file 'prova-atoi.cc':
#include <iostream>
int main()
{
std::cout << atoi("1234") << std::endl;
return 0;
}
And I compile it with: g++ -o prova-atoi prova-atoi.cc the result is;
prova-atoi.cc: In function ‘int main()’:
prova-atoi.cc:5: error: ‘atoi’ was not declared in this scope
Version of the g++
# g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)