Last Tora and gcc 4.7

maks123
2012-04-10
2012-12-13
  • maks123
    maks123
    2012-04-10

    Hi.

    I'm having an error when compiling the latest release.

    ake[3]: Entering directory `/home/soft/oracle/tOra/tora/trunk/tora/src'
    g++ -DHAVE_CONFIG_H -I. -I..  -I./otl -I../src/loki/include -I/usr/include -I/usr/include/Qt -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/QtNetwork -I/usr/include/QtXml   -DDEFAULT_PLUGIN_DIR=\"/usr/local/tora/lib\" -DTOVERSION=\"2.1.4\" -I/opt/oracle/product/11.2.0/client_1/rdbms/public/ -DOTL_ORA11G       -g -O2 -fno-inline -O2 -MT tora-toextract.o -MD -MP -MF .deps/tora-toextract.Tpo -c -o tora-toextract.o `test -f 'toextract.cpp' || echo './'`toextract.cpp
    toextract.cpp: In member function 'QString toExtract::generateHeading(const QString&, std::list<QString, std::allocator<QString> >&)':
    toextract.cpp:690:27: error: 'gethostname' was not declared in this scope
    make[3]: *** [tora-toextract.o] Error 1
    make[3]: Leaving directory `/home/soft/oracle/tOra/tora/trunk/tora/src'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/soft/oracle/tOra/tora/trunk/tora/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/soft/oracle/tOra/tora/trunk/tora'
    

    $ gcc -version
    gcc (GCC) 4.7.0 20120324 (prerelease)
    Copyright (C) 2012 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    $

    OS: ArchLinux i686